]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
wl12xx: remove rx filtering stuff
authorEliad Peller <eliad@wizery.com>
Sun, 14 Aug 2011 10:17:04 +0000 (13:17 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 22 Aug 2011 09:35:23 +0000 (12:35 +0300)
The new fw doesn't support rx_filtering configuration (as a
stand-alone command. the rx filtering is done automatically
according to the active role).

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
14 files changed:
drivers/net/wireless/wl12xx/acx.c
drivers/net/wireless/wl12xx/acx.h
drivers/net/wireless/wl12xx/boot.c
drivers/net/wireless/wl12xx/cmd.c
drivers/net/wireless/wl12xx/debugfs.c
drivers/net/wireless/wl12xx/init.c
drivers/net/wireless/wl12xx/io.h
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/reg.h
drivers/net/wireless/wl12xx/rx.c
drivers/net/wireless/wl12xx/rx.h
drivers/net/wireless/wl12xx/scan.c
drivers/net/wireless/wl12xx/tx.c
drivers/net/wireless/wl12xx/wl12xx.h

index 7e33f1f4f3d47c7866baac5af76b656111139d2b..6447a0969ffe66122a2ffca81aad3f4ec1c0eca0 100644 (file)
@@ -183,34 +183,6 @@ out:
        return ret;
 }
 
