From: Jouni Malinen Date: Fri, 12 Nov 2010 17:04:48 +0000 (+0200) Subject: P2P: Fix HT40 secondary channel validation X-Git-Tag: hostap-1-bp~838 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5254eb7e505b80d570778097251dfc19257aa790;p=thirdparty%2Fhostap.git P2P: Fix HT40 secondary channel validation --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index dd8ccc74f..dd91ddf02 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -2101,11 +2101,11 @@ static int wpas_p2p_setup_channels(struct wpa_supplicant *wpa_s, continue; if (o->bw == BW40MINUS && (!(flag & HOSTAPD_CHAN_HT40MINUS) || - !has_channel(mode, ch - o->inc, NULL))) + !has_channel(mode, ch - 4, NULL))) continue; if (o->bw == BW40PLUS && (!(flag & HOSTAPD_CHAN_HT40PLUS) || - !has_channel(mode, ch + o->inc, NULL))) + !has_channel(mode, ch + 4, NULL))) continue; if (reg == NULL) { wpa_printf(MSG_DEBUG, "P2P: Add operating "