lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.
Other
1.68k stars 599 forks source link

Can not build a Soft-AP using hostapd #3

Closed oldsharp closed 11 years ago

oldsharp commented 11 years ago

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

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 993b021502d04830e7f932e28068b7ec11376519.

lwfinger commented 11 years ago

I will try to duplicate your result.

oldsharp commented 11 years ago

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 commented 11 years ago

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

lwfinger commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

yes, it works now.. thank you!

oldsharp commented 11 years ago

Works good for me. Thanks!

lwfinger commented 11 years ago

Thanks for the feedback.

zangaby commented 11 years ago

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 commented 11 years ago

driver=rtl871xdrv and it works for me.