Remove unused set_broadcast_ssid() driver op
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 22 Apr 2009 13:15:24 +0000 (16:15 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 22 Apr 2009 13:15:24 +0000 (16:15 +0300)
None of the driver wrappers user this. hostapd-controlled broadcast SSID
hiding can only be used with drivers that use hostapd for handling
Beacon and Probe Request/Response frames.

hostapd/driver_i.h
hostapd/hostapd.c
src/drivers/driver.h
src/drivers/driver_ndis.c

index eff1140..7d3cc06 100644 (file)
@@ -346,14 +346,6 @@ hostapd_set_beacon_int(struct hostapd_data *hapd, int value)
 }
 
 static inline int
-hostapd_set_broadcast_ssid(struct hostapd_data *hapd, int value)
-{
-       if (hapd->driver == NULL || hapd->driver->set_broadcast_ssid == NULL)
-               return 0;
-       return hapd->driver->set_broadcast_ssid(hapd->drv_priv, value);
-}
-
-static inline int
 hostapd_set_cts_protect(struct hostapd_data *hapd, int value)
 {
        if (hapd->driver == NULL || hapd->driver->set_cts_protect == NULL)
index e3a9ea9..dfebf84 100644 (file)
@@ -1159,14 +1159,6 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
                return -1;
        }
 
-       /* Set flag for whether SSID is broadcast in beacons */
-       if (hostapd_set_broadcast_ssid(hapd,
-                                      !!hapd->conf->ignore_broadcast_ssid)) {
-               wpa_printf(MSG_ERROR, "Could not set broadcast SSID flag for "
-                          "kernel driver");
-               return -1;
-       }
-
        /* Set SSID for the kernel driver (to be used in beacon and probe
         * response frames) */
        if (set_ssid && hostapd_set_ssid(hapd, (u8 *) conf->ssid.ssid,
index 0336ec5..930e464 100644 (file)
@@ -1281,13 +1281,6 @@ struct wpa_driver_ops {
         * 1 = enabled, i.e., bridge packets between associated STAs (default)
         */
        int (*set_internal_bridge)(void *priv, int value);
-       /* Configure broadcast SSID mode:
-        * 0 = include SSID in Beacon frames and reply to Probe Request frames
-        *     that use broadcast SSID
-        * 1 = hide SSID from Beacon frames and ignore Probe Request frames for
-        *     broadcast SSID
-        */
-       int (*set_broadcast_ssid)(void *priv, int value);
        int (*set_cts_protect)(void *priv, int value);
        int (*set_preamble)(void *priv, int value);
        int (*set_short_slot_time)(void *priv, int value);
index 1e4d996..158c3f6 100644 (file)
@@ -3245,7 +3245,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
        NULL /* set_rate_sets */,
        NULL /* hapd_set_beacon */,
        NULL /* set_internal_bridge */,
-       NULL /* set_broadcast_ssid */,
        NULL /* set_cts_protect */,
        NULL /* set_preamble */,
        NULL /* set_short_slot_time */,