WiFi is unstable on TI Panda with Linaro Android images. - Android Kitkat

Bug #1267475 reported by Botao
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
Undecided
HariGopal

Bug Description

On Linaro Android 13.12 release image:

http://releases.linaro.org/13.12/android/panda/

WiFi doesn't work on TI Panda 4430. The access point can be listed but after clicked it and typed password, a pop-up window shows:

Failed to connect to network.

"wpa_cli" command set doesn't work either:

root@pandaboard:/ # busybox ifconfig eth0 down
root@pandaboard:/ # svc wifi enable
root@pandaboard:/ # [ 188.836639] wl1271: loaded
[ 189.830444] wl1271: firmware booted (Rev 6.3.0.0.77)
[ 189.864562] ADDRCONF(NETDEV_UP): wlan0: link is not ready

root@pandaboard:/ # wpa_cli list_networks
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # wpa_cli add_network
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # wpa_cli set_network 0 ssid MYSSID
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # wpa_cli set_network 0 psk MYPASSWORD
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # wpa_cli enable_network 0
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # busybox ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 2A:00:02:D2:3B:0A
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

However, "wpa_cli" exists in system:

root@pandaboard:/ # which wpa_cli
/system/bin/wpa_cli
root@pandaboard:/ #

WiFi, at least command line based, worked well on build #479:

https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro/#build=479

the same issue reproduced with Linaro Android kitkat Ti-panda builds:

https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-14.03-release/#build=1
https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro/#build=639
https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-14.04-release/#build=1
https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro/#build=721
https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-14.07-release/#1

Revision history for this message
Botao (botao-sun) wrote :

This issue can be possibly walked around by following procedures:

