From 2962a80e14271826619d4a42277d2c41b5a31977 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 29 Oct 2019 10:50:41 -0700 Subject: [PATCH] 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. --- src/station.c | 10 ++++++++++ src/station.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/station.c b/src/station.c index 5e1d2468..ccf93934 100644 --- a/src/station.c +++ b/src/station.c @@ -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; diff --git a/src/station.h b/src/station.h index 469b5400..4155081b 100644 --- a/src/station.h +++ b/src/station.h @@ -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);