-int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter)
-{
-       struct acx_rx_config *rx_config;
-       int ret;
-
-       wl1271_debug(DEBUG_ACX, "acx rx config");
-
-       rx_config = kzalloc(sizeof(*rx_config), GFP_KERNEL);
-       if (!rx_config) {
-               ret = -ENOMEM;
-               goto out;
-       }
-
-       rx_config->config_options = cpu_to_le32(config);
-       rx_config->filter_options = cpu_to_le32(filter);
-
-       ret = wl1271_cmd_configure(wl, ACX_RX_CFG,
-                                  rx_config, sizeof(*rx_config));
-       if (ret < 0) {
-               wl1271_warning("failed to set rx config: %d", ret);
-               goto out;
-       }
-
-out:
-       kfree(rx_config);
-       return ret;
-}
-
 int wl1271_acx_pd_threshold(struct wl1271 *wl)
 {
        struct acx_packet_detection *pd;
index d2eb86eccc04bb596611f76f0b6e394061f4a702..4ae0085c58ea00554fa4ea157bec5ec720fc6e87 100644 (file)
@@ -160,94 +160,6 @@ struct acx_rx_msdu_lifetime {
        __le32 lifetime;
 } __packed;
 
-/*
- * RX Config Options Table
- * Bit         Definition
- * ===         ==========
- * 31:14               Reserved
- * 13          Copy RX Status - when set, write three receive status words
- *             to top of rx'd MPDUs.
- *             When cleared, do not write three status words (added rev 1.5)
- * 12          Reserved
- * 11          RX Complete upon FCS error - when set, give rx complete
- *             interrupt for FCS errors, after the rx filtering, e.g. unicast
- *             frames not to us with FCS error will not generate an interrupt.
- * 10          SSID Filter Enable - When set, the WiLink discards all beacon,
- *             probe request, and probe response frames with an SSID that does
- *             not match the SSID specified by the host in the START/JOIN
- *             command.
- *             When clear, the WiLink receives frames with any SSID.
- * 9           Broadcast Filter Enable - When set, the WiLink discards all
- *             broadcast frames. When clear, the WiLink receives all received
- *             broadcast frames.
- * 8:6         Reserved
- * 5           BSSID Filter Enable - When set, the WiLink discards any frames
- *             with a BSSID that does not match the BSSID specified by the
- *             host.
- *             When clear, the WiLink receives frames from any BSSID.
- * 4           MAC Addr Filter - When set, the WiLink discards any frames
- *             with a destination address that does not match the MAC address
- *             of the adaptor.
- *             When clear, the WiLink receives frames destined to any MAC
- *             address.
- * 3           Promiscuous - When set, the WiLink receives all valid frames
- *             (i.e., all frames that pass the FCS check).
- *             When clear, only frames that pass the other filters specified
- *             are received.
- * 2           FCS - When set, the WiLink includes the FCS with the received
- *             frame.
- *             When cleared, the FCS is discarded.
- * 1           PLCP header - When set, write all data from baseband to frame
- *             buffer including PHY header.
- * 0           Reserved - Always equal to 0.
- *
- * RX Filter Options Table
- * Bit         Definition
- * ===         ==========
- * 31:12               Reserved - Always equal to 0.
- * 11          Association - When set, the WiLink receives all association
- *             related frames (association request/response, reassocation
- *             request/response, and disassociation). When clear, these frames
- *             are discarded.
- * 10          Auth/De auth - When set, the WiLink receives all authentication
- *             and de-authentication frames. When clear, these frames are
- *             discarded.
- * 9           Beacon - When set, the WiLink receives all beacon frames.
- *             When clear, these frames are discarded.
- * 8           Contention Free - When set, the WiLink receives all contention
- *             free frames.
- *             When clear, these frames are discarded.
- * 7           Control - When set, the WiLink receives all control frames.
- *             When clear, these frames are discarded.
- * 6           Data - When set, the WiLink receives all data frames.
- *             When clear, these frames are discarded.
- * 5           FCS Error - When set, the WiLink receives frames that have FCS
- *             errors.
- *             When clear, these frames are discarded.
- * 4           Management - When set, the WiLink receives all management
- *             frames.
- *             When clear, these frames are discarded.
- * 3           Probe Request - When set, the WiLink receives all probe request
- *             frames.
- *             When clear, these frames are discarded.
- * 2           Probe Response - When set, the WiLink receives all probe
- *             response frames.
- *             When clear, these frames are discarded.
- * 1           RTS/CTS/ACK - When set, the WiLink receives all RTS, CTS and ACK
- *             frames.
- *             When clear, these frames are discarded.
- * 0           Rsvd Type/Sub Type - When set, the WiLink receives all frames
- *             that have reserved frame types and sub types as defined by the
- *             802.11 specification.
- *             When clear, these frames are discarded.
- */
-struct acx_rx_config {
-       struct acx_header header;
-
-       __le32 config_options;
-       __le32 filter_options;
-} __packed;
-
 struct acx_packet_detection {
        struct acx_header header;
 
@@ -424,35 +336,6 @@ struct acx_event_mask {
        __le32 high_event_mask; /* Unused */
 } __packed;
 
-#define CFG_RX_FCS             BIT(2)
-#define CFG_RX_ALL_GOOD                BIT(3)
-#define CFG_UNI_FILTER_EN      BIT(4)
-#define CFG_BSSID_FILTER_EN    BIT(5)
-#define CFG_MC_FILTER_EN       BIT(6)
-#define CFG_MC_ADDR0_EN                BIT(7)
-#define CFG_MC_ADDR1_EN                BIT(8)
-#define CFG_BC_REJECT_EN       BIT(9)
-#define CFG_SSID_FILTER_EN     BIT(10)
-#define CFG_RX_INT_FCS_ERROR   BIT(11)
-#define CFG_RX_INT_ENCRYPTED   BIT(12)
-#define CFG_RX_WR_RX_STATUS    BIT(13)
-#define CFG_RX_FILTER_NULTI    BIT(14)
-#define CFG_RX_RESERVE         BIT(15)
-#define CFG_RX_TIMESTAMP_TSF   BIT(16)
-
-#define CFG_RX_RSV_EN          BIT(0)
-#define CFG_RX_RCTS_ACK                BIT(1)
-#define CFG_RX_PRSP_EN         BIT(2)
-#define CFG_RX_PREQ_EN         BIT(3)
-#define CFG_RX_MGMT_EN         BIT(4)
-#define CFG_RX_FCS_ERROR       BIT(5)
-#define CFG_RX_DATA_EN         BIT(6)
-#define CFG_RX_CTL_EN          BIT(7)
-#define CFG_RX_CF_EN           BIT(8)
-#define CFG_RX_BCN_EN          BIT(9)
-#define CFG_RX_AUTH_EN         BIT(10)
-#define CFG_RX_ASSOC_EN                BIT(11)
-
 #define SCAN_PASSIVE           BIT(0)
 #define SCAN_5GHZ_BAND         BIT(1)
 #define SCAN_TRIGGERED         BIT(2)
@@ -1342,7 +1225,6 @@ int wl1271_acx_feature_cfg(struct wl1271 *wl);
 int wl1271_acx_mem_map(struct wl1271 *wl,
                       struct acx_header *mem_map, size_t len);
 int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl);
-int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter);
 int wl1271_acx_pd_threshold(struct wl1271 *wl);
 int wl1271_acx_slot(struct wl1271 *wl, enum acx_slot_type slot_time);
 int wl1271_acx_group_address_tbl(struct wl1271 *wl, bool enable,
index 930a638523fb903bd5c5d658e8d736e448eb7223..41791ffd26ea37fdc8773a2f731a7537150da19e 100644 (file)
@@ -845,9 +845,6 @@ int wl1271_boot(struct wl1271 *wl)
        /* Enable firmware interrupts now */
        wl1271_boot_enable_interrupts(wl);
 
-       /* set the wl1271 default filters */
-       wl1271_set_default_filters(wl);
-
        wl1271_event_mbox_config(wl);
 
 out:
index 97dd237a958004cb75d43938edbb6cbac86a48b6..b6ef65a57b717eb18b9673008f12b9c3c4c5d628 100644 (file)
@@ -382,8 +382,6 @@ int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type)
        for (i = 0; i < ETH_ALEN; i++)
                bssid[i] = wl->bssid[ETH_ALEN - i - 1];
 
