Date: Sat, 3 Dec 2016 17:27:10 +0000 (UTC) From: Andriy Voskoboinyk <avos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309486 - head/sys/dev/rtwn Message-ID: <201612031727.uB3HRAak015530@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612031727.uB3HRAak015530>