diff options
author | Eliad Peller <eliad@wizery.com> | 2011-06-06 12:59:29 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-10 14:26:50 -0400 |
commit | 1d34d108e07680e2c07847d5e69a334cb4f96ab3 (patch) | |
tree | 67c36ad1c6c3250b543c8b68c57ac41e90c1e5f3 /net/mac80211/mlme.c | |
parent | c48b1f729a75880d0895f0b23efaf551ee800a35 (diff) | |
download | linux-stable-1d34d108e07680e2c07847d5e69a334cb4f96ab3.tar.gz linux-stable-1d34d108e07680e2c07847d5e69a334cb4f96ab3.tar.bz2 linux-stable-1d34d108e07680e2c07847d5e69a334cb4f96ab3.zip |
mac80211: add ieee80211_get_operstate() function
Add ieee80211_get_operstate() function to get the operstate
of the netdevice.
This is needed for drivers that need to know when the interface
is IF_OPER_UP (e.g. wl12xx), and block notifiers can't be used
(e.g. because the interface is already IF_OPER_UP, like after
resuming from suspend)
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index d595265d6c22..0c6e9ef8c7f8 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2652,3 +2652,10 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif, cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp); } EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); + +unsigned char ieee80211_get_operstate(struct ieee80211_vif *vif) +{ + struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); + return sdata->dev->operstate; +} +EXPORT_SYMBOL(ieee80211_get_operstate); |