]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove 802.11b rates only in case of P2P group operation
authorAlexander Bondar <alexander.bondar@intel.com>
Sat, 22 Jun 2013 08:28:33 +0000 (11:28 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Jun 2013 08:28:33 +0000 (11:28 +0300)
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.

Signed-hostap: Alexander Bondar <alexander.bondar@intel.com>
Signed-hostap: Ilan Peer <ilan.peer@intel.com>

wpa_supplicant/ap.c

index d9e1f82f55931f120d6b7e91609af109151ff0f4..bf84dc456f9b74f833bad9e282861d92c0030150 100644 (file)
@@ -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) {