|
@@ -34,19 +34,15 @@ int ieee80211_parse_ch_switch_ie(struct ieee80211_sub_if_data *sdata,
|
|
struct cfg80211_chan_def new_vht_chandef = {};
|
|
struct cfg80211_chan_def new_vht_chandef = {};
|
|
const struct ieee80211_sec_chan_offs_ie *sec_chan_offs;
|
|
const struct ieee80211_sec_chan_offs_ie *sec_chan_offs;
|
|
const struct ieee80211_wide_bw_chansw_ie *wide_bw_chansw_ie;
|
|
const struct ieee80211_wide_bw_chansw_ie *wide_bw_chansw_ie;
|
|
- const struct ieee80211_ht_operation *ht_oper;
|
|
|
|
int secondary_channel_offset = -1;
|
|
int secondary_channel_offset = -1;
|
|
|
|
|
|
sec_chan_offs = elems->sec_chan_offs;
|
|
sec_chan_offs = elems->sec_chan_offs;
|
|
wide_bw_chansw_ie = elems->wide_bw_chansw_ie;
|
|
wide_bw_chansw_ie = elems->wide_bw_chansw_ie;
|
|
- ht_oper = elems->ht_operation;
|
|
|
|
|
|
|
|
if (sta_flags & (IEEE80211_STA_DISABLE_HT |
|
|
if (sta_flags & (IEEE80211_STA_DISABLE_HT |
|
|
IEEE80211_STA_DISABLE_40MHZ)) {
|
|
IEEE80211_STA_DISABLE_40MHZ)) {
|
|
sec_chan_offs = NULL;
|
|
sec_chan_offs = NULL;
|
|
wide_bw_chansw_ie = NULL;
|
|
wide_bw_chansw_ie = NULL;
|
|
- /* only used for bandwidth here */
|
|
|
|
- ht_oper = NULL;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
if (sta_flags & IEEE80211_STA_DISABLE_VHT)
|
|
if (sta_flags & IEEE80211_STA_DISABLE_VHT)
|