All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] mac80211: remove unnecessary num_mcast_sta user
@ 2016-10-05  4:55 Michael Braun
  2016-10-05  4:55 ` [PATCH 2/3] mac80211: filter multicast data packets on AP / AP_VLAN Michael Braun
  2016-10-05  4:55 ` [PATCH 3/3] mac80211: multicast to unicast conversion Michael Braun
  0 siblings, 2 replies; 14+ messages in thread
From: Michael Braun @ 2016-10-05  4:55 UTC (permalink / raw)
  To: johannes; +Cc: Michael Braun, linux-wireless, projekt-wlan

Checking for num_mcast_sta in __ieee80211_request_smps_ap() is unnecessary,
as sta list will be empty in this case anyway, so list_for_each_entry(sta,
...) will exit immediately.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
---
 net/mac80211/cfg.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 543b1d4..24133f5 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2313,13 +2313,6 @@ int __ieee80211_request_smps_ap(struct ieee80211_sub_if_data *sdata,
 	    smps_mode == IEEE80211_SMPS_AUTOMATIC)
 		return 0;
 
-	 /* If no associated stations, there's no need to do anything */
-	if (!atomic_read(&sdata->u.ap.num_mcast_sta)) {
-		sdata->smps_mode = smps_mode;
-		ieee80211_queue_work(&sdata->local->hw, &sdata->recalc_smps);
-		return 0;
-	}
-
 	ht_dbg(sdata,
 	       "SMPS %d requested in AP mode, sending Action frame to %d stations\n",
 	       smps_mode, atomic_read(&sdata->u.ap.num_mcast_sta));
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread
* [PATCH 1/3] mac80211: remove unnecessary num_mcast_sta user
@ 2016-10-04 20:31 Michael Braun
  2016-10-04 20:31 ` [PATCH 3/3] mac80211: multicast to unicast conversion Michael Braun
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Braun @ 2016-10-04 20:31 UTC (permalink / raw)
  To: johannes; +Cc: Michael Braun, linux-wireless, projekt-wlan

Checking for num_mcast_sta in __ieee80211_request_smps_ap() is unnecessary,
as sta list will be empty in this case anyway, so list_for_each_entry(sta,
...) will exit immediately.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
---
 net/mac80211/cfg.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 543b1d4..24133f5 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2313,13 +2313,6 @@ int __ieee80211_request_smps_ap(struct ieee80211_sub_if_data *sdata,
 	    smps_mode == IEEE80211_SMPS_AUTOMATIC)
 		return 0;
 
-	 /* If no associated stations, there's no need to do anything */
-	if (!atomic_read(&sdata->u.ap.num_mcast_sta)) {
-		sdata->smps_mode = smps_mode;
-		ieee80211_queue_work(&sdata->local->hw, &sdata->recalc_smps);
-		return 0;
-	}
-
 	ht_dbg(sdata,
 	       "SMPS %d requested in AP mode, sending Action frame to %d stations\n",
 	       smps_mode, atomic_read(&sdata->u.ap.num_mcast_sta));
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-10-06 11:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05  4:55 [PATCH 1/3] mac80211: remove unnecessary num_mcast_sta user Michael Braun
2016-10-05  4:55 ` [PATCH 2/3] mac80211: filter multicast data packets on AP / AP_VLAN Michael Braun
2016-10-05  9:56   ` Johannes Berg
2016-10-05 10:01   ` Johannes Berg
2016-10-05  4:55 ` [PATCH 3/3] mac80211: multicast to unicast conversion Michael Braun
2016-10-05 10:19   ` Johannes Berg
2016-10-05 10:19     ` Johannes Berg
2016-10-05 11:40     ` michael-dev
2016-10-05 11:40       ` michael-dev
2016-10-05 11:58       ` Johannes Berg
2016-10-06 11:53         ` michael-dev
2016-10-06 11:53           ` michael-dev
2016-10-06 11:55           ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2016-10-04 20:31 [PATCH 1/3] mac80211: remove unnecessary num_mcast_sta user Michael Braun
2016-10-04 20:31 ` [PATCH 3/3] mac80211: multicast to unicast conversion Michael Braun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.