aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p
diff options
context:
space:
mode:
authorWei-Jen Lin <jenlin@qca.qualcomm.com>2012-05-02 15:19:02 +0300
committerJouni Malinen <j@w1.fi>2012-05-02 15:19:02 +0300
commit1c7447d08b2b7368201e4df456ee3da50a00f5aa (patch)
tree22e6a9d0a798f704acd58f14555fa300d89f38c6 /src/p2p
parent1f0cc27eb98f7d1af9c64d0752238184cbdb9a24 (diff)
downloadexternal_wpa_supplicant_8_ti-1c7447d08b2b7368201e4df456ee3da50a00f5aa.zip
external_wpa_supplicant_8_ti-1c7447d08b2b7368201e4df456ee3da50a00f5aa.tar.gz
external_wpa_supplicant_8_ti-1c7447d08b2b7368201e4df456ee3da50a00f5aa.tar.bz2
P2P: Fix Device ID matching for Probe Request frames
The misplaced parenthesis caused Device ID matching to check only the first octet of the P2P Device Address, i.e., we could have replied to Probe Request frames that was searching for another device if any of the last five octets of the address were different. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> intended-for: hostap-1
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/p2p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index 2f5a0a0..8bb84db 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -1911,7 +1911,7 @@ p2p_reply_probe(struct p2p_data *p2p, const u8 *addr, const u8 *dst,
}
if (msg.device_id &&
- os_memcmp(msg.device_id, p2p->cfg->dev_addr, ETH_ALEN != 0)) {
+ os_memcmp(msg.device_id, p2p->cfg->dev_addr, ETH_ALEN) != 0) {
/* Device ID did not match */
p2p_parse_free(&msg);
return P2P_PREQ_NOT_PROCESSED;