Fix CONFIG_NO_SCAN_PROCESSING=y build
authorJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 14:02:23 +0000 (17:02 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 14:02:23 +0000 (17:02 +0300)
ht_supported() was used but not defined in such a case.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver.h
src/drivers/driver_common.c
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant_i.h

index 6af7294..36f6f69 100644 (file)
@@ -4198,6 +4198,9 @@ const char * event_to_string(enum wpa_event_type event);
 /* Convert chan_width to a string for logging and control interfaces */
 const char * channel_width_to_string(enum chan_width width);
 
+int ht_supported(const struct hostapd_hw_modes *mode);
+int vht_supported(const struct hostapd_hw_modes *mode);
+
 /* NULL terminated array of linked in driver wrappers */
 extern struct wpa_driver_ops *wpa_drivers[];
 
index 77e6905..c53b889 100644 (file)
@@ -105,3 +105,39 @@ const char * channel_width_to_string(enum chan_width width)
                return "unknown";
        }
 }
+
+
+int ht_supported(const struct hostapd_hw_modes *mode)
+{
+       if (!(mode->flags & HOSTAPD_MODE_FLAG_HT_INFO_KNOWN)) {
+               /*
+                * The driver did not indicate whether it supports HT. Assume
+                * it does to avoid connection issues.
+                */
+               return 1;
+       }
+
+       /*
+        * IEEE Std 802.11n-2009 20.1.1:
+        * An HT non-AP STA shall support all EQM rates for one spatial stream.
+        */
+       return mode->mcs_set[0] == 0xff;
+}
+
+
+int vht_supported(const struct hostapd_hw_modes *mode)
+{
+       if (!(mode->flags & HOSTAPD_MODE_FLAG_VHT_INFO_KNOWN)) {
+               /*
+                * The driver did not indicate whether it supports VHT. Assume
+                * it does to avoid connection issues.
+                */
+               return 1;
+       }
+
+       /*
+        * A VHT non-AP STA shall support MCS 0-7 for one spatial stream.
+        * TODO: Verify if this complies with the standard
+        */
+       return (mode->vht_mcs_set[0] & 0x3) != 3;
+}
index 2d17aba..f9e82dd 100644 (file)
@@ -582,42 +582,6 @@ static int freq_allowed(int *freqs, int freq)
 }
 
 
-int ht_supported(const struct hostapd_hw_modes *mode)
-{
-       if (!(mode->flags & HOSTAPD_MODE_FLAG_HT_INFO_KNOWN)) {
-               /*
-                * The driver did not indicate whether it supports HT. Assume
-                * it does to avoid connection issues.
-                */
-               return 1;
-       }
-
-       /*
-        * IEEE Std 802.11n-2009 20.1.1:
-        * An HT non-AP STA shall support all EQM rates for one spatial stream.
-        */
-       return mode->mcs_set[0] == 0xff;
-}
-
-
-int vht_supported(const struct hostapd_hw_modes *mode)
-{
-       if (!(mode->flags & HOSTAPD_MODE_FLAG_VHT_INFO_KNOWN)) {
-               /*
-                * The driver did not indicate whether it supports VHT. Assume
-                * it does to avoid connection issues.
-                */
-               return 1;
-       }
-
-       /*
-        * A VHT non-AP STA shall support MCS 0-7 for one spatial stream.
-        * TODO: Verify if this complies with the standard
-        */
-       return (mode->vht_mcs_set[0] & 0x3) != 3;
-}
-
-
 static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
 {
        const struct hostapd_hw_modes *mode = NULL, *modes;
index 6974ba2..ba9df62 100644 (file)
@@ -991,8 +991,6 @@ void wnm_bss_keep_alive_deinit(struct wpa_supplicant *wpa_s);
 int wpa_supplicant_fast_associate(struct wpa_supplicant *wpa_s);
 struct wpa_bss * wpa_supplicant_pick_network(struct wpa_supplicant *wpa_s,
                                             struct wpa_ssid **selected_ssid);
-int ht_supported(const struct hostapd_hw_modes *mode);
-int vht_supported(const struct hostapd_hw_modes *mode);
 
 /* eap_register.c */
 int eap_register_methods(void);