Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build a Soft-AP using hostapd #3

Closed
oldsharp opened this issue Aug 29, 2013 · 10 comments
Closed

Can not build a Soft-AP using hostapd #3

oldsharp opened this issue Aug 29, 2013 · 10 comments

Comments

@oldsharp
Copy link

Try to build a Soft-AP with rtl8188eu, but it failed.
My steps:

  • git clone https://github.com/lwfinger/rtl8188eu.git
  • cd rtl8188eu && make && make install
  • insmod 8188eu.ko
  • ifconfig wlan0 up
  • hostapd hostapd.conf

An AP is built now and I can find the AP with my mobile device.
But I can not access this AP after I typed right password. The hostapd reported:

+rtl871x_get_sta_wpaie, 18:e7:f4:93:f2:b3 is sta's address
wlan0: STA 18:e7:f4:93:f2:b3 IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_sta_deauth_ops, 18:e7:f4:93:f2:b3 is deauth, reason=2
rtl871x_set_key_ops
wlan0: STA 18:e7:f4:93:f2:b3 IEEE 802.11: deauthenticated due to local deauth request
+rtl871x_sta_remove_ops, 18:e7:f4:93:f2:b3 is sta address removed
wlan0: STA 18:e7:f4:93:f2:b3 IEEE 802.11: disassociated

Looks like my password is wrong, but that's not the case.
I set driver=rtl871xdrv in hostapd.conf (set driver=nl80211 hostapd can not start).
My environment is Ubuntu 12.04 with i386 PC, the commit version I used to build the module is 993b021.

@lwfinger
Copy link
Owner

I will try to duplicate your result.

@oldsharp
Copy link
Author

oldsharp commented Sep 1, 2013

In fact I have no idea about how to build a Soft-AP with driver of this version.
I followed some instructions related to this source to built a Soft-AP and it works. But no luck with driver of this version.
Have you ever succeed to built a Soft-AP and how?

@artaban
Copy link

artaban commented Sep 27, 2013

Hi, I've had similar problem and found out that after the commit 954eab3 the hostapd stopped to work..
when using revision before, everything works like a charm...

@lwfinger
Copy link
Owner

I assume that you did a 'git checkout 6d1127b' to get that version. If so, please do the following:

git checkout master
git revert 954eab3

Does hostapd work now? Those commands will allow us to test everything after the bad commit. If that functions, I will break 954eab3 into a set of smaller changes so that we can isolate the problem.

@lwfinger
Copy link
Owner

I found a problem with commit 954eab3 and pushed a fix. If you did the revert of 954eab3, then do the following:

git reset --hard HEAD^

Then do a 'git pull' and tell me if it works.

@artaban
Copy link

artaban commented Sep 30, 2013

yes, it works now.. thank you!

@oldsharp
Copy link
Author

Works good for me. Thanks!

@lwfinger
Copy link
Owner

Thanks for the feedback.

@zangaby
Copy link

zangaby commented Oct 3, 2013

What driver are you using in the conf ?
I tried rtl871x but it's not working for me Line 39: invalid/unknown driver 'rtl871x' .

@oldsharp
Copy link
Author

oldsharp commented Oct 9, 2013

driver=rtl871xdrv and it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants