staging: ath6kl: Adding support for txop bursting enable/disable
authorVipin Mehta <vmehta@atheros.com>
Fri, 18 Feb 2011 21:13:08 +0000 (13:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 21:28:51 +0000 (13:28 -0800)
Adding compile time support for enabling/disabling txop bursting.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ath6kl/os/linux/ar6000_drv.c
drivers/staging/ath6kl/os/linux/include/wlan_config.h

index b69280da11309f0b5970f605792265b1a255c61b..f084a92c920929e93c92de7c0a20a8e21b8bd999 100644 (file)
@@ -2528,6 +2528,13 @@ int ar6000_target_config_wlan_params(AR_SOFTC_T *ar)
         status = A_ERROR;
     }
 
+#if WLAN_CONFIG_DISABLE_TX_BURSTING  
+    if ((wmi_set_wmm_txop(ar->arWmi, WMI_TXOP_DISABLED)) != 0) {
+        AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Unable to set txop bursting \n"));
+        status = A_ERROR;
+    }
+#endif 
+
     return status;
 }
 
index f7d048722226927b40aab690481bbd0ee6667979..2de5cef26cceed7999fdc9dc23833dc51aa7f099 100644 (file)
  */
 #define WLAN_CONFIG_PM_WOW2                 0
 
+/*
+ * This configuration item enables/disables transmit bursting 
+ * 0 - Enable tx Bursting (default)
+ * 1 - Disable tx bursting 
+ */
+#define WLAN_CONFIG_DISABLE_TX_BURSTING     0
+
 /*
  * Platform specific function to power ON/OFF AR6000 
  * and enable/disable SDIO card detection