nl80211: simplify iterating over phy's devices
[project/iwinfo.git] / iwinfo_madwifi.c
index bb7fc639b1f9214e1c97e920535c11927c320daa..d27e6c92e05092c5e7103cc0f4f063ab9375e444 100644 (file)
@@ -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;
@@ -1024,6 +1036,12 @@ static int madwifi_get_hwmodelist(const char *ifname, int *buf)
        return -1;
 }
 
+static int madwifi_get_htmodelist(const char *ifname, int *buf)
+{
+       /* OpenWrt's madwifi did never support any HT rates */
+       return -1;
+}
+
 static int madwifi_get_mbssid_support(const char *ifname, int *buf)
 {
        /* Test whether we can create another interface */
@@ -1105,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,
@@ -1116,6 +1136,7 @@ const struct iwinfo_ops madwifi_ops = {
        .quality_max      = madwifi_get_quality_max,
        .mbssid_support   = madwifi_get_mbssid_support,
        .hwmodelist       = madwifi_get_hwmodelist,
+       .htmodelist       = madwifi_get_htmodelist,
        .mode             = madwifi_get_mode,
        .ssid             = madwifi_get_ssid,
        .bssid            = madwifi_get_bssid,