nl80211: use generic check for netif_running
authorJohannes Berg <johannes.berg@intel.com>
Mon, 4 Oct 2010 19:14:05 +0000 (21:14 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Oct 2010 17:37:51 +0000 (13:37 -0400)
commit41265714810e20d91ddd7aaca30043b0f12190ad
treee69d25e8af99c0df71ffaa3746ab32d3e938d641
parent4c476991062a0a59523c2bf193f09087f469686a
nl80211: use generic check for netif_running

Use a new flag that requires the netdev to be
UP and use it to check instead of coding the
check into all functions that require it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c