-       join->rx_config_options = cpu_to_le32(wl->rx_config);
-       join->rx_filter_options = cpu_to_le32(wl->rx_filter);
        join->bss_type = bss_type;
        join->basic_rate_set = cpu_to_le32(wl->basic_rate_set);
        join->supported_rate_set = cpu_to_le32(wl->rate_set);
@@ -1004,8 +1002,6 @@ int wl1271_cmd_disconnect(struct wl1271 *wl)
                goto out;
        }
 
-       cmd->rx_config_options = cpu_to_le32(wl->rx_config);
-       cmd->rx_filter_options = cpu_to_le32(wl->rx_filter);
        /* disconnect reason is not used in immediate disconnections */
        cmd->type = DISCONNECT_IMMEDIATE;
 
index 3b5f240d70311ab429f6a91a01dd12dae1f81ad6..fd1c301be7c71eac0364680d58d95632ae1a1968 100644 (file)
@@ -366,9 +366,6 @@ static ssize_t driver_state_read(struct file *file, char __user *user_buf,
        DRIVER_STATE_PRINT_INT(beacon_int);
        DRIVER_STATE_PRINT_INT(psm_entry_retry);
        DRIVER_STATE_PRINT_INT(ps_poll_failures);
-       DRIVER_STATE_PRINT_HEX(filters);
-       DRIVER_STATE_PRINT_HEX(rx_config);
-       DRIVER_STATE_PRINT_HEX(rx_filter);
        DRIVER_STATE_PRINT_INT(power_level);
        DRIVER_STATE_PRINT_INT(rssi_thold);
        DRIVER_STATE_PRINT_INT(last_rssi_event);
index c3e9a2e4410eb6ab4015c0b321519a0c1a312088..44cd515a057ea3cdf41d8b004182964bc83ffb1f 100644 (file)
@@ -227,7 +227,7 @@ static int wl1271_ap_init_templates_config(struct wl1271 *wl)
        return 0;
 }
 
-static int wl1271_init_rx_config(struct wl1271 *wl, u32 config, u32 filter)
+static int wl12xx_init_rx_config(struct wl1271 *wl)
 {
        int ret;
 
@@ -235,10 +235,6 @@ static int wl1271_init_rx_config(struct wl1271 *wl, u32 config, u32 filter)
        if (ret < 0)
                return ret;
 
-       ret = wl1271_acx_rx_config(wl, config, filter);
-       if (ret < 0)
-               return ret;
-
        return 0;
 }
 
