3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

station: add APIs to get connected BSS and BSS list

For Radio Resource Management (RRM) we will need access to the currently
connected BSS as well as the last scan results in order to do certain
kinds of requested measurements.
This commit is contained in:
James Prestwood 2019-10-29 10:50:41 -07:00 committed by Denis Kenzior
parent 87bd9f4c6e
commit 2962a80e14
2 changed files with 12 additions and 0 deletions

View File

@ -3021,6 +3021,16 @@ void station_network_foreach(struct station *station,
l_hashmap_foreach(station->networks, network_foreach, &data);
}
struct l_queue *station_get_bss_list(struct station *station)
{
return station->bss_list;
}
struct scan_bss *station_get_connected_bss(struct station *station)
{
return station->connected_bss;
}
static struct station *station_create(struct netdev *netdev)
{
struct station *station;

View File

@ -85,3 +85,5 @@ void station_foreach(station_foreach_func_t func, void *user_data);
void station_network_foreach(struct station *station,
station_network_foreach_func_t func,
void *user_data);
struct l_queue *station_get_bss_list(struct station *station);
struct scan_bss *station_get_connected_bss(struct station *station);