Re: [PATCH 2/2] mac80211: use accessor functions to set sta->_flags

2 messages, 2 authors, 2017-01-25 · open the first message on its own page

Re: [PATCH 2/2] mac80211: use accessor functions to set sta->_flags

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2017-01-24 15:44:35

On Tue, 2017-01-24 at 16:42 +0100, Amadeusz Sławiński wrote:
quoted hunk
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 <redacted>
---
 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);
You should try to run this patch sometime :)

johannes

Re: [PATCH 2/2] mac80211: use accessor functions to set sta->_flags

From: Amadeusz Slawinski <hidden>
Date: 2017-01-25 08:55:59

And yes I did. Somehow managed to ignore those warnings though, sorry
about that.
Rechecked with just first patch and it should still be good. Please
ignore this one ;)

On 24 January 2017 at 16:44, Johannes Berg [off-list ref] wrote:
On Tue, 2017-01-24 at 16:42 +0100, Amadeusz Sławiński wrote:
quoted
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 <redacted>
---
 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);
You should try to run this patch sometime :)

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help