wpa_supplicant AP: Fix hw_mode for 5 GHz channels
This commit is contained in:
parent
b4fd6fab5b
commit
b615a25e4e
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
|
||||||
conf->channel = (ssid->frequency - 2407) / 5;
|
conf->channel = (ssid->frequency - 2407) / 5;
|
||||||
} else if ((ssid->frequency >= 5180 && ssid->frequency <= 5240) ||
|
} else if ((ssid->frequency >= 5180 && ssid->frequency <= 5240) ||
|
||||||
(ssid->frequency >= 5745 && ssid->frequency <= 5825)) {
|
(ssid->frequency >= 5745 && ssid->frequency <= 5825)) {
|
||||||
conf->hw_mode = HOSTAPD_MODE_IEEE80211G;
|
conf->hw_mode = HOSTAPD_MODE_IEEE80211A;
|
||||||
conf->channel = (ssid->frequency - 5000) / 5;
|
conf->channel = (ssid->frequency - 5000) / 5;
|
||||||
} else {
|
} else {
|
||||||
wpa_printf(MSG_ERROR, "Unsupported AP mode frequency: %d MHz",
|
wpa_printf(MSG_ERROR, "Unsupported AP mode frequency: %d MHz",
|
||||||
|
|
Loading…
Reference in a new issue