Gingerbread Wifi Issue

Search This thread

januszk

Senior Member
Oct 14, 2011
53
0
Hi rajeevvp,

In case you have a spare few minutes. I took my gTablet to my daughter swimming classes and tried to connect to public AP there. It's open network but you need to login with RoadRunner (our ISP) username and password. In the log you can find it as Brighthouse. It connected right away (about 7:05 PM) and for testing purposes I played some YouTube videos. It lasted maybe a minute or so and then it disconnected. I've tried several attempts to switch WiFi on and off but it maybe connected once more for a very short period. I was there for an hour, most of the time it remained disconnected. It tried to connect throught the whole time but did not succeeded. I never had problems connecting to this AP from my phone or ipod. Logs are attached. Maybe it will help to investigate where there problem might be.

Thanks,
Janusz
 

Attachments

  • logs.zip
    39.4 KB · Views: 1

januszk

Senior Member
Oct 14, 2011
53
0
Thanks. Can you give me a few clues of what to look for in those logs (or any other for that matter) so I don't need to bother you every time I change something? I know how to run a thing or to on unix based system but I'm not a network expert so I can't figure that out on my own.

Janusz
 

rajeevvp

Senior Member
Aug 20, 2010
1,315
406
Bangalore
The commands I use I've already given in previous posts.

The dmesg.txt file will have the kernel messages, but, since no hardware problem is indicated, we need not scrutinize that file very hard.

The logcat.txt file which contains the Android logs is more relevant for troubleshooting this WiFi problem. The command to use to look for WiFi-related errors are given in post #17. If we use that command on your latest logcat file, we get:
$ egrep -i 'connectivity|dhcp|wpa|wifi|wlan' logcatb.txt
...
10-26 19:04:57.342 D/WifiService( 1049): ACTION_BATTERY_CHANGED pluggedType: 0
10-26 19:05:03.132 E/ConnectivityService( 1049): Attempt to connect to WIFI failed.
10-26 19:05:05.662 W/WifiService( 1049): misformatted scan result for: ac:67:06:dc:f1:49 2412 172 [WPA2-PSK-CCMP]
10-26 19:05:07.342 D/WifiService( 1049): ACTION_BATTERY_CHANGED pluggedType: 0
10-26 19:05:17.342 D/WifiService( 1049): ACTION_BATTERY_CHANGED pluggedType: 0
10-26 19:05:26.602 I/ActivityManager( 1049): Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.wifi.WifiSettings } from pid 5494
10-26 19:05:27.352 D/WifiService( 1049): ACTION_BATTERY_CHANGED pluggedType: 0
10-26 19:05:29.572 W/WifiService( 1049): misformatted scan result for: ac:67:06:dc:f1:49 2412 174 [WPA2-PSK-CCMP]
10-26 19:05:29.632 W/WifiService( 1049): misformatted scan result for: ac:67:06:dc:f1:49 2412 174 [WPA2-PSK-CCMP]
10-26 19:05:37.342 D/WifiService( 1049): ACTION_BATTERY_CHANGED pluggedType: 0
10-26 19:05:41.642 W/WifiService( 1049): misformatted scan result for: ac:67:06:dc:f1:49 2412 174 [WPA2-PSK-CCMP]
10-26 19:05:41.642 W/WifiService( 1049): misformatted scan result for: 00:1f:41:35:42:88 2437 160
...
From the "misformatted scan result" error message we can see right away that there is some trouble. And by correlating the time 19:05 and looking up the MAC OUI identifiers, I can see that it happened at the location you mentioned and not at home.

Since you said your other devices were working correctly at the same time, it might be that the WiFi-related programs on the ROM are slightly finicky when dealing with marginal WiFi data. So, copy the attached wpa_supplicant from CM-7.1.0.1 to /system/bin (rename the original one to wpa_supplicant.orig first), set the correct owner/group/permissions, then reboot the tablet. See if there is any improvement.
 

Attachments

  • wpa_supplicant.tar.7z
    134.4 KB · Views: 11

