mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-24 16:28:23 -05:00
GAS: Ignore preassoc_mac_addr when gas_rand_mac_addr enabled
Skip unnecessary random MAC generation due to preassoc_mac_addr parameter when gas_rand_mac_addr parameter is enabled. Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
This commit is contained in:
parent
dbe485a35a
commit
1289ecf4cc
@ -694,7 +694,7 @@ static void gas_query_start_cb(struct wpa_radio_work *work, int deinit)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!query->maintain_addr &&
|
||||
if (!query->maintain_addr && !wpa_s->conf->gas_rand_mac_addr &&
|
||||
wpas_update_random_addr_disassoc(wpa_s) < 0) {
|
||||
wpa_msg(wpa_s, MSG_INFO,
|
||||
"Failed to assign random MAC address for GAS");
|
||||
|
Loading…
Reference in New Issue
Block a user