nl80211: don't assume wdev->netdev exists
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jun 2012 16:00:00 +0000 (18:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 9 Jul 2012 12:51:46 +0000 (14:51 +0200)
commitba22fb5b25db1e18692e2d01f8addb3fea0af813
treec5e07f938160260f085c124b803067682e010840
parent72fb2abcf5f985a72e0a30c214b7ed49afa6571b
nl80211: don't assume wdev->netdev exists

There are a few places that iterate the wdev
list and assume wdev->netdev exists, check
there. The rfkill one has to be extended for
each non-netdev type later.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c