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

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] 6+ messages in thread

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 18:39 [PATCH v5 1/4] mac80211: remove unnecessary num_mcast_sta user Michael Braun
2016-10-07 18:39 ` [PATCH v5 2/4] mac80211: filter multicast data packets on AP / AP_VLAN Michael Braun
2016-10-07 18:39 ` [PATCH v5 3/4] cfg80211: configure multicast to unicast for AP interfaces Michael Braun
2016-10-07 18:39   ` Michael Braun
2016-10-10 10:28   ` Johannes Berg
2016-10-07 18:39 ` [PATCH v5 4/4] 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.