christos
05f07448b6
Another possibly uninitialized lasttx
2003-10-26 19:11:33 +00:00
christos
93af726cde
Don't return random garbage in the default case; return the smallest ring
...
descriptor instead.
2003-10-26 18:20:43 +00:00
fvdl
e645b8b032
Add definitions for 8139C+ and 8169 chips. Not used yet. From FreeBSD.
2003-10-25 23:48:45 +00:00
christos
9269644881
Fix uninitialized variable warning.
2003-10-25 21:33:04 +00:00
christos
d2705ee1d2
make this compile again. I should really rename the FreeBSD KASSERT to
...
KASSERT2 or something.
2003-10-25 21:32:44 +00:00
christos
987510aee5
KASSERT takes 2 arguments here.
2003-10-25 19:41:44 +00:00
christos
b3ae88ff5d
Fix uninitialized variable warning.
2003-10-25 19:12:08 +00:00
christos
8bfd5e3292
Fix uninitialized variable warnings
2003-10-25 18:34:14 +00:00
simonb
7e135f3a2e
Make this compile with older gcc.
2003-10-25 13:45:07 +00:00
christos
21027e6048
more uninitialized variables
2003-10-25 08:37:00 +00:00
christos
551bd8b829
fix uninitialized variables
2003-10-25 08:30:46 +00:00
mycroft
f253f37fb0
In wi_newstate(), read the BSSID into a temporary buffer that has guaranteed
...
alignment. Fixes a really obscure failure mode on Alpha, and panics on other
machines.
2003-10-24 23:58:22 +00:00
briggs
7dc8540d52
Avoid a race condition that could allow a removable controller (such as
...
a compact flash card) to lock the atabus thread if it gets detached during
the probe process.
2003-10-22 23:59:00 +00:00
christos
ddccf85c50
support for NE2000_TYPE_AX88790 from
...
Yong-Jhen Hong yongjhen at alqualonde dot org
2003-10-22 00:12:36 +00:00
simonb
7feb1a91fa
Remove return after panic().
2003-10-21 06:22:16 +00:00
yamt
65995a9aa2
don't swap powerhook and shutdownhook.
2003-10-21 01:00:57 +00:00
fvdl
5f1e7fa5f8
Correct NULL abuse.
2003-10-21 00:57:47 +00:00
fvdl
86c363960e
Correct NULL abuse.
2003-10-21 00:25:59 +00:00
dyoung
ab4a574ce1
Don't take the 802.11 header off of a frame until after we've given
...
it to the driver's BPF tap.
2003-10-19 22:00:54 +00:00
simonb
9833c17169
Remove some unreachable code with the comment "To shut up compiler"
...
that neither gcc 2.95.3 or 3.3.1 complains about if that bit of code
is missing...
2003-10-19 01:49:03 +00:00
simonb
59fb31d7cc
Remove unreachable break after return and goto statements.
2003-10-19 01:44:48 +00:00
tsutsui
fd5c63296f
Fix some attach messages for new ahc(4).
2003-10-18 07:44:51 +00:00
dyoung
5dca575ce1
ieee80211_newstate() wants for ic->ic_state to equal the previous
...
state, so do not update ic->ic_state in wi_newstate() before calling
ieee80211_newstate(). Instead, update ic->ic_state when we do not
let ieee80211_newstate() run.
2003-10-17 03:58:23 +00:00
dyoung
d531221c67
Prepare for wi rate adaptation. Add wi_write_txrate, which only
...
writes a hardware register when the data rate selection actually
changes. Add wi_cfg_txrate, which writes the data rate selection
regardless.
Name some fields in the wi Tx buffer which we will use for rate
adaptation.
Name the Prism "Alternate Retry Count" RID, WI_RID_ALT_RETRY_COUNT.
2003-10-16 10:57:35 +00:00
dyoung
50daf0a217
The upper & lower bounds on wi RSSI are completely bogus, AFAICT.
2003-10-16 10:38:07 +00:00
dyoung
7c0b454d52
Cosmetic change: shorten 6 lines to 2.
2003-10-16 10:04:14 +00:00
dyoung
1ff3c191c9
Fix WEP transmission, too. From FreeBSD/Sam Leffler.
2003-10-16 09:31:08 +00:00
dyoung
bcde77e394
ath(4) failed to detect when the number of DMA segments exceeded
...
the number of descriptors, because of a disparity between the
bus_dmamap_load_mbuf implementation in FreeBSD and NetBSD. Now I
cover up the difference using ath_dmamap_load_mbuf.
Thanks Enami Tsugutomo for diagnosing this.
2003-10-16 09:13:30 +00:00
ichiro
581dfca276
add {shutdownhook,powerhook}disestablish()
2003-10-16 07:55:18 +00:00
itojun
a4a1466cb5
add $NetBSD$
2003-10-15 23:23:39 +00:00
enami
73473f6883
Return 0 on SIOC{ADD,DEL}MULTI.
2003-10-15 22:41:22 +00:00
itojun
d587f445de
s/printf/DPRINTF/ for ath_rate_ctl()
2003-10-15 22:19:31 +00:00
bouyer
70b50b0608
Make sure chp->atabus is initialised, and wakeup the right address when
...
shutting down the kernel thread.
2003-10-15 20:29:26 +00:00
bouyer
ea6912c52d
- don't ignore last bit when checking for floating bus value on slave
...
device; some ATAPI devices as master will report 0x7f in all registers
for slave before reset
- For the same reason, remove the er1 check.
Makes slave device with a "strange" ATAPI master probe again.
Problem reported and fix tested by Gary Duzan on current-users.
2003-10-15 20:26:33 +00:00
bouyer
3d6919754d
Clear chp->ch_drive[i].drive_flags if we didn't find a driver for the
...
drive.
2003-10-15 19:54:30 +00:00
dyoung
e86c830f2a
Fix WEP reception.
2003-10-15 11:40:07 +00:00
simonb
662c7128cd
Re-order a little so that there's no unreachable code in this block.
2003-10-15 07:18:17 +00:00
enami
8823a8da9a
Port multicast handling to NetBSD. Addresses PR23151.
2003-10-15 03:04:03 +00:00
dyoung
f2a9708c75
Do not index arrays using enum constants, since enums can be
...
re-ordered and extended. Instead, use a switch-statement or a
key->value table with appropriate bounds-checking.
2003-10-14 23:13:44 +00:00
ichiro
f4f7b1ae5c
add support ath on cardbus
...
- implement power management
2003-10-14 17:47:03 +00:00
dyoung
031c2c9baa
Why don't I make up my mind? No need to left-shift the country
...
codes when I right-shift the country-code register! Fixes a bug
reported by Dan Carosone: regulatory domain "ETSI" registered as
domain "Spain/Other", so he could only tune channels 10 and 11.
2003-10-13 16:35:49 +00:00
dyoung
2295b27590
Install athioctl.h, defining ioctls for Atheros 802.11a/b/g radios.
2003-10-13 08:29:48 +00:00
dyoung
372fd2b92a
Adapt atw(4) to the new 802.11 layer.
...
Simplify atw_start, atw_newstate.
Synchronize access to atw_start by bracketing the call to
ieee80211_next_scan in atw_next_scan with splnet()/splx().
2003-10-13 08:22:19 +00:00
dyoung
e31cc884ed
Adapt awi(4) to the new 802.11 layer.
2003-10-13 08:10:48 +00:00
dyoung
ef743c64b6
Switch wi(4) to the new 802.11 layer.
2003-10-13 08:07:21 +00:00
dyoung
2459b02669
Switch an(4) to using the header files in the new 802.11 layer.
2003-10-13 06:45:32 +00:00
dyoung
a71225fe22
NetBSD/FreeBSD compatibility changes NetBSD, especially
...
locking, mbuf
2003-10-13 05:34:30 +00:00
dyoung
ae577fc6ea
Miscellaneous changes for NetBSD compatibility.
2003-10-13 05:23:07 +00:00
dyoung
b495f27bbd
A compatibility layer to smooth differences between NetBSD and
...
FreeBSD for ath(4).
XXX Nobody with FreeBSD has signed off on this, so it may change
XXX or go away entirely.
2003-10-13 05:16:20 +00:00
bouyer
c298ea9fc9
Remove block that has been pasted twice. Pointed out by Alexander Yurchenko.
2003-10-12 19:28:50 +00:00