]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
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 eff1140cd1774ecb9fb3a0c75555f41e3f36f184..7d3cc06f09721b28a23fb8d79a772f4dedf084ea 100644 (file)
@@ -345,14 +345,6 @@ hostapd_set_beacon_int(struct hostapd_data *hapd, int value)
        return hapd->driver->set_beacon_int(hapd->drv_priv, 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)
 {
index e3a9ea9576baba723dd81ececa8d68316c514036..dfebf8458b65a3a80a1cd23989405847177deeae 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 0336ec537f32a8c699f43f80abd146ad67d30e2d..930e464a96de59eff1aed15f562453a62e78b18a 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 1e4d9964207daff40e0d3d4ea0fbeb9605c4e02e..158c3f66bc40818854626e8a74e45efd459d13de 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 */,