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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:40 +0000 (13:14 +0100)
commit84e1fbf5681e877ff227432918ffd4b5c6f6f228
treeced4ceb32846dadf40a969a1bdcc6816d3958baa
parentc9b310ee2b2a50ffaa6ea0ca9226c64a12ed0c54
nl80211: ensure interface is up in various APIs

commit 2b5f8b0b44e17e625cfba1e7b88db44f4dcc0441 upstream.
[backported by Ben Greear]

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.

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>
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/wireless/nl80211.c