Skip to contentSkip to conversation

mac80211: Add the DS Params for mesh to every band

PATCH Applied Emanuel Taube 2 participants 2 messages Feb 6, 2013 – Feb 8, 2013 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Add the DS Params for mesh to every band

There seems to be no reason, why it has to be limited to 2.4 GHz.

---
 net/mac80211/mesh.c |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
net/mac80211/mesh.c +4 -8
index 694e273..cedb6e3 100644
@@ -343,7 +343,6 @@ int mesh_add_ds_params_ie(struct sk_buff *skb,
 			  struct ieee80211_sub_if_data *sdata)
 {
 	struct ieee80211_local *local = sdata->local;
-	struct ieee80211_supported_band *sband;
 	struct ieee80211_chanctx_conf *chanctx_conf;
 	struct ieee80211_channel *chan;
 	u8 *pos;
@@ -360,13 +359,10 @@ int mesh_add_ds_params_ie(struct sk_buff *skb,
 	chan = chanctx_conf->def.chan;
 	rcu_read_unlock();
 
-	sband = local->hw.wiphy->bands[chan->band];
-	if (sband->band == IEEE80211_BAND_2GHZ) {
-		pos = skb_put(skb, 2 + 1);
-		*pos++ = WLAN_EID_DS_PARAMS;
-		*pos++ = 1;
-		*pos++ = ieee80211_frequency_to_channel(chan->center_freq);
-	}
+	pos = skb_put(skb, 2 + 1);
+	*pos++ = WLAN_EID_DS_PARAMS;
+	*pos++ = 1;
+	*pos++ = ieee80211_frequency_to_channel(chan->center_freq);
 
 	return 0;
 }
Signature · 1 line
1.7.10.4
maintainer Applied
#1 lore raw
Quoted 1 line · Emanuel Taube

There seems to be no reason, why it has to be limited to 2.4 GHz.

Applied. This was changed (in -2012?) I think, before DS params were only used on 2.4

johannes