januszk

Senior Member
Oct 14, 2011
53
0
I've tried the file you supplied but it didn't seem to make any difference. Actually there are more problems connecting now but it may have just be a coincident. The originall wpa_supplient and the one from your post are of the size so they may actually be the same version as well. I couldn not try this against the Brighthouse AP but I did that at home. I've run my second radio (PL) without any security but that didn't seem to make any difference. Now the most common error is:
10-29 15:30:17.175 V/WifiMonitor( 1049): Event [Authentication with c0:3f:0e:57:47:0d timed out.]

Tablet is having problems connecting at all. Log filtered out for connection isssues is attached.

Thanks,
Janusz
 

Attachments

  • logcatm2.zip
    4.4 KB · Views: 4

rajeevvp

Senior Member
Aug 20, 2010
1,315
406
Bangalore
Now the most common error is:
10-29 15:30:17.175 V/WifiMonitor( 1049): Event [Authentication with c0:3f:0e:57:47:0d timed out.]
That has been the case since the second log set. Only the first set was OK.

Get me screenshots of all the LAN- and WLAN-related settings (incl. any Advanced ones) on both your Netgear and the gTablet. Cross out any sensitive info like usernames/passwords then attach everything here. Also attach your wpa_supplicant.conf file. To find out the location of your wpa_supplicant.conf do this:
Code:
gTablet$ [B]busybox ps | fgrep wpa_supplicant[/B]
 1892 1010       0:02 /system/bin/wpa_supplicant -D wext -i wlan0 -c[B]/data/misc/wifi/wpa_supplicant.conf[/B] -iwlan0
26366 root       0:00 fgrep wpa_supplicant
Here's my wpa_supplicant.conf after the pre-shared key (psk="...") has been crossed out:
Code:
gTablet$ [B]su[/B]
gTablet# [B]cat /data/misc/wifi/wpa_supplicant.conf[/B]
ctrl_interface=wlan0
update_config=1

network={
        ssid="Wireless@Home"
        psk="xxxxxxxxxxxxxxxxxx"
        key_mgmt=WPA-PSK
        priority=8
}
Log filtered out for connection isssues is attached.
Don't filter out anything--I can do that here. Just send both logs as before. In fact, a better way of collecting logs is outlined in this post: Keep 2 windows open. In one run "adb logcat ..." as indicated and keep collecting the Android log. In the other window, use another adb session (you can have multiple adb sessions to an Android device) to keep up a running commentary instead of painfully typing into a Terminal Emulator as mentioned there and to collect the dmesg output. Use "adb shell cmd ".
 

januszk

Senior Member
Oct 14, 2011
53
0
Thanks. I'll do logs and settings as soon as I have a chance. As for wpa_supplicant conf mine looks just like your with the exception of priority. See below (this is typed in so I may do some misspelling):

ctrl_interface=wlan0
update_config=1

network={
ssid="PLN"
psk="XXXXXXXXXXXXXXXXX"
key_mgmt=WPA-PSK
priority=3
}
 

januszk

Senior Member
Oct 14, 2011
53
0
Yes, and it even connects occasionally, like this morning. Connection stayed long enough to download emails and read some news.
 

rajeevvp

Senior Member
Aug 20, 2010
1,315
406
Bangalore
Where did you get the WLAN firmware blobs (fw_bcm4329*.bin) from? You have an unusual version: 4.218.248.6.

For your kernel (pershoot 2.6.32.46-cyanogenmod) they should be: 4.218.248.18.

If you downgraded the blobs using my zip file, they should be: 4.218.223.1 (what VS supplies)

How come your firmware blobs were not updated when you flashed the new kernel? Are you on a Honeycomb ROM?
 

januszk

Senior Member
Oct 14, 2011
53
0
Before checking just a minute ago I thought those were blobs that came with the rom. I'm running ginger Vegan 7.1.0. I've tried downgrading to older version of blobs but since that didn't make any difference I restored the original one. I can try to install new kernel one more time. Is there anything that I should do after installing new kernel with CWM? How do I check for blobs version?
 

