Skip to contentSkip to conversation

mac80211: dynamic short slot time for MBSSs

PATCH Superseded Thomas Pedersen 1 participant 2 messages Jan 26, 2013 mac80211

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: dynamic short slot time for MBSSs

The standard mandates mesh STAs to set the ERP Short Slot Time capability info bit in beacons to 0. Even though this is their way of disallowing short slot time for mesh STAs, there should be no harm in enabling it if we determine all STAs in the current MBSS support ERP rates.

Increases throughput about 20% for legacy rates.

---

Applies on mac80211-next/master.

 net/mac80211/mesh.c       |    5 ----
 net/mac80211/mesh_plink.c |   66 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 5 deletions(-)
net/mac80211/mesh.c +0 -5
index 694e273..f920da1 100644
@@ -629,11 +629,6 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)
 	sdata->vif.bss_conf.basic_rates =
 		ieee80211_mandatory_rates(local, band);
 
-	if (band == IEEE80211_BAND_5GHZ) {
-		sdata->vif.bss_conf.use_short_slot = true;
-		changed |= BSS_CHANGED_ERP_SLOT;
-	}
-
 	ieee80211_bss_info_change_notify(sdata, changed);
 
 	netif_carrier_on(sdata->dev);
net/mac80211/mesh_plink.c +66 -0

90 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw

On Fri, Jan 25, 2013 at 5:52 PM, Thomas Pedersen <[email protected]> wrote:
...

Quoted 7 lines
net/mac80211/mesh_plink.c +7 -0
+       rcu_read_lock();
+       list_for_each_entry_rcu(sta, &local->sta_list, list) {
+               if (sdata != sta->sdata ||
+                   sta->plink_state != NL80211_PLINK_ESTAB)
+                       continue;
+
+               rates = sta->sta.supp_rates[band];

net/mac80211/mesh_plink.c static inline void mesh_plink_fsm_restart(struct sta_info *sta) · line 107

Quoted 10 lines
net/mac80211/mesh_plink.c +10 -0
+               for_each_set_bit(i, (unsigned long *)&rates,
+                                sizeof(rates) * BITS_PER_BYTE) {
+                       if (bitrates[i].flags & IEEE80211_RATE_ERP_G) {
+                               short_slot = true;
+                               break;
+                       }
+               }
+
+               if (!short_slot)
+                       break;

Grrr. Forgot to reset short_slot while iterating over peers. Will fix in a v2.

Signature · 1 line
Thomas