From patchwork Thu Jun 6 06:10:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peer, Ilan" X-Patchwork-Id: 249295 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 00C8B2C02E9 for ; Thu, 6 Jun 2013 17:09:08 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id AAC739C185; Thu, 6 Jun 2013 03:09:04 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cSAo7PxMHO+7; Thu, 6 Jun 2013 03:09:04 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id CB5229C174; Thu, 6 Jun 2013 03:08:59 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 46BD49C174 for ; Thu, 6 Jun 2013 03:08:59 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m6cMzkSG7GPQ for ; Thu, 6 Jun 2013 03:08:54 -0400 (EDT) Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 0561D9C173 for ; Thu, 6 Jun 2013 03:08:53 -0400 (EDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 06 Jun 2013 00:08:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,813,1363158000"; d="scan'208";a="313087748" Received: from ipeer-e6430-1.jer.intel.com ([10.12.217.147]) by azsmga001.ch.intel.com with ESMTP; 06 Jun 2013 00:08:47 -0700 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH V2] wpa_supplicant: Remove 802.11b rates only in case of P2P group operation Date: Thu, 6 Jun 2013 09:10:25 +0300 Message-Id: <1370499025-20955-1-git-send-email-ilan.peer@intel.com> X-Mailer: git-send-email 1.7.10.4 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com 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) {