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
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@ static void gas_query_start_cb(struct wpa_radio_work *work, int deinit)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!query->maintain_addr &&
|
if (!query->maintain_addr && !wpa_s->conf->gas_rand_mac_addr &&
|
||||||
wpas_update_random_addr_disassoc(wpa_s) < 0) {
|
wpas_update_random_addr_disassoc(wpa_s) < 0) {
|
||||||
wpa_msg(wpa_s, MSG_INFO,
|
wpa_msg(wpa_s, MSG_INFO,
|
||||||
"Failed to assign random MAC address for GAS");
|
"Failed to assign random MAC address for GAS");
|
||||||
|
|
Loading…
Reference in a new issue