mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
Skip rate set matching if BSS frequency is not known
At least with driver_test.c, the BSS table may not include frequency information. In such a case, we need to skip rate set matching during BSS selection to avoid rejecting valid AP. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d1dd48e3c9
commit
a6d94e1b56
@ -503,6 +503,9 @@ static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_scan_res *bss)
|
||||
const u8 *rate_ie;
|
||||
int i, j, k;
|
||||
|
||||
if (bss->freq == 0)
|
||||
return 1; /* Cannot do matching without knowing band */
|
||||
|
||||
modes = wpa_s->hw.modes;
|
||||
if (modes == NULL) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user