mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-21 04:10:47 +01:00
network: check info match for unsetting hotspot info
No need to check for matching if unsetting
This commit is contained in:
parent
b4fb60b2c5
commit
d33b5357ed
@ -1337,7 +1337,7 @@ static void network_unset_hotspot(struct network *network, void *user_data)
|
|||||||
{
|
{
|
||||||
struct network_info *info = user_data;
|
struct network_info *info = user_data;
|
||||||
|
|
||||||
if (!hotspot_info_matches(network, info))
|
if (network->info != info)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
network_set_info(network, NULL);
|
network_set_info(network, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user