WIFI not pairing with access point on Linaro android jellybean panda tracking-blob build

Bug #1039941 reported by Amit Khare
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
High
Unassigned
linaro-landing-team-ti
Invalid
Undecided
Unassigned

Bug Description

observed with panda android jellybean tracking-blob build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=28

Turning wifi on and searching for access point works fine but it fails to connect to any access point.

root@android:/ # [ 977.788970] wl12xx: loaded
[ 978.376678] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 978.401153] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 980.303466] wl12xx: Association completed.
[ 980.336120] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 980.342315] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1010.873565] cfg80211: Calling CRDA to update world regulatory domain
[ 1012.303466] wl12xx: Association completed.
[ 1012.328308] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1012.334960] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Also observed on panda android jb images

https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=115

https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=161

https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=168

https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=174

https://android-build.linaro.org/builds/~linaro-android-archive/panda-jb-gcc47-tilt-tracking-blob/#build=186

https://android-build.linaro.org/builds/~linaro-android-archive/panda-jb-gcc47-tilt-tracking-blob/#build=191

https://android-build.linaro.org/builds/~linaro-android-archive/panda-jb-gcc47-tilt-tracking-blob/#build=196

Revision history for this message
Paul Larson (pwlars) wrote :

According to Amit, this worked for him on the same board and wap in last week's build.

Changed in linaro-android:
importance: Undecided → High
assignee: nobody → Linaro Android Team (linaro-android)
milestone: none → 12.08
Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: 12.08 → none
Revision history for this message
Amit Khare (amit-khare) wrote :

observed with panda JB tracking-blob build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=40

switching on WIFI, searching and connecting to ACCESS point works but not able to obtain IP address. Logs from minicom below...

root@android:/ # [ 505.512878] wl12xx: loaded
[ 506.179626] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 506.206665] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 531.995330] wl12xx: Association completed.
[ 532.013397] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 532.019744] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 562.522735] cfg80211: Calling CRDA for country: GB
[ 564.315643] wl12xx: Association completed.
[ 564.340362] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 594.887695] cfg80211: Calling CRDA to update world regulatory domain
[ 596.667175] wl12xx: Association completed.
[ 596.688720] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 627.200073] cfg80211: Calling CRDA to update world regulatory domain
[ 628.979675] wl12xx: Association completed.
[ 628.997283] wl12xx_driver wl12xx: wlan0: failed to set key 0

Revision history for this message
warmcat (andy-warmcat) wrote :

It's not clear from this what the problem actually is.

tilt-3.4 is working OK in barebones Ubuntu for acquiring WPA encrypted AP and IP address

root@(none):/# iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11abgn ESSID:off/any
          Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
          Retry long limit:7 RTS thr:off Fragment thr:off
          Encryption key:off
          Power Management:on

eth0 no wireless extensions.

nt.conf &e):/# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplican
[2] 977
root@(none):/# [ 297.949096] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 297.969573] ADDRCONF(NETDEV_UP): wlan0: link is not ready
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Trying to associate with f8:d1:11:39:0b:44 (SSID='foamy' freq=2417 MHz)
[ 299.954284] wl12xx: Association completed.
[ 299.979064] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Associated with f8:d1:11:39:0b:44
WPA: Key negotiation completed with f8:d1:11:39:0b:44 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to f8:d1:11:39:0b:44 completed (auth) [id=0 id_str=]

root@(none):/# dhclient wlan0 &
[3] 987
root@(none):/#

root@(none):/# ifconfig
wlan0 Link encap:Ethernet HWaddr de:ad:be:ef:00:00
          inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::dcad:beff:feef:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:998 (998.0 B) TX bytes:1600 (1.6 KB)

root@(none):/#

I marked it invalid for us, if there's some sign that it's a kernel issue please let us know and we'll look again.

Some suggestions for checking on rootfs side:

 - try association with unencrypted AP see if that is any different
 - if there is a wpa_supplicant app in android try running it by hand, with -dd to get debugging info
 - look in the android system logs to see if anything was told there

Changed in linaro-landing-team-ti:
status: New → Invalid
Revision history for this message
vishal (vishalbhoj) wrote :

unencrypted AP works on tracking-panda .

With Encrypted AP wifi is not able to associate even when we try standalone wpa_supplicant from command line :

The relevant logs from logcat :

W/wpa_supplicant( 2109): wlan0: WPA: Failed to set GTK to the driver (alg=2 keylen=32 keyidx=2)
I/wpa_supplicant( 2109): wlan0: RSN: Failed to configure GTK
I/wpa_supplicant( 2109): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0

Revision history for this message
warmcat (andy-warmcat) wrote :

You need to use wpa_passphrase <ap name> to provide an encrypted passphrase in the config file for that AP... not sure if you did this.

Is it possible that more than one instance of wpa_supplicant is running and treading on each other?

Can you list firmware names and MD5SUM that's in the rootfs in ..../ti-connectivity ?

Do you have more than one Panda running at the same time?

Revision history for this message
vishal (vishalbhoj) wrote :

here is the wpa_supplicant.conf file which android maintains and works for stable panda:

