From 4786190d2fe3540acd233f2e6c3973e45f229c64 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Sat, 3 Dec 2016 17:27:10 +0000 Subject: [PATCH] rtwn: fix bitmap size calculation. Tested with RTL8188CE, STA mode. --- sys/dev/rtwn/if_rtwnvar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/rtwn/if_rtwnvar.h b/sys/dev/rtwn/if_rtwnvar.h index 80c7f4c45418..a7d2db924621 100644 --- a/sys/dev/rtwn/if_rtwnvar.h +++ b/sys/dev/rtwn/if_rtwnvar.h @@ -207,8 +207,8 @@ struct rtwn_softc { int vaps_running; int monvaps_running; - uint16_t next_rom_addr; - uint8_t keys_bmap[roundup2(RTWN_CAM_ENTRY_LIMIT, NBBY)]; + uint16_t next_rom_addr; + uint8_t keys_bmap[howmany(RTWN_CAM_ENTRY_LIMIT, NBBY)]; struct rtwn_vap *vaps[RTWN_PORT_COUNT]; struct ieee80211_node *node_list[RTWN_MACID_LIMIT];