X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Finclude%2Fconfig.h;h=739c0dadd1da495ac37bb067b4ed89e30d8af6fe;hp=8361affbdbaa0968fb81d849e4bb0a9963600b64;hb=484cb254482ee644cc2981d1e2753fca2718bcd3;hpb=fe6d57701d3ccdce08123b467c43176d20795886 diff --git a/carlfw/include/config.h b/carlfw/include/config.h index 8361aff..739c0da 100644 --- a/carlfw/include/config.h +++ b/carlfw/include/config.h @@ -31,9 +31,9 @@ # error "See: http://gcc.gnu.org/gcc-4.4/changes.html / Caveats No. 4" #endif -#if ((defined CONFIG_CARL9170FW_PRINTF) && \ - (!defined CONFIG_CARL9170FW_DEBUG_USB) && \ - (!defined CONFIG_CARL9170FW_DEBUG_UART)) +#if ((defined CONFIG_CARL9170FW_PRINTF) && \ + (!defined CONFIG_CARL9170FW_DEBUG_USB) && \ + (!defined CONFIG_CARL9170FW_DEBUG_UART)) # warning "You have disabled all debug message transports." # warning "However CONFIG_CARL9170FW_PRINTF is still set..." # warning "Which is a waste of firmware space, if you ask me." @@ -52,8 +52,10 @@ #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)) + (defined CONFIG_CARL9170FW_LOOPBACK)) #define CARL9170FW_UNUSABLE y #endif @@ -62,10 +64,6 @@ 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); -#endif /* CONFIG_CARL9170FW_HANDLE_BACK_REQ */ } #endif /* __CARL9170FW_CONFIG_H */