Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1565953
| From | Amadeusz Sławiński <amadeusz.slawinski@tieto.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] mac80211: use accessor functions to set sta->_flags |
| Date | 2017-01-24 16:50 +0100 |
| Message-ID | <t3bw6-66h-23@gated-at.bofh.it> (permalink) |
| References | <t3bw5-66h-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
cleanup patch to make use of set_sta_flag()/clear_sta_flag() in places
where we access sta->_flags
Signed-off-by: Amadeusz Sławiński <amadeusz.slawinski@tieto.com>
---
net/mac80211/sta_info.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index b6cfcf0..6c9cc2f 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -1855,13 +1855,13 @@ int sta_info_move_state(struct sta_info *sta,
switch (new_state) {
case IEEE80211_STA_NONE:
if (sta->sta_state == IEEE80211_STA_AUTH)
- clear_bit(WLAN_STA_AUTH, &sta->_flags);
+ clear_sta_flag(sta, WLAN_STA_AUTH);
break;
case IEEE80211_STA_AUTH:
if (sta->sta_state == IEEE80211_STA_NONE) {
- set_bit(WLAN_STA_AUTH, &sta->_flags);
+ set_sta_flag(sta, WLAN_STA_AUTH);
} else if (sta->sta_state == IEEE80211_STA_ASSOC) {
- clear_bit(WLAN_STA_ASSOC, &sta->_flags);
+ clear_sta_flag(sta, WLAN_STA_ASSOC);
ieee80211_recalc_min_chandef(sta->sdata);
if (!sta->sta.support_p2p_ps)
ieee80211_recalc_p2p_go_ps_allowed(sta->sdata);
@@ -1869,13 +1869,13 @@ int sta_info_move_state(struct sta_info *sta,
break;
case IEEE80211_STA_ASSOC:
if (sta->sta_state == IEEE80211_STA_AUTH) {
- set_bit(WLAN_STA_ASSOC, &sta->_flags);
+ set_sta_flag(sta, WLAN_STA_ASSOC);
ieee80211_recalc_min_chandef(sta->sdata);
if (!sta->sta.support_p2p_ps)
ieee80211_recalc_p2p_go_ps_allowed(sta->sdata);
} else if (sta->sta_state == IEEE80211_STA_AUTHORIZED) {
ieee80211_vif_dec_num_mcast(sta->sdata);
- clear_bit(WLAN_STA_AUTHORIZED, &sta->_flags);
+ clear_sta_flag(sta, WLAN_STA_AUTHORIZED);
ieee80211_clear_fast_xmit(sta);
ieee80211_clear_fast_rx(sta);
}
@@ -1883,7 +1883,7 @@ int sta_info_move_state(struct sta_info *sta,
case IEEE80211_STA_AUTHORIZED:
if (sta->sta_state == IEEE80211_STA_ASSOC) {
ieee80211_vif_inc_num_mcast(sta->sdata);
- set_bit(WLAN_STA_AUTHORIZED, &sta->_flags);
+ set_sta_flag(sta, WLAN_STA_AUTHORIZED);
ieee80211_check_fast_xmit(sta);
ieee80211_check_fast_rx(sta);
}
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] mac80211: use helper function to access ieee802_1d_to_ac[] Amadeusz Sławiński <amadeusz.slawinski@tieto.com> - 2017-01-24 16:50 +0100
Re: [PATCH 2/2] mac80211: use accessor functions to set sta->_flags Johannes Berg <johannes@sipsolutions.net> - 2017-01-24 16:50 +0100
Re: [PATCH 2/2] mac80211: use accessor functions to set sta->_flags Amadeusz Slawinski <amadeusz.slawinski@tieto.com> - 2017-01-25 10:00 +0100
Re: [PATCH 2/2] mac80211: use accessor functions to set sta->_flags Johannes Berg <johannes@sipsolutions.net> - 2017-01-25 10:20 +0100
[PATCH 2/2] mac80211: use accessor functions to set sta->_flags Amadeusz Sławiński <amadeusz.slawinski@tieto.com> - 2017-01-24 16:50 +0100
Re: [PATCH 1/2] mac80211: use helper function to access ieee802_1d_to_ac[] Johannes Berg <johannes@sipsolutions.net> - 2017-01-26 10:00 +0100
csiph-web