Skip to contentSkip to conversation

Warning at mlme.c in __cfg80211_auth_remove

DISCUSSION Ben Greear 1 participant 1 message Nov 19, 2010

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

I hit this warn-on, not to sure exactly why.

This was on an ath9k system with .37-rc2 wireless testing from yesterday. 29 STA interfaces.

static void __cfg80211_auth_remove(struct wireless_dev *wdev, const u8 *addr)

{
	int i;
	bool done = false;

	ASSERT_WDEV_LOCK(wdev);

	for (i = 0; addr && i < MAX_AUTH_BSSES; i++) {
		if (wdev->authtry_bsses[i] &&
		    memcmp(wdev->authtry_bsses[i]->pub.bssid,
			   addr, ETH_ALEN) == 0) {
			cfg80211_unhold_bss(wdev->authtry_bsses[i]);
			cfg80211_put_bss(&wdev->authtry_bsses[i]->pub);
			wdev->authtry_bsses[i] = NULL;
			done = true;
			break;
		}
	}

	WARN_ON(!done);
}
WARNING: at /home/greearb/git/linux.wireless-testing/net/wireless/mlme.c:285 __cfg80211_auth_remove+0x98/0x9e [cfg80211]()
Hardware name: PDSBM
Modules linked in: 8021q garp stp llc michael_mic macvlan pktgen fuse nfs lockd fscache nfs_acl auth_rpcgss sunrpc ipv6 uinput arc4 ecb microcode ath9]
Pid: 43, comm: kworker/u:3 Tainted: P            2.6.37-rc2-wl+ #50
Call Trace:
 [<78436f25>] warn_slowpath_common+0x77/0x8c
 [<f8da3532>] ? __cfg80211_auth_remove+0x98/0x9e [cfg80211]
 [<f8da3532>] ? __cfg80211_auth_remove+0x98/0x9e [cfg80211]
 [<78436f57>] warn_slowpath_null+0x1d/0x1f
 [<f8da3532>] __cfg80211_auth_remove+0x98/0x9e [cfg80211]
 [<f8da3c6c>] cfg80211_send_auth_timeout+0x90/0xa0 [cfg80211]
 [<784b6538>] ? __slab_free+0x59/0xae
 [<7845a5e5>] ? trace_hardirqs_on+0xb/0xd
 [<f911b329>] ieee80211_probe_auth_done+0x1e/0x7b [mac80211]
 [<f911d68a>] ieee80211_work_work+0xd2a/0xd68 [mac80211]
 [<7845a5e5>] ? trace_hardirqs_on+0xb/0xd
 [<78446f3c>] process_one_work+0x1af/0x2bf
 [<78446ecb>] ? process_one_work+0x13e/0x2bf
 [<f911c960>] ? ieee80211_work_work+0x0/0xd68 [mac80211]
 [<7844868a>] worker_thread+0xf9/0x1bf
 [<78448591>] ? worker_thread+0x0/0x1bf
 [<7844b1ba>] kthread+0x62/0x67
 [<7844b158>] ? kthread+0x0/0x67
 [<784036c6>] kernel_thread_helper+0x6/0x1a
---[ end trace efa7135148c6ef21 ]---
Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com