aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorMathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>2018-08-06 19:46:19 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-16 16:35:30 (GMT)
commit7f00dc6e15763d150fd92f61451caf57a03cb941 (patch)
tree4d07f8375319022cfd06761ee0f0d0cc0d2ba8de /wpa_supplicant
parent183a6c93cd812077c08f2dc530d63d07e645f6ea (diff)
downloadhostap-7f00dc6e15763d150fd92f61451caf57a03cb941.zip
hostap-7f00dc6e15763d150fd92f61451caf57a03cb941.tar.gz
hostap-7f00dc6e15763d150fd92f61451caf57a03cb941.tar.bz2
Add driver API to get current channel parameters
This adds driver API functions to get the current operating channel parameters. This encompasses the center frequency, channel bandwidth, frequency segment 1 index (for 80+80 channels), and so on. Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/driver_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 078de23..5581bb0 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -492,6 +492,14 @@ static inline int wpa_drv_signal_poll(struct wpa_supplicant *wpa_s,
return -1;
}
+static inline int wpa_drv_channel_info(struct wpa_supplicant *wpa_s,
+ struct wpa_channel_info *ci)
+{
+ if (wpa_s->driver->channel_info)
+ return wpa_s->driver->channel_info(wpa_s->drv_priv, ci);
+ return -1;
+}
+
static inline int wpa_drv_pktcnt_poll(struct wpa_supplicant *wpa_s,
struct hostap_sta_driver_data *sta)
{