[PATCH] wpa_supplicant: Remove 802.11b rates only in case of P2P group operation
ilan.peer at intel.com
ilan.peer
Tue May 28 06:20:13 PDT 2013
From: Alexander Bondar <alexander.bondar at intel.com>
11b rates removal have had impact on SoftAP functionality in WPA supplicant.
This patch verifies that only in case of P2P group operation 11b rates
will be eliminated.
Refer also to commit 4c2c30289305b67c09f464ba29352b008b5ec433
Change-Id: I0ff572fd1f3b5a3771f96694fa19392d8447cb05
Signed-off-by: Alexander Bondar <alexander.bondar at intel.com>
Reviewed-on: http://git-mwg.jer.intel.com/gerrit/1938
Reviewed-by: Ilan Peer <ilan.peer at intel.com>
Reviewed-by: Max Stepanov <Max.Stepanov at intel.com>
Tested-by: Max Stepanov <Max.Stepanov at intel.com>
---
wpa_supplicant/ap.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index d9e1f82..0b4a457 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -124,7 +124,9 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
#endif /* CONFIG_IEEE80211N */
#ifdef CONFIG_P2P
- if (conf->hw_mode == HOSTAPD_MODE_IEEE80211G) {
+ if (conf->hw_mode == HOSTAPD_MODE_IEEE80211G &&
+ (ssid->mode == WPAS_MODE_P2P_GO ||
+ ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION)) {
/* Remove 802.11b rates from supported and basic rate sets */
int *list = os_malloc(4 * sizeof(int));
if (list) {
--
1.7.10.4
More information about the Hostap
mailing list