]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mwl8k: Enable life time expiry for tx packets in the hardware
authorNishant Sarmukadam <nishants@marvell.com>
Thu, 21 Apr 2011 11:04:59 +0000 (16:34 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:16 +0000 (14:50 -0400)
Tell the firmware to enable the life time expiry of tx packets
in the hardware. The hardware will now refer to the timestamp
in every tx packet and decide whether the packet needs to be
dropped or transmitted.

Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: Pradeep Nemavat <pnemavat@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index 63ee8cfe322b0d3e832a7e6473fec94e3a7b51b7..b8f2b12c8c7cd1340b7201b74538980e21ef8885 100644 (file)
@@ -2504,7 +2504,8 @@ static int mwl8k_cmd_set_hw_spec(struct ieee80211_hw *hw)
 
        cmd->flags = cpu_to_le32(MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT |
                                 MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP |
-                                MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON);
+                                MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON |
+                                MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY);
        cmd->num_tx_desc_per_queue = cpu_to_le32(MWL8K_TX_DESCS);
        cmd->total_rxd = cpu_to_le32(MWL8K_RX_DESCS);