From 51c1336e7a408f539fa752dd80496e9f248c21e3 Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Wed, 6 Jan 2021 05:54:57 +0100 Subject: iwinfo: set center chan unsupported for not-nl80211 driver Declare get_center_chan1 and get_center_chan2 not supported for not nl80211 driver. Signed-off-by: Ansuel Smith --- iwinfo_madwifi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'iwinfo_madwifi.c') diff --git a/iwinfo_madwifi.c b/iwinfo_madwifi.c index f28bca1..d27e6c9 100644 --- a/iwinfo_madwifi.c +++ b/iwinfo_madwifi.c @@ -394,6 +394,18 @@ static int madwifi_get_channel(const char *ifname, int *buf) return -1; } +static int madwifi_get_center_chan1(const char *ifname, int *buf) +{ + /* Not Supported */ + return -1; +} + +static int madwifi_get_center_chan2(const char *ifname, int *buf) +{ + /* Not Supported */ + return -1; +} + static int madwifi_get_frequency(const char *ifname, int *buf) { struct iwreq wrq; @@ -1111,6 +1123,8 @@ const struct iwinfo_ops madwifi_ops = { .name = "madwifi", .probe = madwifi_probe, .channel = madwifi_get_channel, + .center_chan1 = madwifi_get_center_chan1, + .center_chan2 = madwifi_get_center_chan2, .frequency = madwifi_get_frequency, .frequency_offset = madwifi_get_frequency_offset, .txpower = madwifi_get_txpower, -- cgit v1.2.1