From: Christian Lamparter Date: Wed, 18 Aug 2010 20:53:50 +0000 (+0200) Subject: carl9170 firmware: check virtual interface no. range X-Git-Tag: 1.8.7~4 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=e03f20f46f3019d604d91cde16d833c4f1937a58 carl9170 firmware: check virtual interface no. range Signed-off-by: Christian Lamparter --- diff --git a/carlfw/include/config.h b/carlfw/include/config.h index ac74cbc..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 @@ -62,6 +63,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);