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:
Veerendranath Jakkam 2020-08-11 01:19:49 +05:30 committed by Jouni Malinen
parent dbe485a35a
commit 1289ecf4cc

View file

@ -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");