diff options
author | damien <damien@FreeBSD.org> | 2005-10-07 18:11:32 +0000 |
---|---|---|
committer | damien <damien@FreeBSD.org> | 2005-10-07 18:11:32 +0000 |
commit | 0c7db07fc76d67e41e4b04990362c9abf413627f (patch) | |
tree | 024647f58fd1aae830dcde6649e9bea4b11baa89 /sys | |
parent | 788a71efcfbc2eeb07a22892ddd7d2ec7d9ced52 (diff) | |
download | FreeBSD-src-0c7db07fc76d67e41e4b04990362c9abf413627f.zip FreeBSD-src-0c7db07fc76d67e41e4b04990362c9abf413627f.tar.gz |
Fixes my previous commit (rev 1.20)
MFC after: 1 day
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 6615e15..be302b4 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -2276,7 +2276,7 @@ iwi_set_chan(struct iwi_softc *sc, struct ieee80211_channel *chan) struct iwi_scan scan; memset(&scan, 0, sizeof scan); - memset(scan.type, 26, IWI_SCAN_TYPE_PASSIVE); + memset(scan.type, IWI_SCAN_TYPE_PASSIVE, sizeof scan.type); scan.passive = htole16(2000); scan.channels[0] = 1 | (IEEE80211_IS_CHAN_5GHZ(chan) ? IWI_CHAN_5GHZ : IWI_CHAN_2GHZ); @@ -2298,10 +2298,10 @@ iwi_scan(struct iwi_softc *sc) if (ic->ic_des_esslen != 0) { scan.bdirected = htole16(sc->dwelltime); - memset(scan.type, 26, IWI_SCAN_TYPE_BDIRECTED); + memset(scan.type, IWI_SCAN_TYPE_BDIRECTED, sizeof scan.type); } else { scan.broadcast = htole16(sc->dwelltime); - memset(scan.type, 26, IWI_SCAN_TYPE_BROADCAST); + memset(scan.type, IWI_SCAN_TYPE_BROADCAST, sizeof scan.type); } p = scan.channels; |