Re: attempt to scan fails (device busy) if essid/ssid was changedrecently

From: Maxim Levitsky
Date: Fri Apr 10 2009 - 16:31:38 EST


On Tue, 2009-04-07 at 22:37 +0200, Johannes Berg wrote:
> On Tue, 2009-04-07 at 23:24 +0300, Maxim Levitsky wrote:
>
> > First I get this in kernel logs:
> >
> >
> > > [ 29.971903] WARNING:
> > at /home/maxim/software/kernel/linux-2.6/net/wireless/core.h:79
> > nl80211_send_wiphy+0x8bd/0xa20 [cfg80211]()
>
> Eh, I don't think that is present in a recent wireless tree.

It is.

I have just compiled iwlwifi.git tree, and same message is there:



> [ 1666.298390] ------------[ cut here ]------------
> [ 1666.298395] WARNING: at /home/maxim/software/kernel/linux-2.6/net/wireless/core.h:79 nl80211_send_wiphy+0x8bd/0xa20 [cfg80211]()
> [ 1666.298399] Hardware name: Aspire 5720
> [ 1666.298402] Modules linked in: af_packet nfsd exportfs ipv6 nfs lockd nfs_acl auth_rpcgss sunrpc cpufreq_powersave cpufreq_conservative cpufreq_userspace acpi_cpufreq coretemp sbp2 joydev uvcvideo iwl3945 videodev v4l1_compat v4l2_compat_ioctl32 iwlcore rfkill snd_hda_codec_realtek snd_hda_intel snd_hda_codec mac80211 snd_hwdep ehci_hcd psmouse video iTCO_wdt lib80211 tg3 snd_pcm_oss snd_mixer_oss usbcore output evdev iTCO_vendor_support nvidia(P) cfg80211 libphy serio_raw snd_pcm snd_timer ricoh_mmc sdhci_pci sdhci ohci1394 ata_piix snd_page_alloc ext3 jbd mbcache fuse ahci libata
> [ 1666.298473] Pid: 13164, comm: wpa_supplicant Tainted: P 2.6.29-wl #19
> [ 1666.298477] Call Trace:
> [ 1666.298490] [<ffffffff80241320>] warn_slowpath+0xd0/0x130
> [ 1666.298504] [<ffffffffa00f9ac6>] ? nl80211_get_wiphy+0x56/0xd0 [cfg80211]
> [ 1666.298512] [<ffffffff802a8263>] ? __alloc_pages_internal+0xe3/0x4f0
> [ 1666.298525] [<ffffffffa00f965d>] nl80211_send_wiphy+0x8bd/0xa20 [cfg80211]
> [ 1666.298537] [<ffffffffa00f9ac6>] ? nl80211_get_wiphy+0x56/0xd0 [cfg80211]
> [ 1666.298542] [<ffffffff802a86ee>] ? __get_free_pages+0x1e/0x60
> [ 1666.298550] [<ffffffff804a59ae>] ? __alloc_skb+0x6e/0x140
> [ 1666.298562] [<ffffffffa00f9ae4>] nl80211_get_wiphy+0x74/0xd0 [cfg80211]
> [ 1666.298569] [<ffffffff804c5986>] genl_rcv_msg+0x1b6/0x1f0
> [ 1666.298575] [<ffffffff804c57d0>] ? genl_rcv_msg+0x0/0x1f0
> [ 1666.298582] [<ffffffff804c4839>] netlink_rcv_skb+0x89/0xb0
> [ 1666.298586] [<ffffffff804c57b7>] genl_rcv+0x27/0x40
> [ 1666.298592] [<ffffffff804c4234>] netlink_unicast+0x2c4/0x2e0
> [ 1666.298597] [<ffffffff804a59ae>] ? __alloc_skb+0x6e/0x140
> [ 1666.298603] [<ffffffff804c4464>] netlink_sendmsg+0x214/0x310
> [ 1666.298609] [<ffffffff8049ceb7>] sock_sendmsg+0x127/0x140
> [ 1666.298616] [<ffffffff80258c20>] ? autoremove_wake_function+0x0/0x40
> [ 1666.298622] [<ffffffff8023bc60>] ? wake_up_process+0x10/0x20
> [ 1666.298629] [<ffffffff80535c74>] ? __mutex_unlock_slowpath+0x44/0x50
> [ 1666.298635] [<ffffffff80535c0e>] ? mutex_unlock+0xe/0x10
> [ 1666.298641] [<ffffffff804b8900>] ? __rtnl_unlock+0x10/0x20
> [ 1666.298647] [<ffffffff8049dd17>] ? move_addr_to_kernel+0x57/0x60
> [ 1666.298652] [<ffffffff804a6e7c>] ? verify_iovec+0x3c/0xd0
> [ 1666.298657] [<ffffffff8049d059>] sys_sendmsg+0x189/0x320
> [ 1666.298663] [<ffffffff804ffd14>] ? inet_ioctl+0x94/0xc0
> [ 1666.298668] [<ffffffff8049bf56>] ? sock_ioctl+0x66/0x270
> [ 1666.298675] [<ffffffff802dfd21>] ? vfs_ioctl+0x31/0xa0
> [ 1666.298680] [<ffffffff802dfe18>] ? do_vfs_ioctl+0x88/0x580
> [ 1666.298686] [<ffffffff802d20c9>] ? __fput+0x169/0x1e0
> [ 1666.298692] [<ffffffff8020c5db>] system_call_fastpath+0x16/0x1b
> [ 1666.298696] ---[ end trace 24eb07dee6e9ca52 ]---
>
>

On top of that I need to note that NM doesn't show signal strenghts correctly.
Instead it shows 100% for all AP except the current active one.

This is iwl3945 driver from iwlwifi-git of today.
Plus I use latest -git of wpa_supplicant, and NM


Best regards,
Maxim Levitsky



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/