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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:56:34 +0000 (08:56 -0700)
commit20eae41274bb811063f95a2dde0b3dda88a3d5a0
tree04c5ba230f77adb3e62056901e6962cb6e7a2f9a
parente469853fcb813790b1d1152122d83a0f2513fc72
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c