aboutsummaryrefslogtreecommitdiff
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorGravatar Eliad Peller <eliad@wizery.com> 2011-06-06 12:59:29 +0300
committerGravatar John W. Linville <linville@tuxdriver.com> 2011-06-10 14:26:50 -0400
commit1d34d108e07680e2c07847d5e69a334cb4f96ab3 (patch)
tree67c36ad1c6c3250b543c8b68c57ac41e90c1e5f3 /include/net/mac80211.h
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff)
downloadlinux-1d34d108e07680e2c07847d5e69a334cb4f96ab3.tar.gz
linux-1d34d108e07680e2c07847d5e69a334cb4f96ab3.tar.bz2
linux-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 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 3b31ec95dd8e..e33fe795a3a4 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2920,6 +2920,16 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif,
gfp_t gfp);
/**
+ * ieee80211_get_operstate - get the operstate of the vif
+ *
+ * @vif: &struct ieee80211_vif pointer from the add_interface callback.
+ *
+ * The driver might need to know the operstate of the net_device
+ * (specifically, whether the link is IF_OPER_UP after resume)
+ */
+unsigned char ieee80211_get_operstate(struct ieee80211_vif *vif);
+
+/**
* ieee80211_chswitch_done - Complete channel switch process
* @vif: &struct ieee80211_vif pointer from the add_interface callback.
* @success: make the channel switch successful or not