mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +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;
|
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 {
|
struct autoconnect_entry {
|
||||||
uint16_t rank;
|
uint16_t rank;
|
||||||
struct network *network;
|
struct network *network;
|
||||||
|
@ -70,6 +70,7 @@ struct station {
|
|||||||
struct wiphy *station_get_wiphy(struct station *station);
|
struct wiphy *station_get_wiphy(struct station *station);
|
||||||
struct netdev *station_get_netdev(struct station *station);
|
struct netdev *station_get_netdev(struct station *station);
|
||||||
struct network *station_get_connected_network(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_autoconnect_next(struct station *station);
|
||||||
void station_add_autoconnect_bss(struct station *station,
|
void station_add_autoconnect_bss(struct station *station,
|
||||||
|
Loading…
Reference in New Issue
Block a user