[PATCH v4 3/7] wpa_supplicant: handle HT40 and mode downgrade in AP mode

Masashi Honma masashi.honma at gmail.com
Sat Jul 4 22:56:15 EDT 2020


On 2020/06/30 20:53, Markus Theil wrote:
> +		/* may drop drop to 11b if driver does not support 11g */
> +		if (!mode && conf->hw_mode == HOSTAPD_MODE_IEEE80211G) {
> +			conf->hw_mode = HOSTAPD_MODE_IEEE80211B;
> +			wpa_printf(MSG_INFO,
> +			   "Try downgrade to IEEE 802.11b as 802.11g is not "
> +			   "supported by the current hardware");
> +			mode = wpa_supplicant_find_hw_mode(wpa_s, conf->hw_mode);
> +		}
> +
> +		if (!mode) {
> +			wpa_printf(MSG_ERROR,
> +			   "No match between requested and supported hw modes found");
> +			return -1;
>   		}
>   

This looks not work when the hardware only supports 11a.
It's better to just deal as error ?

Regards,
Masashi Honma.



More information about the Hostap mailing list