1. Power on the board;
2. Turn off Ethernet (# busybox ifconfig eth0 down)
3. Turn on WiFi;
4. Connect to AP;
5. If step 4 failed, reboot the board, do step 2 and 4 again, until it can be done.

However, "UNKNOWN COMMAND" still shows up in console while using wpa_cli, which didn't happen in past.

summary: - WiFi doesn't work on TI Panda 4430 with Linaro Android 13.12 image.
+ WiFi is unstable on TI Panda 4430 with Linaro Android 13.12 image.
Revision history for this message
Soumya Basak (soumya-basak) wrote : Re: WiFi is unstable on TI Panda 4430 with Linaro Android 13.12 image.

on panda 4430
1. when booted first without ethernet cable it finds the ap and connected successfully. network access fine.
serial output:
2. https://pastebin.linaro.org/view/724e4f88
3. now with ethernet cable reflash the builds and booted first time, and try to connect wifi with ap.
output of ifconfig: https://pastebin.linaro.org/view/db67cf89
4. now remove the eth0 cable and wifi connected with ap successfully.
5. now disable the wifi wait for 2 minuite and enable it again and now it "Failed to connect to ap" and not operational.
output of serial log: https://pastebin.linaro.org/view/6c741f9d
6. and I repeat the step5 once again and wifi connected with ap successfully.

Changed in linaro-android:
assignee: nobody → HariGopal (harigopal-gollamudi)
Revision history for this message
HariGopal (harigopal-gollamudi) wrote :

It is verified that..the above mentioned problem is not happening all the time. It is not 100% reproducible. However, for the commands which is not accepted by wpa_cli will be looked into, as it is 100% producible.

Revision history for this message
HariGopal (harigopal-gollamudi) wrote :

root@pandaboard:/ # wpa_cli list_networks
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # wpa_cli add_network
Using interface 'wlan0'
UNKNOWN COMMAND
root@pandaboard:/ # wpa_cli set_network 0 ssid MYSSID
Using interface 'wlan0'
UNKNOWN COMMAND

etc...

The above commands are not supported by global interface, which is enabled for wifi enablement in Android Kitkat versions.
Where as in previous versions, Google android was using specific control interface.

Revision history for this message
Botao (botao-sun) wrote :

@HariGopal, If those commands support was dropped by Google, do we have alternative solution for WiFi configuration in command line?

Revision history for this message
HariGopal (harigopal-gollamudi) wrote : Re: [Bug 1267475] Re: WiFi is unstable on TI Panda 4430 with Linaro Android 13.12 image.

Hi Botao,

As of now it is not possible to use wpa_cli with current implementation.
The implementation has to be modified.

Thanks and Regards,
HariGopal G

On 16 January 2014 10:38, Botao Sun <email address hidden> wrote:

> @HariGopal, If those commands support was dropped by Google, do we have
> alternative solution for WiFi configuration in command line?
>
> --
> You received this bug notification because you are a bug assignee.
> Matching subscriptions: all-android-bugs
> https://bugs.launchpad.net/bugs/1267475
>
> Title:
> WiFi is unstable on TI Panda 4430 with Linaro Android 13.12 image.
>
> Status in Linaro Android:
> New
>
> Bug description:
> On Linaro Android 13.12 release image:
>
> http://releases.linaro.org/13.12/android/panda/
>
> WiFi doesn't work on TI Panda 4430. The access point can be listed but
> after clicked it and typed password, a pop-up window shows:
>
> Failed to connect to network.
>
> "wpa_cli" command set doesn't work either:
>
> root@pandaboard:/ # busybox ifconfig eth0 down
> root@pandaboard:/ # svc wifi enable
> root@pandaboard:/ # [ 188.836639] wl1271: loaded
> [ 189.830444] wl1271: firmware booted (Rev 6.3.0.0.77)
> [ 189.864562] ADDRCONF(NETDEV_UP): wlan0: link is not ready
>
> root@pandaboard:/ # wpa_cli list_networks
> Using interface 'wlan0'
> UNKNOWN COMMAND
> root@pandaboard:/ # wpa_cli add_network
> Using interface 'wlan0'
> UNKNOWN COMMAND
> root@pandaboard:/ # wpa_cli set_network 0 ssid MYSSID
> Using interface 'wlan0'
> UNKNOWN COMMAND
> root@pandaboard:/ # wpa_cli set_network 0 psk MYPASSWORD
> Using interface 'wlan0'
> UNKNOWN COMMAND
> root@pandaboard:/ # wpa_cli enable_network 0
> Using interface 'wlan0'
> UNKNOWN COMMAND
> root@pandaboard:/ # busybox ifconfig wlan0
> wlan0 Link encap:Ethernet HWaddr 2A:00:02:D2:3B:0A
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> However, "wpa_cli" exists in system:
>
> root@pandaboard:/ # which wpa_cli
> /system/bin/wpa_cli
> root@pandaboard:/ #
>
> WiFi, at least command line based, worked well on build #479:
>
> https://android-build.linaro.org/builds/~linaro-android-member-ti
> /panda-linaro/#build=479
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-android/+bug/1267475/+subscriptions
>

--
Thanks and Regards,
HariGopal G
Android Engineer

Revision history for this message
Soumya Basak (soumya-basak) wrote : Re: WiFi is unstable on TI Panda 4430 with Linaro Android 13.12 image.

The issue observed with Linaro Android Kitkat 4.4 , 14.01 TI-Panda release builds:

https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-14.01-release/#build=2

with target Ti-panda 4460

The access point can be shown successfully in the list, and I can click and enter password as well, but then output shows,

255|root@pandaboard:/ # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
eth0 UP 192.168.1.10/24 0x00001043 0e:60:57:e4:46:01
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 UP 0.0.0.0/0 0x00001003 0e:20:57:e4:46:01

it not get the Ip address, or access the network.

cross check the wifi test cases multiple attempt it finally attempt to get the ip address and access the network. output shown:

root@pandaboard:/ # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
eth0 UP 0.0.0.0/0 0x00001003 0e:60:57:e4:46:01
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 UP 192.168.1.11/24 0x00001043 0e:20:57:e4:46:01

root@pandaboard:/ # busybox ifconfig -a
eth0 Link encap:Ethernet HWaddr 0E:60:57:E4:46:01
          UP BROADCAST MULTICAST MTU:1488 Metric:1
          RX packets:197385 errors:0 dropped:2 overruns:0 frame:0
          TX packets:133784 errors:0 dropped:5 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:280482849 (267.4 MiB) TX bytes:12192369 (11.6 MiB)

ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP MTU:1452 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sit0 Link encap:UNSPEC HWaddr 00-00-00-00-B3-BE-01-00-00-00-00-00-00-00-00-00
          NOARP MTU:1480 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 0E:20:57:E4:46:01
          inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:16047 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9441 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23984471 (22.8 MiB) TX bytes:749558 (731.9 KiB)

root@pandaboard:/ # [ 3597.004974] wl1271: AP with dysfunctional ps-poll, trying to work around it.

This shows a stability issue. For the log of serial console, please refer to attachment,

summary: - WiFi is unstable on TI Panda 4430 with Linaro Android 13.12 image.
+ WiFi is unstable on TI Panda with Linaro Android 13.12 image.
Botao (botao-sun)
summary: - WiFi is unstable on TI Panda with Linaro Android 13.12 image.
+ WiFi is unstable on TI Panda with Linaro Android 13.12 image. - Android
+ Kitkat
summary: - WiFi is unstable on TI Panda with Linaro Android 13.12 image. - Android
+ WiFi is unstable on TI Panda with Linaro Android images. - Android
Kitkat
description: updated
Revision history for this message
Soumya Basak (soumya-basak) wrote :

reproduced the isuue with Linaro Android kitkat 14.03 release builds:

https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-14.03-release/#build=1

with Panda 4430 board.

description: updated
description: updated
Revision history for this message
neki (nekiaiken) wrote :

"wpa_cli" command still works Kitkat.

Please try the following:
  wpa_cli -p /data/misc/wifi/sockets/ -i wlan0 list_networks

Path to ctrl sockets depends on your environment.

Revision history for this message
Botao (botao-sun) wrote :

On TI Panda board with Linaro Android image:

https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-14.06-release/#build=1

From GUI, the access point can be listed successfully, but after clicked it and typed password, its status shows "Disabled":

root@pandaboard:/mnt # [ 3327.903961] wl1271: loaded
[ 3329.028900] wl1271: firmware booted (Rev 6.3.0.0.77)
[ 3329.055450] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 3361.605072] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 3361.702697] wl1271: Association completed.
[ 3365.038909] cfg80211: Calling CRDA to update world regulatory domain
[ 3374.866119] wl1271: Scan completed due to error.
[ 3374.871093] wl1271: Reading FW panic log
[ 3374.876495] wl1271: Hardware recovery in progress. FW ver: Rev 6.3.0.0.77 pc: 0x0
[ 3374.884460] wl1271: down
[ 3374.889434] ieee80211 phy0: Hardware restart was requested
[ 3375.620849] wl1271: firmware booted (Rev 6.3.0.0.77)

root@pandaboard:/mnt #

No IP address assigned to wlan0 interface:

wlan0 Link encap:Ethernet HWaddr 2A:00:02:D2:3B:0A
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1048 (1.0 KiB) TX bytes:1023 (1023.0 B)

Amit Khare (amit-khare)
description: updated
Amit Khare (amit-khare)
description: updated
Revision history for this message
Milosz Wasilewski (mwasilew) wrote :

Wi-fi driver won't be updated. Closing.

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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