Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255724
b: refs/heads/master
c: 1d34d10
h: refs/heads/master
v: v3
  • Loading branch information
Eliad Peller authored and John W. Linville committed Jun 10, 2011
1 parent 5eeb486 commit a99d7e8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c48b1f729a75880d0895f0b23efaf551ee800a35
refs/heads/master: 1d34d108e07680e2c07847d5e69a334cb4f96ab3
10 changes: 10 additions & 0 deletions trunk/include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -2919,6 +2919,16 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif,
enum nl80211_cqm_rssi_threshold_event rssi_event,
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.
Expand Down
7 changes: 7 additions & 0 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit a99d7e8

Please sign in to comment.