]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/mac80211/mlme.c
nl80211: Add support for EDMG channels
[linux.git] / net / mac80211 / mlme.c
index 641876982ab95eecb870e7e4128ed14b2031ea0b..6471f552a94275291adad3f8b0fe4dcee4fac0b2 100644 (file)
@@ -158,10 +158,10 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
        memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap));
        ieee80211_apply_htcap_overrides(sdata, &sta_ht_cap);
 
+       memset(chandef, 0, sizeof(struct cfg80211_chan_def));
        chandef->chan = channel;
        chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
        chandef->center_freq1 = channel->center_freq;
-       chandef->center_freq2 = 0;
 
        if (!ht_oper || !sta_ht_cap.ht_supported) {
                ret = IEEE80211_STA_DISABLE_HT | IEEE80211_STA_DISABLE_VHT;