diff options
author | Andriy Voskoboinyk <avos@FreeBSD.org> | 2016-04-29 22:14:11 +0000 |
---|---|---|
committer | Andriy Voskoboinyk <avos@FreeBSD.org> | 2016-04-29 22:14:11 +0000 |
commit | a061fea6eeb689ab01affff1350cc47beb4a0ce5 (patch) | |
tree | d5493e2c620a2478b160e46203a8b64047ba2651 /sys/dev/ral | |
parent | 31b6732008aecf43421f7e5dcf15fa8b3a117677 (diff) | |
download | src-a061fea6eeb689ab01affff1350cc47beb4a0ce5.tar.gz src-a061fea6eeb689ab01affff1350cc47beb4a0ce5.zip |
net80211 + drivers: hide size of 'bands' array behind a macro.
Auto-replace 'howmany(IEEE80211_MODE_MAX, 8)' with 'IEEE80211_MODE_BYTES'.
No functional changes.
Notes
Notes:
svn path=/head/; revision=298818
Diffstat (limited to 'sys/dev/ral')
-rw-r--r-- | sys/dev/ral/rt2560.c | 2 | ||||
-rw-r--r-- | sys/dev/ral/rt2661.c | 2 | ||||
-rw-r--r-- | sys/dev/ral/rt2860.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ral/rt2560.c b/sys/dev/ral/rt2560.c index 5ac753ca299c..b8a92f4a875a 100644 --- a/sys/dev/ral/rt2560.c +++ b/sys/dev/ral/rt2560.c @@ -199,7 +199,7 @@ rt2560_attach(device_t dev, int id) { struct rt2560_softc *sc = device_get_softc(dev); struct ieee80211com *ic = &sc->sc_ic; - uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; + uint8_t bands[IEEE80211_MODE_BYTES]; int error; sc->sc_dev = dev; diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c index 2e9ceeca894c..9bf3ceee073b 100644 --- a/sys/dev/ral/rt2661.c +++ b/sys/dev/ral/rt2661.c @@ -199,7 +199,7 @@ rt2661_attach(device_t dev, int id) struct rt2661_softc *sc = device_get_softc(dev); struct ieee80211com *ic = &sc->sc_ic; uint32_t val; - uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; + uint8_t bands[IEEE80211_MODE_BYTES]; int error, ac, ntries; sc->sc_id = id; diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c index c50c14d3bc9e..bcd276ea8774 100644 --- a/sys/dev/ral/rt2860.c +++ b/sys/dev/ral/rt2860.c @@ -232,7 +232,7 @@ rt2860_attach(device_t dev, int id) struct rt2860_softc *sc = device_get_softc(dev); struct ieee80211com *ic = &sc->sc_ic; uint32_t tmp; - uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; + uint8_t bands[IEEE80211_MODE_BYTES]; int error, ntries, qid; sc->sc_dev = dev; |