[PATCH] hostap: allow action frames with unknown BSSID in GO mode

Arik Nemtsov arik at wizery.com
Tue Aug 23 03:18:27 EDT 2011


P2P invitation responses are transmitted with the BSSID set to the peer
address. Pass these action frames up to prevent the GO from getting stuck
in an infinite invite loop.

Signed-off-by: Arik Nemtsov <arik at wizery.com>
---
 src/ap/ieee802_11.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 227a0a5..4a298fb 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1525,6 +1525,11 @@ void ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
 		mgmt->bssid[4] == 0xff && mgmt->bssid[5] == 0xff;
 
 	if (!broadcast &&
+#ifdef CONFIG_P2P
+	    /* Invitation responses can be sent the responder MAC as BSSID */
+	    !((hapd->conf->p2p & P2P_GROUP_OWNER) &&
+	      stype == WLAN_FC_STYPE_ACTION) &&
+#endif /* CONFIG_P2P */
 	    os_memcmp(mgmt->bssid, hapd->own_addr, ETH_ALEN) != 0) {
 		printf("MGMT: BSSID=" MACSTR " not our address\n",
 		       MAC2STR(mgmt->bssid));
-- 
1.7.4.1



More information about the HostAP mailing list