aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorAlexander Bondar <alexander.bondar@intel.com>2013-06-22 08:28:33 (GMT)
committerJouni Malinen <j@w1.fi>2013-06-22 08:28:33 (GMT)
commit1e0e943e1927831cebf788a6d7d126e4b8b54bb1 (patch)
tree9d204fedd6f552f88b83611ea8bf293ee8e27afd /wpa_supplicant/ap.c
parent2090a0b42e1156358f97c3fca46fb231cfaa21e7 (diff)
downloadhostap-1e0e943e1927831cebf788a6d7d126e4b8b54bb1.zip
hostap-1e0e943e1927831cebf788a6d7d126e4b8b54bb1.tar.gz
hostap-1e0e943e1927831cebf788a6d7d126e4b8b54bb1.tar.bz2
Remove 802.11b rates only in case of P2P group operation
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>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index d9e1f82..bf84dc4 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) {