aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11.c
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2015-10-05 12:16:40 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-05 22:27:29 (GMT)
commit681753f23cdcf636a6bfcde275e79c716a849c62 (patch)
tree99c13d8cb9ee56389de895aa8c1f53165be8538e /src/ap/ieee802_11.c
parent41d621075e335fdde12a56f37f1d80cbf93b7770 (diff)
downloadhostap-681753f23cdcf636a6bfcde275e79c716a849c62.zip
hostap-681753f23cdcf636a6bfcde275e79c716a849c62.tar.gz
hostap-681753f23cdcf636a6bfcde275e79c716a849c62.tar.bz2
mesh: Generate proper AID for peer
IEEE Std 802.11-2012 13.3.1 states that the AID should be generated on the local node for each peer. Previously, we were using the peer link ID (generated by the peer) which may not be unique among all peers. Correct this by reusing the AP AID generation code. Signed-off-by: Bob Copeland <me@bobcopeland.com>
Diffstat (limited to 'src/ap/ieee802_11.c')
-rw-r--r--src/ap/ieee802_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 43d405d..01b514e 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1210,7 +1210,7 @@ static void handle_auth(struct hostapd_data *hapd,
}
-static int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta)
+int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta)
{
int i, j = 32, aid;