]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Remove unused bridge_packets configuration option
authorJouni Malinen <j@w1.fi>
Wed, 9 Dec 2009 20:06:43 +0000 (22:06 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 9 Dec 2009 20:06:43 +0000 (22:06 +0200)
There was code for configuring this, but no driver wrapper actually
implements the actual setting. Remove this for now to reduce potential
confusion and to simply the driver interface.

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

index 94d3bae8df338b8f0266d5d3d84b2eb4fe56b650..977309981b53f682f174701b8bc23c2220281c4c 100644 (file)
@@ -251,7 +251,6 @@ struct hostapd_config * hostapd_config_defaults(void)
        conf->rts_threshold = -1; /* use driver default: 2347 */
        conf->fragm_threshold = -1; /* user driver default: 2346 */
        conf->send_probe_response = 1;
-       conf->bridge_packets = INTERNAL_BRIDGE_DO_NOT_CONTROL;
 
        for (i = 0; i < NUM_TX_QUEUES; i++)
                conf->tx_queue[i].aifs = -1; /* use hw default */
@@ -2031,8 +2030,6 @@ struct hostapd_config * hostapd_config_read(const char *fname)
                                conf->preamble = LONG_PREAMBLE;
                } else if (os_strcmp(buf, "ignore_broadcast_ssid") == 0) {
                        bss->ignore_broadcast_ssid = atoi(pos);
-               } else if (os_strcmp(buf, "bridge_packets") == 0) {
-                       conf->bridge_packets = atoi(pos);
                } else if (os_strcmp(buf, "wep_default_key") == 0) {
                        bss->ssid.wep.idx = atoi(pos);
                        if (bss->ssid.wep.idx > 3) {
index ae3da9790eecb8b2141e7481087f4d724b835de9..5202645b56d1b0abd3c25667e925a1f4bbca6168 100644 (file)
@@ -360,12 +360,6 @@ struct hostapd_config {
         */
        struct hostapd_wmm_ac_params wmm_ac_params[4];
 
-       enum {
-               INTERNAL_BRIDGE_DO_NOT_CONTROL = -1,
-               INTERNAL_BRIDGE_DISABLED = 0,
-               INTERNAL_BRIDGE_ENABLED = 1
-       } bridge_packets;
-
        int ht_op_mode_fixed;
        u16 ht_capab;
        int ieee80211n;
index e6e3400204879c9925c944f059ae9579f40fbaeb..77ad1242e107ea4ddc0e5cbab315ea1cbe6f8416 100644 (file)
@@ -329,14 +329,6 @@ hostapd_set_beacon(const char *ifname, struct hostapd_data *hapd,
                                        dtim_period, beacon_int);
 }
 
-static inline int
-hostapd_set_internal_bridge(struct hostapd_data *hapd, int value)
-{
-       if (hapd->driver == NULL || hapd->driver->set_internal_bridge == NULL)
-               return 0;
-       return hapd->driver->set_internal_bridge(hapd->drv_priv, value);
-}
-
 static inline int
 hostapd_set_cts_protect(struct hostapd_data *hapd, int value)
 {
index fc7a5ff1d65bb2e90d4df6e65be5ddb7ff37b043..6b69a2b9d5992adc3cd3778a9f6bbc2549070da2 100644 (file)
@@ -1246,13 +1246,6 @@ static int setup_interface(struct hostapd_iface *iface)
                }
        }
 
-       if (hapd->iconf->bridge_packets != INTERNAL_BRIDGE_DO_NOT_CONTROL &&
-           hostapd_set_internal_bridge(hapd, hapd->iconf->bridge_packets)) {
-               wpa_printf(MSG_ERROR, "Failed to set bridge_packets for "
-                          "kernel driver");
-               return -1;
-       }
-
        if (hostapd_get_hw_features(iface)) {
                /* Not all drivers support this yet, so continue without hw
                 * feature data. */
index aeaad2e7e24b6c5a5e2877a3ac23bab0ed7a1605..66e31c982ff218939dd709fa7dee3aaf182b9316 100644 (file)
@@ -342,30 +342,6 @@ wmm_ac_vo_acm=0
 # default: 300 (i.e., 5 minutes)
 #ap_max_inactivity=300
 
-# Enable/disable internal bridge for packets between associated stations.
-#
-# When IEEE 802.11 is used in managed mode, packets are usually send through
-# the AP even if they are from a wireless station to another wireless station.
-# This functionality requires that the AP has a bridge functionality that sends
-# frames back to the same interface if their destination is another associated
-# station. In addition, broadcast/multicast frames from wireless stations will
-# be sent both to the host system net stack (e.g., to eventually wired network)
-# and back to the wireless interface.
-#
-# The internal bridge is implemented within the wireless kernel module and it
-# bypasses kernel filtering (netfilter/iptables/ebtables). If direct
-# communication between the stations needs to be prevented, the internal
-# bridge can be disabled by setting bridge_packets=0.
-#
-# Note: If this variable is not included in hostapd.conf, hostapd does not
-# change the configuration and iwpriv can be used to set the value with
-# 'iwpriv wlan# param 10 0' command. If the variable is in hostapd.conf,
-# hostapd will override possible iwpriv configuration whenever configuration
-# file is reloaded.
-#
-# default: do not control from hostapd (80211.o defaults to 1=enabled)
-#bridge_packets=1
-
 # Maximum allowed Listen Interval (how many Beacon periods STAs are allowed to
 # remain asleep). Default: 65535 (no limit apart from field size)
 #max_listen_interval=100
index 8678750a921b750b047d08f3d15ab1ccf1d6697f..1bb55956a4614f85117cd56f2bcac3649e66c831 100644 (file)
@@ -1111,12 +1111,6 @@ struct wpa_driver_ops {
        int (*set_rate_sets)(void *priv, int *supp_rates, int *basic_rates,
                             int mode);
 
-       /* Configure internal bridge:
-        * 0 = disabled, i.e., client separation is enabled (no bridging of
-        *     packets between associated STAs
-        * 1 = enabled, i.e., bridge packets between associated STAs (default)
-        */
-       int (*set_internal_bridge)(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 f8663bc99c2b75c0af486c8348b42d54a63b65ed..1c71d7830918abcca73a386e71bb7b97bbe3cdd7 100644 (file)
@@ -3230,7 +3230,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
        NULL /* set_frag */,
        NULL /* sta_set_flags */,
        NULL /* set_rate_sets */,
-       NULL /* set_internal_bridge */,
        NULL /* set_cts_protect */,
        NULL /* set_preamble */,
        NULL /* set_short_slot_time */,