mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:01:05 +02:00
madwifi: fix compiler warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17221 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
08b4be02d2
commit
a9f2903064
@ -12,7 +12,7 @@
|
|||||||
KASSERT(c->ic_ieee < IEEE80211_CHAN_MAX,
|
KASSERT(c->ic_ieee < IEEE80211_CHAN_MAX,
|
||||||
("channel with bogus ieee number %u", c->ic_ieee));
|
("channel with bogus ieee number %u", c->ic_ieee));
|
||||||
setbit(ic->ic_chan_avail, c->ic_ieee);
|
setbit(ic->ic_chan_avail, c->ic_ieee);
|
||||||
+ ic->ic_max_txpower = max(ic->ic_max_txpower, (u16) c->ic_maxpower * 2);
|
+ ic->ic_max_txpower = max(ic->ic_max_txpower, (u16) (c->ic_maxpower * 2));
|
||||||
|
|
||||||
if (c->ic_scanflags & IEEE80211_NOSCAN_DEFAULT)
|
if (c->ic_scanflags & IEEE80211_NOSCAN_DEFAULT)
|
||||||
c->ic_scanflags |= IEEE80211_NOSCAN_SET;
|
c->ic_scanflags |= IEEE80211_NOSCAN_SET;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user