|
@@ -318,23 +318,8 @@ int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
|
|
|
os_memset(¶ms, 0, sizeof(params));
|
|
|
params.meshid = ssid->ssid;
|
|
|
params.meshid_len = ssid->ssid_len;
|
|
|
- params.freq = ssid->frequency;
|
|
|
- wpa_s->mesh_ht_enabled = ssid->mesh_ht_mode > CHAN_NO_HT;
|
|
|
- switch (ssid->mesh_ht_mode) {
|
|
|
- case CHAN_HT20:
|
|
|
- params.freq.ht_enabled = 1;
|
|
|
- break;
|
|
|
- case CHAN_HT40PLUS:
|
|
|
- params.freq.ht_enabled = 1;
|
|
|
- params.freq.sec_channel_offset = 1;
|
|
|
- break;
|
|
|
- case CHAN_HT40MINUS:
|
|
|
- params.freq.ht_enabled = 1;
|
|
|
- params.freq.sec_channel_offset = -1;
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
+ ibss_mesh_setup_freq(wpa_s, ssid, ¶ms.freq);
|
|
|
+ wpa_s->mesh_ht_enabled = !!params.freq.ht_enabled;
|
|
|
if (ssid->beacon_int > 0)
|
|
|
params.beacon_int = ssid->beacon_int;
|
|
|
else if (wpa_s->conf->beacon_int > 0)
|