* [PATCH] mac80211: Add the DS Params for mesh to every band
@ 2013-02-06 13:17 Emanuel Taube
2013-02-08 9:10 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Emanuel Taube @ 2013-02-06 13:17 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, johannes, Emanuel Taube
There seems to be no reason, why it has to be limited to 2.4 GHz.
Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
---
net/mac80211/mesh.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index 694e273..cedb6e3 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -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;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: Add the DS Params for mesh to every band
2013-02-06 13:17 [PATCH] mac80211: Add the DS Params for mesh to every band Emanuel Taube
@ 2013-02-08 9:10 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-02-08 9:10 UTC (permalink / raw)
To: Emanuel Taube; +Cc: linville, linux-wireless
On Wed, 2013-02-06 at 14:17 +0100, Emanuel Taube wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-08 9:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-06 13:17 [PATCH] mac80211: Add the DS Params for mesh to every band Emanuel Taube
2013-02-08 9:10 ` Johannes Berg
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.