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

WiFi not working #2

Open
M1cha opened this issue Sep 9, 2012 · 8 comments
Open

WiFi not working #2

M1cha opened this issue Sep 9, 2012 · 8 comments
Labels

Comments

@M1cha
Copy link
Owner

M1cha commented Sep 9, 2012

You can see available networks. If you connect to a network(after giving the correct password), it hangs at "connecting...".
EDIT: I got a connection after manually executing "dhcpcd tiwlan0". It seems B2G doesn not execute this command for some reason.
Logcat:
I/wpa_supplicant( 3254): Trying to associate with ROUTER_MAC (SSID='ROUTER_SSID' freq=2412 MHz)
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=5 BSSID=ROUTER_MAC
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=0 state=6 BSSID=ROUTER_MAC
I/wpa_supplicant( 3254): Associated with ROUTER_MAC
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=0 state=8 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 3254): WPA: Key negotiation completed with ROUTER_MAC [PTK=CCMP GTK=TKIP]
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=0 state=9 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 3254): CTRL-EVENT-CONNECTED - Connection to ROUTER_MAC completed (auth) [id=0 id_str=]

I replaced my router my with ROUTER_MAC and my router SSID with ROUTER_SSID.
he says associated, but I still don't have an ip-address.

@mwiarda
Copy link

mwiarda commented Sep 9, 2012

I was able to see an incomplete list of networks for a really short time.
After it just says "Searching...". The dmesg output could be interesting:

<4>[ 327.315917] TIWLAN: connection lost ? main driver answered 0 to intervals !
<6>[ 363.980529] TIWLAN: wlanDrvIf_Open
<6>[ 363.985595] ADDRCONF(NETDEV_UP): tiwlan0: link is not ready

Edit: Actually I've not been able to see any networks since the first time. Disabling wifi the first time works and I do get a response when enabling it again. But after that nothing else happens.

// After boot
I/wpa_supplicant( 3273): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 3273): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
// Disable wifi
I/wpa_supplicant( 3273): CTRL-EVENT-TERMINATING - signal 0 received
I/wpa_supplicant( 3273): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00:00:00:00:00:00
// Enable wifi again
I/wpa_supplicant( 3343): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 3343): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
// No response any longer...

@mwiarda
Copy link

mwiarda commented Sep 9, 2012

Did you change anything to be able to see your wifi networks?

@M1cha
Copy link
Owner Author

M1cha commented Sep 9, 2012

no, but I have to say: here's only one and I'm very close to my router so I have full reception.
Maybe the driver has reception-problems with low-signal networks.

@mwiarda
Copy link

mwiarda commented Sep 9, 2012

I'm right next to the router as well - so its probably not the network. But there are about 20 networks around here.
I haven't seen my own network once yet. Does it work every time you scan?

Have you tried setting a static ip with ifconfig?

@M1cha
Copy link
Owner Author

M1cha commented Sep 9, 2012

Until now, it worked everytime for me.
Connecting has nothing todo with Seeing networks. ad described in OP I can see and connect my network.
But I have to manually start dhcpcd to get ip-settings.

@mwiarda
Copy link

mwiarda commented Sep 9, 2012

Okay. Even scanning for networks doesn't work for me.
I just checked with your build. Sadly, scanning doesn't work either...

@mwiarda
Copy link

mwiarda commented Sep 12, 2012

https://github.com/andreasgal/B2G/blob/8237302ff5370a6697dacc57b43859be9304d8c6/WIFI.md

This will probably help. Unfortunately my battery died and I am working far too much to try it out :(

@mwiarda
Copy link

mwiarda commented Sep 13, 2012

Okay,
I managed to connect now.

The wifi gui actually doesn't work properly yet.
I used a simplified version of my android wpa_supplicant.conf.
I also replaced the wpa_supplicant binary with the android one. Although it might have worked with the old one as well.

Now I am automatically connected at boot.
Its just that stupid gui which is not able to add networks properly.

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

No branches or pull requests

2 participants