ctrl_interface=wlan0
update_config=1
device_name=pandaboard
manufacturer=unknown
model_name=pandaboard
model_number=pandaboard
serial_number=
device_type=10-0050F204-5
config_methods=physical_display virtual_push_button keypad

network={
        ssid="NETGEAR"
        psk="XXXXXXXXXXX"
        key_mgmt=WPA-PSK
        priority=1
}

There is only one instance of wpa_supplicant running .

Here is the firmware and their MD5SUM in the image:
529d85a8b24131fe65c75a273c5efa01 TIInit_7.2.31.bts
3c94a2f7c3173d8811009307ec140195 TIInit_7.6.15.bts
b9dda918843ca95b57422d8f6ebb2648 wl1271-fw-2.bin
d8c1f3a196c16ce9f329a0cb62665b50 wl1271-fw-ap.bin
094517dc9a2b67132dda0692ce0bfa1b wl1271-fw.bin
387ee1359ecac0e1546290cec4892a31 wl1271-nvs-example-wl128x.bin
170b227c9cc5f3020ae58ce25eb93f21 wl1271-nvs.bin
f0fdc227f7f90f016c4fbb4fde6c6fae wl127x-fw-3.bin
db8a232eb9585b1411aa2e13d8f2d0a0 wl127x-fw-4-mr.bin
e6e5fd20ddc3d62f85b85a326b413113 wl127x-fw-4-plt.bin
c34980c7073bcb979630eae678b06aa7 wl127x-fw-4-sr.bin
461eb5d9abc975b97b0f715271873e16 wl128x-fw-ap.bin
6e25ec03554253d17dfa5722a3737d16 wl128x-fw.bin

There is only one Panda running at a time.

Revision history for this message
Amit Khare (amit-khare) wrote :

Observed with Panda tracking-blob build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=44

Enabling the wifi and detecting access point works but it fails to obtain IP address. Logs below ...

[ 128.974792] wl12xx: loaded
[ 130.169311] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 130.187805] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 150.372894] init: no such service 'dhcpcd_sit0'
[ 151.549438] wl12xx: Association completed.
[ 151.567352] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 151.573638] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 155.383758] init: no such service 'dhcpcd_sit0:-h android-4e96b7654af79556 s'
[ 155.457519] init: no such service 'dhcpcd_sit0'
[ 165.396453] init: no such service 'dhcpcd_sit0:-h android-4e96b7654af79556 s'
[ 182.135162] cfg80211: Calling CRDA for country: GB
[ 182.226959] init: no such service 'dhcpcd_sit0'
[ 183.549438] wl12xx: Association completed.
[ 183.576843] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 187.235656] init: no such service 'dhcpcd_sit0:-h android-4e96b7654af79556 s'
[ 187.299316] init: no such service 'dhcpcd_sit0'

Revision history for this message
warmcat (andy-warmcat) wrote :

Some of the firmware is slightly different on my side, not sure which ones it is actually using

529d85a8b24131fe65c75a273c5efa01 TIInit_7.2.31.bts
3c94a2f7c3173d8811009307ec140195 TIInit_7.6.15.bts
48ea42d9b8ec6a6cff606cfc07c4f05c wl1271-fw-2.bin
238586509daf93b9a19eb2658945f8c0 wl1271-fw-ap.bin
094517dc9a2b67132dda0692ce0bfa1b wl1271-fw.bin
170b227c9cc5f3020ae58ce25eb93f21 wl1271-nvs.bin
f0fdc227f7f90f016c4fbb4fde6c6fae wl127x-fw-3.bin
db8a232eb9585b1411aa2e13d8f2d0a0 wl127x-fw-4-mr.bin
e6e5fd20ddc3d62f85b85a326b413113 wl127x-fw-4-plt.bin
c34980c7073bcb979630eae678b06aa7 wl127x-fw-4-sr.bin
03f7bf217391fbf8c403397deffd229e wl127x-fw-plt-3.bin
170b227c9cc5f3020ae58ce25eb93f21 wl127x-nvs.bin
348e52d906d53d2c981600a73f950750 wl128x-fw-3.bin
6ea2c3105be37a4ea667a53fd0cfa44b wl128x-fw-4-mr.bin
84fd299867b22a0b53faef9b6849bb2e wl128x-fw-4-plt.bin
ecc4349c039367b07e2d95f63ea25e3b wl128x-fw-4-sr.bin
31350833555fec024902ea054065d0bd wl128x-fw-ap.bin
8dfbf6a59fa2be51a6124a00be57368b wl128x-fw-plt-3.bin
93222394f055b31546f47ee16a92e004 wl128x-fw.bin
387ee1359ecac0e1546290cec4892a31 wl128x-nvs.bin
170b227c9cc5f3020ae58ce25eb93f21 wl12xx-nvs.bin

I attach a tarball in case it's anything to do with anything.

Previously IIRC patches were needed on wpa_supplicant for Android, did that need go away?

You might also try reducing wpa_supplicant.conf to just the passphrase stanza, that's all I had in mine when testing with Ubuntu above.

