From patchwork Thu Jun 6 06:10:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V2] wpa_supplicant: Remove 802.11b rates only in case of P2P group operation X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 249295 Message-Id: <1370499025-20955-1-git-send-email-ilan.peer@intel.com> To: hostap@lists.shmoo.com Date: Thu, 6 Jun 2013 09:10:25 +0300 From: Ilan Peer List-Id: HostAP Project From: Alexander Bondar 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: I114eeda46877ff2775b15d2655d800d364666b55 Signed-off-by: Alexander Bondar Signed-hostap: Alexander Bondar Reviewed-by: Ilan Peer Reviewed-by: Max Stepanov Tested-by: Max Stepanov --- 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) {