X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=carlfw%2Finclude%2Fconfig.h;h=f9f093e564968ec4065e5e5a48743502ed7b86dc;hb=e03f20f46f3019d604d91cde16d833c4f1937a58;hp=b947f59b60f8fa4d3fdd2563853ec7ec9b9ed0ed;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294;p=carl9170fw.git diff --git a/carlfw/include/config.h b/carlfw/include/config.h index b947f59..f9f093e 100644 --- a/carlfw/include/config.h +++ b/carlfw/include/config.h @@ -19,6 +19,7 @@ #include "types.h" #include "compiler.h" #include "fwcmd.h" +#include "hw.h" #ifndef __CARL9170FW_CONFIG_H #define __CARL9170FW_CONFIG_H @@ -43,7 +44,6 @@ #define CARL9170_TX_STATUS_NUM (CARL9170_RSP_TX_STATUS_NUM) #define CARL9170_INT_RQ_CACHES 16 #define AR9170_INT_MAGIC_HEADER_SIZE 12 -#define CARL9170_USB_WATCHDOG_TRIGGER_THRESHOLD 4 #define CARL9170_TBTT_DELTA (CARL9170_PRETBTT_KUS + 1) #define CARL9170_GPIO_MASK (AR9170_GPIO_PORT_WPS_BUTTON_PRESSED) @@ -62,8 +62,8 @@ static inline void __config_check(void) { BUILD_BUG_ON(!CARL9170_TX_STATUS_NUM); - BUILD_BUG_ON(CARL9170_USB_WATCHDOG_TRIGGER_THRESHOLD < 2); BUILD_BUG_ON(CARL9170_INTF_NUM < 1); + BUILD_BUG_ON(CARL9170_INTF_NUM >= AR9170_MAX_VIRTUAL_MAC); #ifdef CONFIG_CARL9170FW_HANDLE_BACK_REQ BUILD_BUG_ON(!CONFIG_CARL9170FW_BACK_REQS_NUM);