@@ -650,11 +646,7 @@ int wl1271_hw_init(struct wl1271 *wl)
                return ret;
 
        /* RX config */
-       ret = wl1271_init_rx_config(wl,
-                                   RX_CFG_PROMISCUOUS | RX_CFG_TSF,
-                                   RX_FILTER_OPTION_DEF);
-       /* RX_CONFIG_OPTION_ANY_DST_ANY_BSS,
-          RX_FILTER_OPTION_FILTER_ALL); */
+       ret = wl12xx_init_rx_config(wl);
        if (ret < 0)
                goto out_free_memmap;
 
index a2fe4f506adaf88335b47c5806507ca3a7310b91..e839341dfafeac3faa0b0c0d7daf22171a149fd9 100644 (file)
@@ -186,6 +186,5 @@ int wl1271_free_hw(struct wl1271 *wl);
 irqreturn_t wl1271_irq(int irq, void *data);
 bool wl1271_set_block_size(struct wl1271 *wl);
 int wl1271_tx_dummy_packet(struct wl1271 *wl);
-void wl1271_configure_filters(struct wl1271 *wl, unsigned int filters);
 
 #endif
index 4fa760230ac7fbc9bcea294a0ef844953934ae4f..7fcdfa3ee1db07ac52e64a7d90771180ae3602ef 100644 (file)
@@ -1991,7 +1991,6 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl,
        wl->session_counter = 0;
        wl->rate_set = CONF_TX_RATE_MASK_BASIC;
        wl->vif = NULL;
-       wl->filters = 0;
        wl1271_free_ap_keys(wl);
        memset(wl->ap_hlid_map, 0, sizeof(wl->ap_hlid_map));
        wl->ap_fw_ps_map = 0;
@@ -2037,39 +2036,6 @@ static void wl1271_op_remove_interface(struct ieee80211_hw *hw,
        cancel_work_sync(&wl->recovery_work);
 }
 
-void wl1271_configure_filters(struct wl1271 *wl, unsigned int filters)
-{
-       wl1271_set_default_filters(wl);
-
-       /* combine requested filters with current filter config */
-       filters = wl->filters | filters;
-
-       wl1271_debug(DEBUG_FILTERS, "RX filters set: ");
-
-       if (filters & FIF_PROMISC_IN_BSS) {
-               wl1271_debug(DEBUG_FILTERS, " - FIF_PROMISC_IN_BSS");
-               wl->rx_config &= ~CFG_UNI_FILTER_EN;
-               wl->rx_config |= CFG_BSSID_FILTER_EN;
-       }
-       if (filters & FIF_BCN_PRBRESP_PROMISC) {
-               wl1271_debug(DEBUG_FILTERS, " - FIF_BCN_PRBRESP_PROMISC");
-               wl->rx_config &= ~CFG_BSSID_FILTER_EN;
-               wl->rx_config &= ~CFG_SSID_FILTER_EN;
-       }
-       if (filters & FIF_OTHER_BSS) {
-               wl1271_debug(DEBUG_FILTERS, " - FIF_OTHER_BSS");
-               wl->rx_config &= ~CFG_BSSID_FILTER_EN;
-       }
-       if (filters & FIF_CONTROL) {
-               wl1271_debug(DEBUG_FILTERS, " - FIF_CONTROL");
-               wl->rx_filter |= CFG_RX_CTL_EN;
-       }
-       if (filters & FIF_FCSFAIL) {
-               wl1271_debug(DEBUG_FILTERS, " - FIF_FCSFAIL");
-               wl->rx_filter |= CFG_RX_FCS_ERROR;
-       }
-}
-
 static int wl1271_dummy_join(struct wl1271 *wl)
 {
        int ret = 0;
@@ -2079,9 +2045,6 @@ static int wl1271_dummy_join(struct wl1271 *wl)
 
        memcpy(wl->bssid, dummy_bssid, ETH_ALEN);
 
-       /* pass through frames from all BSS */
-       wl1271_configure_filters(wl, FIF_OTHER_BSS);
-
        ret = wl1271_cmd_join(wl, wl->set_bss_type);
        if (ret < 0)
                goto out;
@@ -2163,9 +2126,6 @@ static int wl1271_unjoin(struct wl1271 *wl)
        wl->tx_security_last_seq_lsb = 0;
        wl->tx_security_seq = 0;
 
-       /* stop filtering packets based on bssid */
-       wl1271_configure_filters(wl, FIF_OTHER_BSS);
-
 out:
        return ret;
 }
