nl80211: ensure interface is up in various APIs
authorJohannes Berg <johannes.berg@intel.com>
Wed, 18 Apr 2012 14:30:32 +0000 (19:30 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 14:30:32 +0000 (19:30 +0530)
commit393acf969c5efb222450015bf412a210e8e39779
tree690a3d6aace592b243af23c19013c1495138c4a3
parent2018de2e2f860d4c2a780e524157ae4c1238524c
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.

Change-Id: I60c836aac638b8be33011ffcf455d20e0e1bfc61
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