svn commit: r309486 - head/sys/dev/rtwn
Andriy Voskoboinyk
avos at FreeBSD.org
Sat Dec 3 17:27:11 UTC 2016
Author: avos
Date: Sat Dec 3 17:27:10 2016
New Revision: 309486
URL: https://svnweb.freebsd.org/changeset/base/309486
Log:
rtwn: fix bitmap size calculation.
Tested with RTL8188CE, STA mode.
Modified:
head/sys/dev/rtwn/if_rtwnvar.h
Modified: head/sys/dev/rtwn/if_rtwnvar.h
==============================================================================
--- head/sys/dev/rtwn/if_rtwnvar.h Sat Dec 3 17:17:42 2016 (r309485)
+++ head/sys/dev/rtwn/if_rtwnvar.h Sat Dec 3 17:27:10 2016 (r309486)
@@ -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];
More information about the svn-src-all
mailing list