X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fconfig.h;h=8361affbdbaa0968fb81d849e4bb0a9963600b64;hb=f064ea52ed3ab342b7f2d31ac88239ceac5bc214;hp=ac74cbc0e6df30f2193199e4f357be3010ad0805;hpb=95e0b3d5f76e191546422c4dbb7afd2ad679ff8d;p=carl9170fw.git diff --git a/carlfw/include/config.h b/carlfw/include/config.h index ac74cbc..8361aff 100644 --- a/carlfw/include/config.h +++ b/carlfw/include/config.h @@ -19,12 +19,11 @@ #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 @@ -62,6 +61,7 @@ static inline void __config_check(void) { BUILD_BUG_ON(!CARL9170_TX_STATUS_NUM); 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);