nl80211: fix wpa supplicant ctrl socket permissions
[project/iwinfo.git] / iwinfo_wext.c
index a6cc516823a6ea7838fb3f99508f81746a2d62f6..b68d23013c8e2690e6fbcdad27375e7d72c38c61 100644 (file)
@@ -32,8 +32,6 @@ static double wext_freq2float(const struct iw_freq *in)
 
 static inline int wext_freq2mhz(const struct iw_freq *in)
 {
-       int i;
-
        if( in->e == 6 )
        {
                return in->m;
@@ -187,6 +185,18 @@ static int wext_get_channel(const char *ifname, int *buf)
        return -1;
 }
 
+static int wext_get_center_chan1(const char *ifname, int *buf)
+{
+       /* Not Supported */
+       return -1;
+}
+
+static int wext_get_center_chan2(const char *ifname, int *buf)
+{
+       /* Not Supported */
+       return -1;
+}
+
 static int wext_get_frequency(const char *ifname, int *buf)
 {
        struct iwreq wrq;
@@ -440,6 +450,12 @@ static int wext_get_hwmodelist(const char *ifname, int *buf)
        return -1;
 }
 
+static int wext_get_htmodelist(const char *ifname, int *buf)
+{
+       /* Stub */
+       return -1;
+}
+
 static int wext_get_encryption(const char *ifname, char *buf)
 {
        /* No reliable crypto info in wext */
@@ -530,6 +546,8 @@ const struct iwinfo_ops wext_ops = {
        .name             = "wext",
        .probe            = wext_probe,
        .channel          = wext_get_channel,
+       .center_chan1     = wext_get_center_chan1,
+       .center_chan2     = wext_get_center_chan2,
        .frequency        = wext_get_frequency,
        .frequency_offset = wext_get_frequency_offset,
        .txpower          = wext_get_txpower,
@@ -541,6 +559,7 @@ const struct iwinfo_ops wext_ops = {
        .quality_max      = wext_get_quality_max,
        .mbssid_support   = wext_get_mbssid_support,
        .hwmodelist       = wext_get_hwmodelist,
+       .htmodelist       = wext_get_htmodelist,
        .mode             = wext_get_mode,
        .ssid             = wext_get_ssid,
        .bssid            = wext_get_bssid,