提交 f80c2d12 编写于 作者: A Arik Nemtsov 提交者: Luciano Coelho

wl12xx: correct fw_status structure for 8 sta support in AP-mode

Fix an erroneous labeling of array boundaries in the fw_status structure.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NArik Nemtsov <arik@wizery.com>
Signed-off-by: NLuciano Coelho <coelho@ti.com>
上级 af7fbb28
...@@ -4722,6 +4722,8 @@ struct ieee80211_hw *wl1271_alloc_hw(void) ...@@ -4722,6 +4722,8 @@ struct ieee80211_hw *wl1271_alloc_hw(void)
int i, j, ret; int i, j, ret;
unsigned int order; unsigned int order;
BUILD_BUG_ON(AP_MAX_LINKS > WL12XX_MAX_LINKS);
hw = ieee80211_alloc_hw(sizeof(*wl), &wl1271_ops); hw = ieee80211_alloc_hw(sizeof(*wl), &wl1271_ops);
if (!hw) { if (!hw) {
wl1271_error("could not alloc ieee80211_hw"); wl1271_error("could not alloc ieee80211_hw");
......
...@@ -138,7 +138,7 @@ extern u32 wl12xx_debug_level; ...@@ -138,7 +138,7 @@ extern u32 wl12xx_debug_level;
#define WL1271_DEFAULT_DTIM_PERIOD 1 #define WL1271_DEFAULT_DTIM_PERIOD 1
#define WL12XX_MAX_ROLES 4 #define WL12XX_MAX_ROLES 4
#define WL12XX_MAX_LINKS 8 #define WL12XX_MAX_LINKS 12
#define WL12XX_INVALID_ROLE_ID 0xff #define WL12XX_INVALID_ROLE_ID 0xff
#define WL12XX_INVALID_LINK_ID 0xff #define WL12XX_INVALID_LINK_ID 0xff
...@@ -279,7 +279,7 @@ struct wl12xx_fw_status { ...@@ -279,7 +279,7 @@ struct wl12xx_fw_status {
/* Cumulative counter of released Voice memory blocks */ /* Cumulative counter of released Voice memory blocks */
u8 tx_voice_released_blks; u8 tx_voice_released_blks;
u8 padding_1[7]; u8 padding_1[3];
__le32 log_start_addr; __le32 log_start_addr;
} __packed; } __packed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册