mac80211: Add the DS Params for mesh to every band
authorEmanuel Taube <emanuel.taube@gmail.com>
Wed, 6 Feb 2013 13:17:17 +0000 (14:17 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 17:44:54 +0000 (18:44 +0100)
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>
[remove 'local' variable]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c

index 0c51b78b8fdc12310fbcc3ad1d9552073ba1b41a..2bf0158c3f826cfd60cb99cd403873a70b753c99 100644 (file)
@@ -393,8 +393,6 @@ mesh_add_rsn_ie(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata)
 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;
@@ -411,13 +409,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;
 }