carl9170 firmware: check virtual interface no. range
authorChristian Lamparter <chunkeey@googlemail.com>
Wed, 18 Aug 2010 20:53:50 +0000 (22:53 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 18 Aug 2010 20:53:50 +0000 (22:53 +0200)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/include/config.h

index ac74cbc0e6df30f2193199e4f357be3010ad0805..f9f093e564968ec4065e5e5a48743502ed7b86dc 100644 (file)
@@ -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);