Browse Source

Remove unused valid_bss_mask driver_ops

Jouni Malinen 13 years ago
parent
commit
451c367d06
6 changed files with 0 additions and 43 deletions
  1. 0 9
      src/ap/ap_drv_ops.c
  2. 0 2
      src/ap/ap_drv_ops.h
  3. 0 12
      src/ap/hostapd.c
  4. 0 11
      src/drivers/driver.h
  5. 0 1
      src/drivers/driver_ndis.c
  6. 0 8
      src/drivers/driver_test.c

+ 0 - 9
src/ap/ap_drv_ops.c

@@ -504,15 +504,6 @@ int hostapd_set_tx_queue_params(struct hostapd_data *hapd, int queue, int aifs,
 }
 
 
-int hostapd_valid_bss_mask(struct hostapd_data *hapd, const u8 *addr,
-			   const u8 *mask)
-{
-	if (hapd->driver == NULL || hapd->driver->valid_bss_mask == NULL)
-		return 1;
-	return hapd->driver->valid_bss_mask(hapd->drv_priv, addr, mask);
-}
-
-
 struct hostapd_hw_modes *
 hostapd_get_hw_feature_data(struct hostapd_data *hapd, u16 *num_modes,
 			    u16 *flags)

+ 0 - 2
src/ap/ap_drv_ops.h

@@ -71,8 +71,6 @@ int hostapd_set_rate_sets(struct hostapd_data *hapd, int *supp_rates,
 int hostapd_set_country(struct hostapd_data *hapd, const char *country);
 int hostapd_set_tx_queue_params(struct hostapd_data *hapd, int queue, int aifs,
 				int cw_min, int cw_max, int burst_time);
-int hostapd_valid_bss_mask(struct hostapd_data *hapd, const u8 *addr,
-			   const u8 *mask);
 struct hostapd_hw_modes *
 hostapd_get_hw_feature_data(struct hostapd_data *hapd, u16 *num_modes,
 			    u16 *flags);

+ 0 - 12
src/ap/hostapd.c

@@ -371,7 +371,6 @@ static int hostapd_validate_bssid_configuration(struct hostapd_iface *iface)
 	u8 mask[ETH_ALEN] = { 0 };
 	struct hostapd_data *hapd = iface->bss[0];
 	unsigned int i = iface->conf->num_bss, bits = 0, j;
-	int res;
 	int auto_addr = 0;
 
 	if (hostapd_drv_none(hapd))
@@ -435,17 +434,6 @@ skip_mask_ext:
 	wpa_printf(MSG_DEBUG, "BSS count %lu, BSSID mask " MACSTR " (%d bits)",
 		   (unsigned long) iface->conf->num_bss, MAC2STR(mask), bits);
 
-	res = hostapd_valid_bss_mask(hapd, hapd->own_addr, mask);
-	if (res == 0)
-		return 0;
-
-	if (res < 0) {
-		wpa_printf(MSG_ERROR, "Driver did not accept BSSID mask "
-			   MACSTR " for start address " MACSTR ".",
-			   MAC2STR(mask), MAC2STR(hapd->own_addr));
-		return -1;
-	}
-
 	if (!auto_addr)
 		return 0;
 

+ 0 - 11
src/drivers/driver.h

@@ -1705,17 +1705,6 @@ struct wpa_driver_ops {
 	int (*set_tx_queue_params)(void *priv, int queue, int aifs, int cw_min,
 				   int cw_max, int burst_time);
 
-	/**
-	 * valid_bss_mask - Validate BSSID mask
-	 * @priv: Private driver interface data
-	 * @addr: Address
-	 * @mask: Mask
-	 * Returns: 0 if mask is valid, -1 if mask is not valid, 1 if mask can
-	 * be used, but the main interface address must be the first address in
-	 * the block if mask is applied
-	 */
-	int (*valid_bss_mask)(void *priv, const u8 *addr, const u8 *mask);
-
 	/**
 	 * if_add - Add a virtual interface
 	 * @priv: Private driver interface data

+ 0 - 1
src/drivers/driver_ndis.c

@@ -3273,7 +3273,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
 	NULL /* sta_set_flags */,
 	NULL /* set_rate_sets */,
 	NULL /* set_tx_queue_params */,
-	NULL /* valid_bss_mask */,
 	NULL /* if_add */,
 	NULL /* if_remove */,
 	NULL /* set_sta_vlan */,

+ 0 - 8
src/drivers/driver_test.c

@@ -1101,13 +1101,6 @@ static int test_driver_if_remove(void *priv, enum wpa_driver_if_type type,
 }
 
 
-static int test_driver_valid_bss_mask(void *priv, const u8 *addr,
-				      const u8 *mask)
-{
-	return 0;
-}
-
-
 static int test_driver_set_ssid(void *priv, const u8 *buf, int len)
 {
 	struct test_driver_bss *bss = priv;
@@ -3294,7 +3287,6 @@ const struct wpa_driver_ops wpa_driver_test_ops = {
 	.get_hw_feature_data = wpa_driver_test_get_hw_feature_data,
 	.if_add = test_driver_if_add,
 	.if_remove = test_driver_if_remove,
-	.valid_bss_mask = test_driver_valid_bss_mask,
 	.hapd_set_ssid = test_driver_set_ssid,
 	.set_privacy = test_driver_set_privacy,
 	.set_sta_vlan = test_driver_set_sta_vlan,