mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-03-28 10:56:51 +01:00
station: Simplify and comply with coding style
This commit is contained in:
parent
94e2769e93
commit
48be2c0252
@ -1164,14 +1164,15 @@ static void station_enter_state(struct station *station,
|
|||||||
case STATION_STATE_CONNECTED:
|
case STATION_STATE_CONNECTED:
|
||||||
periodic_scan_stop(station);
|
periodic_scan_stop(station);
|
||||||
|
|
||||||
|
if (!station->netconfig)
|
||||||
|
break;
|
||||||
|
|
||||||
if (station->state == STATION_STATE_ROAMING) {
|
if (station->state == STATION_STATE_ROAMING) {
|
||||||
if (station->netconfig)
|
|
||||||
netconfig_reconfigure(station->netconfig);
|
netconfig_reconfigure(station->netconfig);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (station->netconfig)
|
|
||||||
netconfig_configure(station->netconfig,
|
netconfig_configure(station->netconfig,
|
||||||
network_get_settings(
|
network_get_settings(
|
||||||
station->connected_network),
|
station->connected_network),
|
||||||
@ -3066,9 +3067,10 @@ static void station_free(struct station *station)
|
|||||||
if (station->connected_bss)
|
if (station->connected_bss)
|
||||||
netdev_disconnect(station->netdev, NULL, NULL);
|
netdev_disconnect(station->netdev, NULL, NULL);
|
||||||
|
|
||||||
if (station->netconfig)
|
if (station->netconfig) {
|
||||||
netconfig_destroy(station->netconfig);
|
netconfig_destroy(station->netconfig);
|
||||||
station->netconfig = NULL;
|
station->netconfig = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
periodic_scan_stop(station);
|
periodic_scan_stop(station);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user