diff options
-rw-r--r-- | include/net/mac80211.h | 10 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 7 |
2 files changed, 17 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, | |||
2920 | gfp_t gfp); | 2920 | gfp_t gfp); |
2921 | 2921 | ||
2922 | /** | 2922 | /** |
2923 | * ieee80211_get_operstate - get the operstate of the vif | ||
2924 | * | ||
2925 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | ||
2926 | * | ||
2927 | * The driver might need to know the operstate of the net_device | ||
2928 | * (specifically, whether the link is IF_OPER_UP after resume) | ||
2929 | */ | ||
2930 | unsigned char ieee80211_get_operstate(struct ieee80211_vif *vif); | ||
2931 | |||
2932 | /** | ||
2923 | * ieee80211_chswitch_done - Complete channel switch process | 2933 | * ieee80211_chswitch_done - Complete channel switch process |
2924 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | 2934 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. |
2925 | * @success: make the channel switch successful or not | 2935 | * @success: make the channel switch successful or not |
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, | |||
2652 | cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp); | 2652 | cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp); |
2653 | } | 2653 | } |
2654 | EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); | 2654 | EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); |
2655 | |||
2656 | unsigned char ieee80211_get_operstate(struct ieee80211_vif *vif) | ||
2657 | { | ||
2658 | struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); | ||
2659 | return sdata->dev->operstate; | ||
2660 | } | ||
2661 | EXPORT_SYMBOL(ieee80211_get_operstate); | ||