mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
station: check hs20_capable first before ANQP
If a BSS is not a hotspot 2.0 BSS then there is no reason to bother checking configuration files.
This commit is contained in:
parent
b406a57ca4
commit
993d9cbf6b
@ -457,6 +457,9 @@ static bool station_start_anqp(struct station *station, struct network *network,
|
||||
struct anqp_entry *entry;
|
||||
bool anqp_disabled = true;
|
||||
|
||||
if (!bss->hs20_capable)
|
||||
return false;
|
||||
|
||||
/* Network already has ANQP data/HESSID */
|
||||
if (hs20_find_settings_file(network))
|
||||
return false;
|
||||
@ -469,9 +472,6 @@ static bool station_start_anqp(struct station *station, struct network *network,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!bss->hs20_capable)
|
||||
return false;
|
||||
|
||||
entry = l_new(struct anqp_entry, 1);
|
||||
entry->station = station;
|
||||
entry->network = network;
|
||||
|
Loading…
Reference in New Issue
Block a user