ScottHelme Posted October 23, 2013 Author Share Posted October 23, 2013 cat /etc/config/wireless prior to connecting root@Pineapple:~# cat /etc/config/wirelessconfig wifi-device radio0option type mac80211option channel 11option hwmode 11ngoption macaddr 00:13:37:a5:08:bdoption htmode HT20list ht_capab SHORT-GI-20list ht_capab SHORT-GI-40list ht_capab RX-STBC1list ht_capab DSSS_CCK-40# REMOVE THIS LINE TO ENABLE WIFI:# option disabled 1config wifi-ifaceoption device radio0option network lanoption mode apoption ssid Pineapple5_08BDoption encryption noneconfig wifi-device radio1option type mac80211option channel 11option hwmode 11goption macaddr 00:13:37:81:42:22# REMOVE THIS LINE TO ENABLE WIFI:# option disabled 1config wifi-ifaceoption device radio1option network lanoption mode apoption ssid Pineapple5_4222option encryption none cat /etc/config/wireless after connecting root@Pineapple:~# cat /etc/config/wirelessconfig wifi-device 'radio0'option type 'mac80211'option channel '11'option hwmode '11ng'option macaddr '00:13:37:a5:08:bd'option htmode 'HT20'list ht_capab 'SHORT-GI-20'list ht_capab 'SHORT-GI-40'list ht_capab 'RX-STBC1'list ht_capab 'DSSS_CCK-40'config wifi-ifaceoption device 'radio0'option network 'lan'option mode 'ap'option ssid 'Pineapple5_08BD'option encryption 'none'config wifi-device 'radio1'option type 'mac80211'option channel '11'option hwmode '11g'option macaddr '00:13:37:81:42:22'config wifi-ifaceoption device 'radio1'option mode 'sta'option network 'wan' wlan1 is reporting the IP 172.16.42.204 which is not what my DHCP server is dishing out. Quote Link to comment Share on other sites More sharing options...
thesugarat Posted October 23, 2013 Share Posted October 23, 2013 (edited) Do you have anything plugged into the eth0 port? Also, did wlan1 connect to wlan0? aka testing mode. There is no info in the second wireless config about the client AP that you're connecting to... Also, perhaps an option disabled '0' in each wifi-device section... Once you've done that use the WiFi Manager infusion to select what AP you want wlan1 to connect to then save and commit it. It should work right away and then after reboot the client mode tab should use that new info in /wireless and it should connect automatically. Edited October 23, 2013 by thesugarat Quote Link to comment Share on other sites More sharing options...
boob00 Posted October 23, 2013 Share Posted October 23, 2013 (edited) BOOB00, That's the kind of output I got when I removed wlan1 via the WiFi Manager infusion. I had to clean it up a bit then to make it work… Here's how I think yours should look. config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11ng' option macaddr '00:13:37:a5:08:73' option htmode 'HT20' list ht_capab 'SHORT-GI-20' list ht_capab 'SHORT-GI-40' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option disabled '0' config wifi-iface option device 'radio0' option network 'lan' option mode 'ap' option ssid 'Pineapple5_0873' option encryption 'none' config wifi-device 'radio1' option type 'mac80211' option channel '11' option hwmode '11g' option macaddr '00:13:37:81:42:73' option disabled '0' config wifi-iface option device 'radio1' option network 'wan' option mode 'sta' option ssid 'Pineapple5_4273' option encryption 'none' Thanks for your help man, i can not thank you enough. I put that in as my /etc/config/wireless and after a reboot it went back to the default (bad) configuration. Its like at every reboot it goes back to the original. EDIT: After i cat the new file i noticed that it had a bunch of random characters, and i deleted them and it works fine. Thanks man! Edited October 23, 2013 by BOOB00 Quote Link to comment Share on other sites More sharing options...
ScottHelme Posted October 23, 2013 Author Share Posted October 23, 2013 Do you have anything plugged into the eth0 port? Also, did wlan1 connect to wlan0? aka testing mode. There is no info in the second wireless config about the client AP that you're connecting to... Also, perhaps an option disabled '0' in each wifi-device section... Once you've done that use the WiFi Manager infusion to select what AP you want wlan1 to connect to then save and commit it. It should work right away and then after reboot the client mode tab should use that new info in /wireless and it should connect automatically. Yeah my PC goes into the LAN port which I assume is eth0. That's how I'm setting this up atm. It should be connecting to my home AP as I select it from the drop down and put the WPA key in. Will try the other stuff now. Quote Link to comment Share on other sites More sharing options...
thesugarat Posted October 23, 2013 Share Posted October 23, 2013 I would unplug your lan cable then reboot. Then login via the pineapples broadcasted AP. I've had funny result when using the ethernet port. Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 23, 2013 Share Posted October 23, 2013 You should... The RTL8187L is a USB Chipset, this simply sits on a bus. Only one will show up I believe. The other is part of the soc, which isn't on the usb bus. Quote Link to comment Share on other sites More sharing options...
ScottHelme Posted October 23, 2013 Author Share Posted October 23, 2013 Ok, now I get a red LED blinking on for a second, the maybe off for 5. root@Pineapple:~# cat /etc/config/wirelessconfig wifi-device 'radio0'option type 'mac80211'option channel '11'option hwmode '11ng'option macaddr '00:13:37:a5:08:bd'option htmode 'HT20'list ht_capab 'SHORT-GI-20'list ht_capab 'SHORT-GI-40'list ht_capab 'RX-STBC1'list ht_capab 'DSSS_CCK-40'option disabled '0'config wifi-ifaceoption device 'radio0'option network 'lan'option mode 'ap'option ssid 'Pineapple5_08BD'option hidden '0'config wifi-device 'radio1'option type 'mac80211'option hwmode '11g'option macaddr '00:13:37:81:42:22'option disabled '0'option channel '1'config wifi-ifaceoption device 'radio1'option ssid '*snip*'option key '*snip*'option network 'wan'option hidden '0'option mode 'sta'option encryption 'mixed-psk+tkip+aes' Quote Link to comment Share on other sites More sharing options...
thesugarat Posted October 23, 2013 Share Posted October 23, 2013 Use the WiFi Manager Infusion for wlan1 and choose the correct encryption settings and then save/commit. As long as it connects then and gives you an IP address, it should be good to go after a reboot. Keep in mind that if you go back to the Client Mode tab and select the same network it will overwrite the encryption incorrectly if you haven't updated your functions.php file per my other post. Again that's an unverified fix but it's worked for a few others. Quote Link to comment Share on other sites More sharing options...
ScottHelme Posted October 23, 2013 Author Share Posted October 23, 2013 Ok, if I make the AP open it can connect no problem, it's just when it's using encryption. Known issues connecting to WPA2 AP? Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted October 23, 2013 Share Posted October 23, 2013 Ok, if I make the AP open it can connect no problem, it's just when it's using encryption. Known issues connecting to WPA2 AP? "There is a fix for that" - See the thread on this forum. An update will be pushed in a little bit. Quote Link to comment Share on other sites More sharing options...
thesugarat Posted October 23, 2013 Share Posted October 23, 2013 https://forums.hak5.org/index.php?/topic/30539-client-mode-connect-to-wpa2-personal-access-point-fails/?p=230502 Quote Link to comment Share on other sites More sharing options...
ScottHelme Posted October 23, 2013 Author Share Posted October 23, 2013 https://forums.hak5.org/index.php?/topic/30539-client-mode-connect-to-wpa2-personal-access-point-fails/?p=230502 Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.