From e03f20f46f3019d604d91cde16d833c4f1937a58 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Wed, 18 Aug 2010 22:53:50 +0200 Subject: [PATCH] carl9170 firmware: check virtual interface no. range Signed-off-by: Christian Lamparter --- carlfw/include/config.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.31.1