mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
tests: Add TEST_FAIL() to hostapd_get_aid()
This allows additional testing coverage for AID unavailability cases. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9fd6804d61
commit
d735811329
@ -1385,6 +1385,9 @@ int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (TEST_FAIL())
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < AID_WORDS; i++) {
|
||||
if (hapd->sta_aid[i] == (u32) -1)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user