From: Jeff Johnson Date: Mon, 13 Aug 2012 23:56:18 +0000 (-0700) Subject: wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn X-Git-Tag: android-x86-4.4-r1~66^2~65 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5d03c02c;p=android-x86%2Fexternal-wpa_supplicant_8.git wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn The Qualcomm qcwcn driver relies upon information from the supplicant to enable 802.11n and 802.11d support. Unfortunately there currently does not exist configuration file parameters to control these items, therefore hard code these in the supplicant. Change-Id: Iaa586c58d96bd8966b47f6e18b627648df89c03e --- diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index 2c633d9..2af2a8e 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -158,6 +158,14 @@ struct hostapd_config * hostapd_config_defaults(void) conf->ht_capab = HT_CAP_INFO_SMPS_DISABLED; +#ifdef ANDROID_QCOM_WCN + conf->ieee80211n = 1; + + /* Enable ieee80211d and set US as default country */ + conf->ieee80211d = 1; + os_memcpy(conf->country, "US ", 3); +#endif + return conf; }