januszk

Senior Member
Oct 14, 2011
53
0
Router settings are attached. I think I've covered everything. If there is something missing let me know and I'll update. Sorry for large file but I thought print screens will be the best option to see the settings relatively easy (copy/paste didn't work that well). As for gTab settings there is nothing in particular. Regulatory domain is set to 11 channels, WI-FI sleep policy to never and I'm not using Static IP. I've only one known network PLN.

Janusz
 

Attachments

  • router.zip
    1.6 MB · Views: 3

rajeevvp

Senior Member
Aug 20, 2010
1,315
406
Bangalore
I can try to install new kernel one more time.
Since you're on the 1.2 bootloader, make sure you download the `*_newbl*' version of the kernel zip file.

How do I check for blobs version?
Reboot tablet, then:
Code:
gTablet$ [B]dmesg | egrep 'Firmware|Dongle'[/B]
[   43.838006] Firmware version = wl0: Jan 12 2011 13:49:20 version [B]4.218.248.20[/B]
[   43.996396] wlan0: Broadcom Dongle Host Driver mac=e0:2a:82:07:b0:3d
[   44.003957] Dongle Host Driver, version [B]4.218.248.23[/B]
The 'Firmware version = ..." will show the firmware blob version. The "Dongle Host Driver, version ..." is the kernel WLAN device driver module version.
 

januszk

Senior Member
Oct 14, 2011
53
0
Everything seems to be ok. I've installed boot-cm_2632.46_gb_newbl-oc-uv-xtra-vfp_fp-083111.zip. I've reapplied it.

System returns:
Firmware version 4.218.248.6
Dongle Host Driver version 4.218.248.23
 

rajeevvp

Senior Member
Aug 20, 2010
1,315
406
Bangalore
Firmware version 4.218.248.6
That's wrong for the kernel you installed. It should show 4.218.248.18. What's the output of these find commands?
Code:
gTablet$ [B]su[/B]
gTablet# [B]find / -name 'fw_*.bin'[/B]
gTablet# [B]find / -name 'bcm*.ko'[/B]


---------- Post added 31st October 2011 at 12:08 AM ---------- Previous post was 30th October 2011 at 11:57 PM ----------

Router settings are attached.
This is a .doc file, which is no good for me. Standard image formats only please.
 
Last edited:

januszk

Senior Member
Oct 14, 2011
53
0
Find returns only one location for all files (and the right one):
/system/lib/hw/wlan/fw_bcm4329_apsta.bin
/system/lib/hw/wlan/fw_bcm4329.bin
/system/lib/hw/wlan/bcm/bcm4329.ko

I'll redo printscreens. I can do odt format but if you have open office you should be able to open doc as well (they were created in OO).

Janusz

---------- Post added at 08:02 PM ---------- Previous post was at 07:45 PM ----------

I've manually copied blobs from boot-cm_2632.46_gb_newbl-oc-uv-xtra-vfp_fp-083111.zip package to gTab /system/lib/hw/wlan and they still come with the same version (they were the same sizes as well).
 

januszk

Senior Member
Oct 14, 2011
53
0
Router settings in jpeg format attached.
Can you post blobs that you think should come with this kernel? I can try to put them in and see if there will be any difference.

Thanks
Janusz
 

Attachments

  • router.7z
    1.7 MB · Views: 3

rajeevvp

Senior Member
Aug 20, 2010
1,315
406
Bangalore
The locations for those two blobs are correct, but, I think, they're not the right versions. Looks like Pershoot is using 2 different versions of the firmware blobs for 1.1 (4.218.248.18) and 1.2 bootloaders (4.218.248.6). I'll ask what's up with this, tomorrow. In the mean time, download the 1.1 version of the kernel, extract the firmware blobs and copy them into place.

/system/lib/hw/wlan/bcm/bcm4329.ko
This location is incorrect. It should be /system/lib/hw/wlan/bcm4329.ko.
I can do odt format but if you have open office you should be able to open doc as well (they were created in OO).
Don't have/use OO.
 

januszk

Senior Member
Oct 14, 2011
53
0
That was my misspeling. The file is /system/lib/hw/wlan/bcm4329.ko
I've applied your downgraded blobs. Now system shows:
Firmware version 4.218.223.1
Dongle Host Driver version 4.218.248.23

but no change in behavior (the same timeout message).

JPG print screens of my router settins are in the previous post.

Thanks,
Janusz
 

januszk

Senior Member
Oct 14, 2011
53
0
I applied blobs from 1.1 BT. Now it shows as:

Firmware version 4.218.248.18
Dongle Host Driver 4.218.248.23

Logcat shows the same timeout message.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Sorry mosy of this is greek to me as I am a NOOB. Have Gtab 3588 1.1 vegan 7.?
    Exact version?

    all of a sudden I can't connect to wifi, all my other devices at home work fine. Getting a disabled connection from home, have tried readding, rebooting, reseting rom, reinstalling Vegan.
    As I said in post #2, above:
    Note, however, that the causes of WiFi drops are many. Some troubleshooting will be needed to find out the exact cause of your problem.
    However, you can:

    1. Try upgrading to the latest pershoot kernel. Since you're on Vegan 7 (a Gingerbread ROM) and the 1.1 bootloader, go to http://droidbasement.com/db-blog/ and download this file boot-cm_2632.46_gb-oc-uv-xtra-vfp_fp-083111.zip from there. Copy the zip file onto your gtab, then install it using CWM.

    2. If the upgraded kernel doesn't help try downgrading the firmware blobs using the link in post #2. Use the Cyanogenmod zip file.

    3. If neither of the 2 steps above work, then follow this post and get me some logs.
    1
    What info do you need? and exactly where do I find it. It says 7.0.0 when booting up
    Fine, then you have a Gingerbread ROM. Just follow the instructions in post #7, above, and see if each step helps.

    If steps 1. and 2. don't help you, use the instructions in the link in step 3. to get me logs which will help me troubleshoot your problem.
    1
    I've created a little list of your suggested settings and went through it one by one:
    The first step actually is:
    1. Get the latest firmware file, either dd-wrt.v24_std_generic.bin or dd-wrt.v24_mini_generic.bin from here. Other versions seem to have problems handing out DHCP addresses. Your logs show that the AP is not handing out DHCP addresses in a timely manner. Flash the firmware and follow the 30-30-30 procedure listed here.

    The next step is:
    2. Do not restore old configs.

    Let's see a "done" next to these two.

    3. Disable "Afterburner" and Enable "Bluetooth Coexistence Mode" in Advanced Wireless Settings - done
    If you don't use any bluetooth devices, or don't have any problems using both bluetooth and WiFi at the same time, you can leave "Bluetooth Coexistence Mode" as disabled.

    6. NTP Client, you have to provide the address of a NTP server. Use one of the NTP pool servers like 2.europe.pool.ntp.org - disabled
    Enable NTP Client, but, provide a proper server address is what I meant.

    7. For the DHCP lease time use a setting of 86400 seconds (1 day) - set to 1440 minutes
    I think the Netgear returned -1 as the lease time when this was set to 1440 minutes. Reduce by half--make it 720 mins.

    I've "forgotten" all networks except 'PL'.
    Make sure /data/misc/wifi/wpa_supplicant.conf only has PL in it and that the pre-shared key is what you've set on the AP.

    I've applied your wrapper for wpa_supplicant (although I'm not sure if log is as detailed as the one from entering verbose mode).
    Hmm. Can you go back to VEGAn-7.1.0? The wpa_supplicant that comes with it understands the `-ddd' flag to enable verbose logging.

    Included is log from Froyo (both logcat and dmesg). Unfortuantely during that session it wasn't able to connect.
    The logs look the same--authentication timeout. Not surprising if you've not update the AP firmware and reset it to defaults.