3
0
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:
Denis Kenzior 2018-09-04 16:26:13 -05:00
parent 5e2cce2e0b
commit f996bea880
2 changed files with 10 additions and 0 deletions

View File

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

View File

@ -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,