@@ -2434,18 +2394,11 @@ static void wl1271_op_configure_filter(struct ieee80211_hw *hw,
                        goto out_sleep;
        }
 
-       /* determine, whether supported filter values have changed */
-       if (changed == 0)
-               goto out_sleep;
-
-       /* configure filters */
-       wl->filters = *total;
-       wl1271_configure_filters(wl, 0);
-
-       /* apply configured filters */
-       ret = wl1271_acx_rx_config(wl, wl->rx_config, wl->rx_filter);
-       if (ret < 0)
-               goto out_sleep;
+       /*
+        * the fw doesn't provide an api to configure the filters. instead,
+        * the filters configuration is based on the active roles / ROC
+        * state.
+        */
 
 out_sleep:
        wl1271_ps_elp_sleep(wl);
@@ -3168,9 +3121,6 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
                        if (ret < 0)
                                goto out;
 
-                       /* filter out all packets not from this BSSID */
-                       wl1271_configure_filters(wl, 0);
-
                        /* Need to update the BSSID (for filtering etc) */
                        do_join = true;
                }
@@ -4363,8 +4313,6 @@ struct ieee80211_hw *wl1271_alloc_hw(void)
        wl->beacon_int = WL1271_DEFAULT_BEACON_INT;
        wl->default_key = 0;
        wl->rx_counter = 0;
-       wl->rx_config = WL1271_DEFAULT_STA_RX_CONFIG;
-       wl->rx_filter = WL1271_DEFAULT_STA_RX_FILTER;
        wl->psm_entry_retry = 0;
        wl->power_level = WL1271_DEFAULT_POWER_LEVEL;
        wl->basic_rate_set = CONF_TX_RATE_MASK_BASIC;
index 440a4ee9cb4203196471d1f2e3fca3c8f6a663cd..3f570f39758654430ef9a04602b8caf422c8acb5 100644 (file)
  ===============================================*/
 #define REG_EVENT_MAILBOX_PTR                          (SCR_PAD1)
 
