nl80211: ensure interface is up in various APIs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 2 Apr 2012 08:51:55 +0000 (10:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 19:54:46 +0000 (15:54 -0400)
commit2b5f8b0b44e17e625cfba1e7b88db44f4dcc0441
treefc33627d2022e848b881e88494a8e7dbab7643a4
parent3f9768a5d262d01d317b2a03933db3d5082fcb68
nl80211: ensure interface is up in various APIs

The nl80211 handling code should ensure as much as
it can that the interface is in a valid state, it
can certainly ensure the interface is running.

Not doing so can cause calls through mac80211 into
the driver that result in warnings and unspecified
behaviour in the driver.

Cc: stable@vger.kernel.org
Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c