diff options
| author | Arik Nemtsov <arik@wizery.com> | 2011-08-16 14:15:50 +0300 |
|---|---|---|
| committer | Keith Deacon <kdeacon@ti.com> | 2011-11-15 20:45:51 -0600 |
| commit | 24521e2f1f6959cb194c10b16d9012347e5678a6 (patch) | |
| tree | 288560533535f4295099dc528b3ad8e4ce9b1f6b | |
| parent | ff13b671827080fbc51efe400fb54b99fefd9a0c (diff) | |
| download | android_external_wpa_supplicant_8-24521e2f1f6959cb194c10b16d9012347e5678a6.tar.gz android_external_wpa_supplicant_8-24521e2f1f6959cb194c10b16d9012347e5678a6.tar.bz2 android_external_wpa_supplicant_8-24521e2f1f6959cb194c10b16d9012347e5678a6.zip | |
hostap: allow action frames with unknown BSSID in GO mode
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.
Change-Id: I042bcae1b27b0cde38b1da05f6cb1c5f20710046
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
| -rw-r--r-- | src/ap/ieee802_11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 66d8d793..f89b863f 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -1555,6 +1555,10 @@ 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) && +#endif /* CONFIG_P2P */ os_memcmp(mgmt->bssid, hapd->own_addr, ETH_ALEN) != 0) { printf("MGMT: BSSID=" MACSTR " not our address\n", MAC2STR(mgmt->bssid)); |
