diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2010-08-05 11:02:38 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 15:26:40 -0400 |
| commit | 7da7cc1d42d8ce02cca16df8c021e6d657f1f8fd (patch) | |
| tree | 3d18e0b36edfcc015d27f66890cf4a8d60c45bda /include/net | |
| parent | 1fdaa46e9f26ccbab5e0eb8c4d4f8e1fbf32c7df (diff) | |
mac80211: per interface idle notification
Sometimes we don't just need to know whether or
not the device is idle, but also per interface.
This adds that reporting capability to mac80211.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/mac80211.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 3f1e03b521ec..3a3c26f647b7 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -149,6 +149,7 @@ struct ieee80211_low_level_stats { | |||
| 149 | * @BSS_CHANGED_ARP_FILTER: Hardware ARP filter address list or state changed. | 149 | * @BSS_CHANGED_ARP_FILTER: Hardware ARP filter address list or state changed. |
| 150 | * @BSS_CHANGED_QOS: QoS for this association was enabled/disabled. Note | 150 | * @BSS_CHANGED_QOS: QoS for this association was enabled/disabled. Note |
| 151 | * that it is only ever disabled for station mode. | 151 | * that it is only ever disabled for station mode. |
| 152 | * @BSS_CHANGED_IDLE: Idle changed for this BSS/interface. | ||
| 152 | */ | 153 | */ |
| 153 | enum ieee80211_bss_change { | 154 | enum ieee80211_bss_change { |
| 154 | BSS_CHANGED_ASSOC = 1<<0, | 155 | BSS_CHANGED_ASSOC = 1<<0, |
| @@ -165,6 +166,7 @@ enum ieee80211_bss_change { | |||
| 165 | BSS_CHANGED_IBSS = 1<<11, | 166 | BSS_CHANGED_IBSS = 1<<11, |
| 166 | BSS_CHANGED_ARP_FILTER = 1<<12, | 167 | BSS_CHANGED_ARP_FILTER = 1<<12, |
| 167 | BSS_CHANGED_QOS = 1<<13, | 168 | BSS_CHANGED_QOS = 1<<13, |
| 169 | BSS_CHANGED_IDLE = 1<<14, | ||
| 168 | 170 | ||
| 169 | /* when adding here, make sure to change ieee80211_reconfig */ | 171 | /* when adding here, make sure to change ieee80211_reconfig */ |
| 170 | }; | 172 | }; |
| @@ -223,6 +225,9 @@ enum ieee80211_bss_change { | |||
| 223 | * hardware must not perform any ARP filtering. Note, that the filter will | 225 | * hardware must not perform any ARP filtering. Note, that the filter will |
| 224 | * be enabled also in promiscuous mode. | 226 | * be enabled also in promiscuous mode. |
| 225 | * @qos: This is a QoS-enabled BSS. | 227 | * @qos: This is a QoS-enabled BSS. |
| 228 | * @idle: This interface is idle. There's also a global idle flag in the | ||
| 229 | * hardware config which may be more appropriate depending on what | ||
| 230 | * your driver/device needs to do. | ||
| 226 | */ | 231 | */ |
| 227 | struct ieee80211_bss_conf { | 232 | struct ieee80211_bss_conf { |
| 228 | const u8 *bssid; | 233 | const u8 *bssid; |
| @@ -247,6 +252,7 @@ struct ieee80211_bss_conf { | |||
| 247 | u8 arp_addr_cnt; | 252 | u8 arp_addr_cnt; |
| 248 | bool arp_filter_enabled; | 253 | bool arp_filter_enabled; |
| 249 | bool qos; | 254 | bool qos; |
| 255 | bool idle; | ||
| 250 | }; | 256 | }; |
| 251 | 257 | ||
| 252 | /** | 258 | /** |
