carl9170 firmware: enable BA REQ responder by default
[carl9170fw.git] / carlfw / include / config.h
index ac74cbc0e6df30f2193199e4f357be3010ad0805..bebb26005e1c93872baf31e9780a733f6a841893 100644 (file)
 #include "types.h"
 #include "compiler.h"
 #include "fwcmd.h"
+#include "hw.h"
 
 #ifndef __CARL9170FW_CONFIG_H
 #define __CARL9170FW_CONFIG_H
 
-#define __CARL9170FW__
-
 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
 
 #if GCC_VERSION < 40400
@@ -53,6 +52,8 @@
 #define CARL9170_INTF_NUM              (1)
 #endif /* CONFIG_CARL9170FW_VIFS_NUM */
 
+#define CONFIG_CARL9170FW_BACK_REQS_NUM        4
+
 #if ((defined CONFIG_CARL9170FW_DEBUG) ||      \
      (defined CONFIG_CARL9170FW_LOOPBACK))
 #define CARL9170FW_UNUSABLE    y
@@ -62,10 +63,7 @@ static inline void __config_check(void)
 {
        BUILD_BUG_ON(!CARL9170_TX_STATUS_NUM);
        BUILD_BUG_ON(CARL9170_INTF_NUM < 1);
-
-#ifdef CONFIG_CARL9170FW_HANDLE_BACK_REQ
-       BUILD_BUG_ON(!CONFIG_CARL9170FW_BACK_REQS_NUM);
-#endif /* CONFIG_CARL9170FW_HANDLE_BACK_REQ */
+       BUILD_BUG_ON(CARL9170_INTF_NUM >= AR9170_MAX_VIRTUAL_MAC);
 }
 
 #endif /* __CARL9170FW_CONFIG_H */