Revision history for this message
Amit Khare (amit-khare) wrote :

Observed with Panda tracking-blob build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=49

Enabling the wifi and detecting access point works but it fails to obtain IP address. Logs below ...

[ 552.848571] wl12xx: loaded
[ 553.499908] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 553.517089] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 579.651214] wl12xx: Association completed.
[ 579.669281] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 579.675567] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 610.197784] cfg80211: Calling CRDA for country: GB
[ 611.713592] wl12xx: Association completed.
[ 611.735900] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 642.238769] cfg80211: Calling CRDA to update world regulatory domain
[ 644.041748] wl12xx: Association completed.
[ 644.062652] wl12xx_driver wl12xx: wlan0: failed to set key 0

Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
vishal (vishalbhoj) wrote :

Andy,

I have tried with the binaries specified by you but it doesn't work. Android is still carrying few patches to wpa_supplicant,but the wifi driver and binary specific to 3.2 kernel works with wpa_supplicant with patches.

It could be something specific to the Android specific patches but shows up only against the tilt tracking kernel.

Revision history for this message
Amit Khare (amit-khare) wrote :

Also observed with panda tracking-blob build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=69

[ 59.777923] wl12xx: loaded
[ 60.474975] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 60.499053] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 81.939605] wl12xx: Association completed.
[ 81.956939] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 81.964599] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 112.511627] cfg80211: Calling CRDA for country: GB
[ 114.291168] wl12xx: Association completed.
[ 114.316192] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 115.900665] PM: Syncing filesystems ... done.
[ 117.232269] Freezing user space processes ...
[ 117.233581] Freezing of tasks aborted after 0.00 seconds (310 tasks refusing:
[ 117.233612]
[ 117.233612] Restarting tasks ... done.
[ 117.382659] PM: Syncing filesystems ... done.
[ 117.414245] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 117.434478] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) do.
[ 117.465667] Suspending console(s) (use no_console_suspend to debug)

Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :

Also observed with panda android JB build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=82

Searching access point is successful but but it show "Avoided poor connection" when tried to connect.

Revision history for this message
Soumya Basak (soumya-basak) wrote :

observed with panda android JB build
https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=100
log:
[ 1503.950073] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 1503.967926] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1543.017913] wl12xx: Association completed.
[ 1543.050567] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1543.058166] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1573.580047] cfg80211: Calling CRDA to update world regulatory domain
[ 1575.095886] wl12xx: Association completed.
[ 1575.128295] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1605.691162] cfg80211: Calling CRDA to update world regulatory domain
[ 1607.486450] wl12xx: Association completed.
[ 1607.518890] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1638.088043] cfg80211: Calling CRDA to update world regulatory domain
[ 1639.517761] wl12xx: Association completed.
[ 1639.538391] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1670.042694] cfg80211: Calling CRDA to update world regulatory domain
[ 1671.845886] wl12xx: Association completed.
[ 1671.878326] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1702.447357] cfg80211: Calling CRDA to update world regulatory domain
[ 1703.877166] wl12xx: Association completed.
[ 1703.909545] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1734.393463] cfg80211: Calling CRDA to update world regulatory domain
[ 1735.916198] wl12xx: Association completed.
[ 1735.948577] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1766.533386] cfg80211: Calling CRDA to update world regulatory domain
[ 1767.963073] wl12xx: Association completed.
[ 1767.988128] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1798.496154] cfg80211: Calling CRDA to update world regulatory domain
[ 1800.306823] wl12xx: Association completed.
[ 1800.339263] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1828.568817] smsc95xx 1-1.1:1.0: eth0: link down
[ 1830.853485] cfg80211: Calling CRDA to update world regulatory domain
[ 1832.283386] wl12xx: Association completed.
[ 1832.302551] wl12xx_driver wl12xx: wlan0: failed to set key 0
[ 1862.823974] cfg80211: Calling CRDA to update world regulatory domain

couple of minuites it will show message "connecting" then show message "Avoided poor Internet connection"

Revision history for this message
Soumya Basak (soumya-basak) wrote :
description: updated
Revision history for this message
Soumya Basak (soumya-basak) wrote :

also observed with panda JB android release 12.11 builds

https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-stable-blob-12.11-release/#build=1

Enabling the wifi is OK, but searching and detecting Access point is fail.

After 1-min wifi is disable automatically.

log:

root@android:/ # [ 6004.775573] wl1271: loaded
[ 6074.545867] wl1271: loaded
[ 6104.649810] wl1271: loaded
[ 6285.955871] wl1271: loaded

Revision history for this message
Soumya Basak (soumya-basak) wrote :

observed with panda android jellybean 4.2 builds

https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-tracking-blob/#build=127

same as comment #17

description: updated
description: updated
summary: - WIFI not working with panda android jellybean tracking-blob build
+ WIFI not pairing with access point on Linaro android jellybean panda
+ tracking-blob build
description: updated
description: updated
description: updated
description: updated
Fathi Boudra (fboudra)
Changed in linaro-android:
assignee: Linaro Android Team (linaro-android) → nobody
vishal (vishalbhoj)
Changed in linaro-android:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.