-
-/* Misc */
-
-#define REG_ENABLE_TX_RX                               (ENABLE)
-/*
- * Rx configuration (filter) information element
- * ---------------------------------------------
- */
-#define REG_RX_CONFIG                          (RX_CFG)
-#define REG_RX_FILTER                          (RX_FILTER_CFG)
-
-
-#define RX_CFG_ENABLE_PHY_HEADER_PLCP   0x0002
-
-/* promiscuous - receives all valid frames */
-#define RX_CFG_PROMISCUOUS              0x0008
-
-/* receives frames from any BSSID */
-#define RX_CFG_BSSID                    0x0020
-
-/* receives frames destined to any MAC address */
-#define RX_CFG_MAC                      0x0010
-
-#define RX_CFG_ENABLE_ONLY_MY_DEST_MAC  0x0010
-#define RX_CFG_ENABLE_ANY_DEST_MAC      0x0000
-#define RX_CFG_ENABLE_ONLY_MY_BSSID     0x0020
-#define RX_CFG_ENABLE_ANY_BSSID                 0x0000
-
-/* discards all broadcast frames */
-#define RX_CFG_DISABLE_BCAST            0x0200
-
-#define RX_CFG_ENABLE_ONLY_MY_SSID      0x0400
-#define RX_CFG_ENABLE_RX_CMPLT_FCS_ERROR 0x0800
-#define RX_CFG_COPY_RX_STATUS           0x2000
-#define RX_CFG_TSF                      0x10000
-
-#define RX_CONFIG_OPTION_ANY_DST_MY_BSS         (RX_CFG_ENABLE_ANY_DEST_MAC | \
-                                         RX_CFG_ENABLE_ONLY_MY_BSSID)
-
-#define RX_CONFIG_OPTION_MY_DST_ANY_BSS         (RX_CFG_ENABLE_ONLY_MY_DEST_MAC\
-                                         | RX_CFG_ENABLE_ANY_BSSID)
-
-#define RX_CONFIG_OPTION_ANY_DST_ANY_BSS (RX_CFG_ENABLE_ANY_DEST_MAC | \
-                                         RX_CFG_ENABLE_ANY_BSSID)
-
-#define RX_CONFIG_OPTION_MY_DST_MY_BSS  (RX_CFG_ENABLE_ONLY_MY_DEST_MAC\
-                                         | RX_CFG_ENABLE_ONLY_MY_BSSID)
-
-#define RX_CONFIG_OPTION_FOR_SCAN  (RX_CFG_ENABLE_PHY_HEADER_PLCP \
-                                   | RX_CFG_ENABLE_RX_CMPLT_FCS_ERROR \
-                                   | RX_CFG_COPY_RX_STATUS | RX_CFG_TSF)
-
-#define RX_CONFIG_OPTION_FOR_MEASUREMENT (RX_CFG_ENABLE_ANY_DEST_MAC)
-
-#define RX_CONFIG_OPTION_FOR_JOIN       (RX_CFG_ENABLE_ONLY_MY_BSSID | \
-                                         RX_CFG_ENABLE_ONLY_MY_DEST_MAC)
-
-#define RX_CONFIG_OPTION_FOR_IBSS_JOIN   (RX_CFG_ENABLE_ONLY_MY_SSID | \
-                                         RX_CFG_ENABLE_ONLY_MY_DEST_MAC)
-
-#define RX_FILTER_OPTION_DEF         (CFG_RX_MGMT_EN | CFG_RX_DATA_EN\
-                                      | CFG_RX_CTL_EN | CFG_RX_BCN_EN\
-                                      | CFG_RX_AUTH_EN | CFG_RX_ASSOC_EN)
-
-#define RX_FILTER_OPTION_FILTER_ALL     0
-
-#define RX_FILTER_OPTION_DEF_PRSP_BCN  (CFG_RX_PRSP_EN | CFG_RX_MGMT_EN\
-                                       | CFG_RX_RCTS_ACK | CFG_RX_BCN_EN)
-
-#define RX_FILTER_OPTION_JOIN       (CFG_RX_MGMT_EN | CFG_RX_DATA_EN\
-                                     | CFG_RX_BCN_EN | CFG_RX_AUTH_EN\
-                                     | CFG_RX_ASSOC_EN | CFG_RX_RCTS_ACK\
-                                     | CFG_RX_PRSP_EN)
-
-
 /*===============================================
  EEPROM Read/Write Request 32bit RW
  ------------------------------------------
index 46f4af6ca72367413e75e9869ca8d849b540e354..7a0c5fe294b232c977ff6c21b3c89ce804eaa6ad 100644 (file)
@@ -283,14 +283,3 @@ void wl1271_rx(struct wl1271 *wl, struct wl1271_fw_common_status *status)
                          jiffies + msecs_to_jiffies(timeout));
        }
 }
-
-void wl1271_set_default_filters(struct wl1271 *wl)
-{
-       if (wl->bss_type == BSS_TYPE_AP_BSS) {
-               wl->rx_config = WL1271_DEFAULT_AP_RX_CONFIG;
-               wl->rx_filter = WL1271_DEFAULT_AP_RX_FILTER;
-       } else {
-               wl->rx_config = WL1271_DEFAULT_STA_RX_CONFIG;
-               wl->rx_filter = WL1271_DEFAULT_STA_RX_FILTER;
-       }
-}
index 0325b9de612e2874c71eba3a156222641542951b..d3c0591665e8fc653b422cbafca5da38c3472765 100644 (file)
@@ -131,6 +131,5 @@ struct wl1271_rx_descriptor {
 
 void wl1271_rx(struct wl1271 *wl, struct wl1271_fw_common_status *status);
 u8 wl1271_rate_to_idx(int rate, enum ieee80211_band band);
-void wl1271_set_default_filters(struct wl1271 *wl);
 
 #endif
index edfe01c321cadd1f4cafd3bafa595043c5a3e5c9..78a9b23a41b84870f1598c951bc234eb3fff3348 100644 (file)
@@ -167,9 +167,6 @@ static int wl1271_scan_send(struct wl1271 *wl, enum ieee80211_band band,
        }
 
        cmd->params.tx_rate = cpu_to_le32(basic_rate);
-       cmd->params.rx_config_options = cpu_to_le32(CFG_RX_ALL_GOOD);
-       cmd->params.rx_filter_options =
-               cpu_to_le32(CFG_RX_PRSP_EN | CFG_RX_MGMT_EN | CFG_RX_BCN_EN);
 
        cmd->params.n_probe_reqs = wl->conf.scan.num_probe_reqs;
        cmd->params.tx_rate = cpu_to_le32(basic_rate);
index 938af1de6c2c63b7c2d9a4a5394047d840d47cca..8a745fbe0f45de45204d4c08adbd5655b2e7b51a 100644 (file)
@@ -90,9 +90,7 @@ static int wl1271_tx_update_filters(struct wl1271 *wl,
        if (!ieee80211_is_auth(hdr->frame_control))
                return 0;
 
-       wl1271_configure_filters(wl, FIF_OTHER_BSS);
-
-       return wl1271_acx_rx_config(wl, wl->rx_config, wl->rx_filter);
+       return 0;
 }
 
 static void wl1271_tx_ap_update_inconnection_sta(struct wl1271 *wl,
index 0bdeae5c802dcc32d783100ca93f9d576427c600..7707895120befcb6ef24f5c5eb2df9d53194cc6b 100644 (file)
@@ -112,24 +112,6 @@ extern u32 wl12xx_debug_level;
                                       true);                           \
        } while (0)
 
-#define WL1271_DEFAULT_STA_RX_CONFIG (CFG_UNI_FILTER_EN |      \
-                                 CFG_BSSID_FILTER_EN | \
-                                 CFG_MC_FILTER_EN)
-
-#define WL1271_DEFAULT_STA_RX_FILTER (CFG_RX_RCTS_ACK | CFG_RX_PRSP_EN |  \
-                                 CFG_RX_MGMT_EN | CFG_RX_DATA_EN |   \
-                                 CFG_RX_CTL_EN | CFG_RX_BCN_EN |     \
-                                 CFG_RX_AUTH_EN | CFG_RX_ASSOC_EN)
-
-#define WL1271_DEFAULT_AP_RX_CONFIG  0
-
-#define WL1271_DEFAULT_AP_RX_FILTER  (CFG_RX_RCTS_ACK | CFG_RX_PREQ_EN | \
-                                 CFG_RX_MGMT_EN | CFG_RX_DATA_EN | \
-                                 CFG_RX_CTL_EN | CFG_RX_AUTH_EN | \
-                                 CFG_RX_ASSOC_EN)
-
-
-
 #define WL127X_FW_NAME "ti-connectivity/wl127x-fw-3.bin"
 #define WL128X_FW_NAME "ti-connectivity/wl128x-fw-3.bin"
 
@@ -532,10 +514,6 @@ struct wl1271 {
        struct work_struct rx_streaming_disable_work;
        struct timer_list rx_streaming_timer;
 
-       unsigned int filters;
-       unsigned int rx_config;
-       unsigned int rx_filter;
-
        struct completion *elp_compl;
        struct completion *ps_compl;
        struct delayed_work elp_work;