diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-09-22 02:52:05 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-09-23 08:59:54 -0400 |
commit | f80c2d12e51845c3a697e9ce9d8a98287f1aae38 (patch) | |
tree | 8de53fa6d9a15cab81967515a14c1e90bc091382 /drivers/net/wireless/wl12xx/main.c | |
parent | af7fbb28efff0c0d8fc0852ad6622e5437a7611e (diff) |
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 384ba1944396..a51dd0ed6d2d 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -4722,6 +4722,8 @@ struct ieee80211_hw *wl1271_alloc_hw(void) | |||
4722 | int i, j, ret; | 4722 | int i, j, ret; |
4723 | unsigned int order; | 4723 | unsigned int order; |
4724 | 4724 | ||
4725 | BUILD_BUG_ON(AP_MAX_LINKS > WL12XX_MAX_LINKS); | ||
4726 | |||
4725 | hw = ieee80211_alloc_hw(sizeof(*wl), &wl1271_ops); | 4727 | hw = ieee80211_alloc_hw(sizeof(*wl), &wl1271_ops); |
4726 | if (!hw) { | 4728 | if (!hw) { |
4727 | wl1271_error("could not alloc ieee80211_hw"); | 4729 | wl1271_error("could not alloc ieee80211_hw"); |