diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-04-23 13:49:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-24 14:54:28 -0400 |
commit | 030ef8f8a59c77d44cadeded6d3a5a12557774f4 (patch) | |
tree | f9a21ddf7b127badf8619ffbc4809c74870eb3fc /net | |
parent | be6bcabc7919522f28c99642b8e04ef7b8e19283 (diff) |
mac80211: rename AP variable num_sta_authorized to num_mcast_sta
It is only used to test for BSS multicast receivers.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 4 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 | ||||
-rw-r--r-- | net/mac80211/sta_info.c | 4 | ||||
-rw-r--r-- | net/mac80211/tx.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index e7af5227e322..ea0122dbd2b3 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -394,7 +394,7 @@ static ssize_t ieee80211_if_parse_uapsd_max_sp_len( | |||
394 | __IEEE80211_IF_FILE_W(uapsd_max_sp_len); | 394 | __IEEE80211_IF_FILE_W(uapsd_max_sp_len); |
395 | 395 | ||
396 | /* AP attributes */ | 396 | /* AP attributes */ |
397 | IEEE80211_IF_FILE(num_sta_authorized, u.ap.num_sta_authorized, ATOMIC); | 397 | IEEE80211_IF_FILE(num_mcast_sta, u.ap.num_mcast_sta, ATOMIC); |
398 | IEEE80211_IF_FILE(num_sta_ps, u.ap.num_sta_ps, ATOMIC); | 398 | IEEE80211_IF_FILE(num_sta_ps, u.ap.num_sta_ps, ATOMIC); |
399 | IEEE80211_IF_FILE(dtim_count, u.ap.dtim_count, DEC); | 399 | IEEE80211_IF_FILE(dtim_count, u.ap.dtim_count, DEC); |
400 | 400 | ||
@@ -540,7 +540,7 @@ static void add_sta_files(struct ieee80211_sub_if_data *sdata) | |||
540 | 540 | ||
541 | static void add_ap_files(struct ieee80211_sub_if_data *sdata) | 541 | static void add_ap_files(struct ieee80211_sub_if_data *sdata) |
542 | { | 542 | { |
543 | DEBUGFS_ADD(num_sta_authorized); | 543 | DEBUGFS_ADD(num_mcast_sta); |
544 | DEBUGFS_ADD(num_sta_ps); | 544 | DEBUGFS_ADD(num_sta_ps); |
545 | DEBUGFS_ADD(dtim_count); | 545 | DEBUGFS_ADD(dtim_count); |
546 | DEBUGFS_ADD(num_buffered_multicast); | 546 | DEBUGFS_ADD(num_buffered_multicast); |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 1d074260acd1..851fb7dc893c 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -282,7 +282,7 @@ struct ieee80211_if_ap { | |||
282 | u8 tim[sizeof(unsigned long) * BITS_TO_LONGS(IEEE80211_MAX_AID + 1)]; | 282 | u8 tim[sizeof(unsigned long) * BITS_TO_LONGS(IEEE80211_MAX_AID + 1)]; |
283 | struct sk_buff_head ps_bc_buf; | 283 | struct sk_buff_head ps_bc_buf; |
284 | atomic_t num_sta_ps; /* number of stations in PS mode */ | 284 | atomic_t num_sta_ps; /* number of stations in PS mode */ |
285 | atomic_t num_sta_authorized; /* number of authorized stations */ | 285 | atomic_t num_mcast_sta; /* number of stations receiving multicast */ |
286 | int dtim_count; | 286 | int dtim_count; |
287 | bool dtim_bc_mc; | 287 | bool dtim_bc_mc; |
288 | }; | 288 | }; |
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 7fd7ac48f893..4c04eb5e4cae 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -1418,14 +1418,14 @@ int sta_info_move_state(struct sta_info *sta, | |||
1418 | set_bit(WLAN_STA_ASSOC, &sta->_flags); | 1418 | set_bit(WLAN_STA_ASSOC, &sta->_flags); |
1419 | } else if (sta->sta_state == IEEE80211_STA_AUTHORIZED) { | 1419 | } else if (sta->sta_state == IEEE80211_STA_AUTHORIZED) { |
1420 | if (sta->sdata->vif.type == NL80211_IFTYPE_AP) | 1420 | if (sta->sdata->vif.type == NL80211_IFTYPE_AP) |
1421 | atomic_dec(&sta->sdata->u.ap.num_sta_authorized); | 1421 | atomic_dec(&sta->sdata->u.ap.num_mcast_sta); |
1422 | clear_bit(WLAN_STA_AUTHORIZED, &sta->_flags); | 1422 | clear_bit(WLAN_STA_AUTHORIZED, &sta->_flags); |
1423 | } | 1423 | } |
1424 | break; | 1424 | break; |
1425 | case IEEE80211_STA_AUTHORIZED: | 1425 | case IEEE80211_STA_AUTHORIZED: |
1426 | if (sta->sta_state == IEEE80211_STA_ASSOC) { | 1426 | if (sta->sta_state == IEEE80211_STA_ASSOC) { |
1427 | if (sta->sdata->vif.type == NL80211_IFTYPE_AP) | 1427 | if (sta->sdata->vif.type == NL80211_IFTYPE_AP) |
1428 | atomic_inc(&sta->sdata->u.ap.num_sta_authorized); | 1428 | atomic_inc(&sta->sdata->u.ap.num_mcast_sta); |
1429 | set_bit(WLAN_STA_AUTHORIZED, &sta->_flags); | 1429 | set_bit(WLAN_STA_AUTHORIZED, &sta->_flags); |
1430 | } | 1430 | } |
1431 | break; | 1431 | break; |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 0abbef952c14..44001c7e0e58 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -306,7 +306,7 @@ ieee80211_tx_h_check_assoc(struct ieee80211_tx_data *tx) | |||
306 | } | 306 | } |
307 | } else if (unlikely(tx->sdata->vif.type == NL80211_IFTYPE_AP && | 307 | } else if (unlikely(tx->sdata->vif.type == NL80211_IFTYPE_AP && |
308 | ieee80211_is_data(hdr->frame_control) && | 308 | ieee80211_is_data(hdr->frame_control) && |
309 | !atomic_read(&tx->sdata->u.ap.num_sta_authorized))) { | 309 | !atomic_read(&tx->sdata->u.ap.num_mcast_sta))) { |
310 | /* | 310 | /* |
311 | * No associated STAs - no need to send multicast | 311 | * No associated STAs - no need to send multicast |
312 | * frames. | 312 | * frames. |