Files
linux-legacy/net/mac80211
Johannes Berg 958da8f522 mac80211: check interface is down before type change
commit c1f9a764cf47686b1f5a0cf87ada68d90056136a upstream.

For some strange reason the netif_running() check
ended up after the actual type change instead of
before, potentially causing all kinds of problems
if the interface is up while changing the type;
one of the problems manifests itself as a warning:

WARNING: at net/mac80211/iface.c:651 ieee80211_teardown_sdata+0xda/0x1a0 [mac80211]()
Hardware name: Aspire one
Pid: 2596, comm: wpa_supplicant Tainted: G        W  2.6.31-10-generic #32-Ubuntu
Call Trace:
 [] warn_slowpath_common+0x6d/0xa0
 [] warn_slowpath_null+0x15/0x20
 [] ieee80211_teardown_sdata+0xda/0x1a0 [mac80211]
 [] ieee80211_if_change_type+0x4a/0xc0 [mac80211]
 [] ieee80211_change_iface+0x61/0xa0 [mac80211]
 [] cfg80211_wext_siwmode+0xc7/0x120 [cfg80211]
 [] ioctl_standard_call+0x58/0xf0

(http://www.kerneloops.org/searchweek.php?search=ieee80211_teardown_sdata)

Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-11-09 16:22:31 -08:00
..
2009-06-15 15:05:57 -04:00
2007-05-05 11:46:38 -07:00
2009-06-03 14:06:14 -04:00
2009-04-22 16:54:28 -04:00
2009-04-22 16:57:17 -04:00
2009-06-03 14:06:14 -04:00
2009-07-21 12:07:35 -04:00
2009-08-17 13:38:34 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2009-02-27 14:51:42 -05:00
2009-06-26 13:51:36 -07:00
2009-07-29 14:52:01 -04:00
2009-10-22 15:12:01 -07:00
2009-05-20 14:46:25 -04:00
2009-10-22 15:12:01 -07:00
2009-05-20 14:46:32 -04:00
2009-05-06 15:14:37 -04:00
2009-03-27 20:13:21 -04:00
2008-10-31 18:05:59 -04:00
2009-04-22 16:54:28 -04:00