mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
station: Add station_is_busy
This commit is contained in:
parent
5e2cce2e0b
commit
f996bea880
@ -61,6 +61,15 @@ struct network *station_get_connected_network(struct station *station)
|
||||
return station->connected_network;
|
||||
}
|
||||
|
||||
bool station_is_busy(struct station *station)
|
||||
{
|
||||
if (station->state != STATION_STATE_DISCONNECTED &&
|
||||
station->state != STATION_STATE_AUTOCONNECT)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
struct autoconnect_entry {
|
||||
uint16_t rank;
|
||||
struct network *network;
|
||||
|
@ -70,6 +70,7 @@ struct station {
|
||||
struct wiphy *station_get_wiphy(struct station *station);
|
||||
struct netdev *station_get_netdev(struct station *station);
|
||||
struct network *station_get_connected_network(struct station *station);
|
||||
bool station_is_busy(struct station *station);
|
||||
|
||||
void station_autoconnect_next(struct station *station);
|
||||
void station_add_autoconnect_bss(struct station *station,
|
||||
|
Loading…
Reference in New Issue
Block a user