int basic_rates_erp[] = { 10, 20, 55, 60, 110, 120, 240, -1 };
int rate_len;
int frequency;
+ u8 chan;
if (!wpa_s->conf->user_mpm) {
/* not much for us to do here */
bss->conf->ap_max_inactivity = wpa_s->conf->mesh_max_inactivity;
bss->conf->mesh_fwding = wpa_s->conf->mesh_fwding;
+ ieee80211_freq_to_chan(freq->center_freq1, &chan);
+ if (wpa_s->mesh_vht_enabled) {
+ if (freq->bandwidth == 80)
+ conf->vht_oper_chwidth = CONF_OPER_CHWIDTH_80MHZ;
+ else if (freq->bandwidth == 160)
+ conf->vht_oper_chwidth = CONF_OPER_CHWIDTH_160MHZ;
+ conf->vht_oper_centr_freq_seg0_idx = chan;
+ }
+
+#ifdef CONFIG_IEEE80211AX
+ if (wpa_s->mesh_he_enabled) {
+ if (freq->bandwidth == 80)
+ conf->he_oper_chwidth = CONF_OPER_CHWIDTH_80MHZ;
+ else if (freq->bandwidth == 160)
+ conf->he_oper_chwidth = CONF_OPER_CHWIDTH_160MHZ;
+ conf->he_oper_centr_freq_seg0_idx = chan;
+ }
+#endif /* CONFIG_IEEE80211AX */
+
if (ieee80211_is_dfs(ssid->frequency, wpa_s->hw.modes,
wpa_s->hw.num_modes) && wpa_s->conf->country[0]) {
conf->ieee80211h = 1;