Commit Graph

137956 Commits

Author SHA1 Message Date
dyoung 7bcee8c697 Do not build AP support if 'options IEEE80211_NO_HOSTAP' is in the
kernel configuration.
2005-06-26 04:37:25 +00:00
dyoung 9a7ebfdde9 Add some debug messages to ieee80211_notify_node_{join,leave}.
Change the way we walk 802.11 peers/clients: for each eligible
interface, walk the ic_sta (peers/clients) table, first; walk the
ic_scan (scan results) table, second; then visit the ic_bss (node
for the network joined/created by the interface).
2005-06-26 04:34:43 +00:00
dyoung 74988b0f25 Do not build AP support if 'options IEEE80211_NO_HOSTAP'. I will
use this in the INSTALL kernel to save some space.
2005-06-26 04:31:51 +00:00
fair 762e4993e8 The Cyrix cs5530 PCI host bridge does not have a broken latch on the i8254
clock core, unlike its predecessors the cs5510 and cs5520.

This reverses the setting from i386/1386/identcpu.c where it argueably should
not have been set in the first place, as argued in PR kern/25261

XXX One other thing: the i8254 latch compensation code is only found in
i386/isa/clock.c and NOT in i386/i386/microtime.S where it should also be.
2005-06-26 02:09:59 +00:00
fair 1bffc74f4f More clearly document the amazing lossage of this chip/core in an
expanded BUGS section. Sprinkle more mdoc macros in appropriate
places.
2005-06-26 01:50:52 +00:00
christos b2c412f190 pass the real code to trace_exit not the translated one, so that kdump
knows this is a mach syscall.
2005-06-25 23:25:51 +00:00
christos 82700d5ef5 start implementing the missing code. 2005-06-25 23:25:09 +00:00
dyoung 7a7b273b60 Don't include files.ath any more, it's disappeared. 2005-06-25 23:09:54 +00:00
dyoung 6a0e52d84e Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now.  Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.
2005-06-25 22:08:54 +00:00
elad 03d49eb07f From provos, via OpenBSD:
Prevent dereferencing possibly freed pointer.
2005-06-25 21:48:11 +00:00
bouyer 61f82d5486 Write the station address using 8-bits writes instead of 16-bits.
This is what the linux driver does, and makes the DGE-550T work without the
STGE_CU_BUG hack. So remove the STGE_CU_BUG hack.
Set bit 0x0020 in STGE_DebugCtrl too, the linux driver does it (the comments
note this as a workaround, without more details. This doesn't seem to make
things worse).
Also initialize STGE_RxDMABurstThresh and STGE_RxDMAUrgentThresh, using
values from the linux driver.

Approved by Jason Thorpe.
2005-06-25 21:43:38 +00:00
rpaulo 71901faf8f Mention PTYFS under the file-systems section and bump date.
Ok'ed by Christos Zoulas and reviewed by Thomas Klausner.
2005-06-25 19:07:04 +00:00
wiz c6e79dc331 Avoid marking up brackets. 2005-06-25 18:55:29 +00:00
elad 5cd24996d5 From marius@openbsd: (PR 3140)
If a string considered a filename is too long, don't exit but just let the
syscall fail, it might not actually be a filename.
2005-06-25 18:51:03 +00:00
elad b53ff10682 From rohee@openbsd:
Use strlcpy() instead of snprintf() where possible.
2005-06-25 18:47:42 +00:00
christos ef57f1b2d4 be a little smarter about fast traps. 2005-06-25 18:45:44 +00:00
bouyer acd358ae3d Use the time provided by the hypervisor instead of our global time variable
for xen_microtime(). This match more closely what is done on a real i386
(where we read the RTC), and seems to fix gettimeofday() sometime going
backward by several seconds for me.
2005-06-25 18:44:59 +00:00
elad ddb0410ecc From deraadt@openbsd:
Wrap bind() to AF_UNIX with umask() to avoid race.
2005-06-25 18:41:30 +00:00
kent d091e19a34 - free all of allocated resources when an error occurs
- code cleanup
2005-06-25 16:32:39 +00:00
christos 671011e703 Simplify and fix the case where we have both known and unknown flags. 2005-06-25 14:37:33 +00:00
elad 8b57c1a70c Add translation for mmap()'s prot values. 2005-06-25 12:53:32 +00:00
elad cc0def8774 Add translation for mprotect()'s prot values. 2005-06-25 12:22:43 +00:00
elad 4d20624823 Improve readability. Order syscalls, add numbers where possible. 2005-06-25 12:17:57 +00:00
rpaulo 64fd052c74 Add file-system PTYFS (commented out) so that people know its existence.
Ok'ed by Christos Zoulas and Hubert Feyrer.
2005-06-25 12:05:15 +00:00
christos 4fdef695f7 the siginfo trap codes are mi. 2005-06-25 08:29:15 +00:00
christos 7a55962329 the exception numbers are MI. 2005-06-25 08:28:34 +00:00
christos c2e3be8566 - Recognize both darwin and mach emulations as valid.
- Use KSI_INIT_TRAP to initialize the trap.
2005-06-25 07:46:01 +00:00
dyoung 256aff6693 Teach route(8) to print the messages generated by net80211. 2005-06-25 06:38:35 +00:00
christos f63c68071c minor refactoring; does not work on the i386 yet. 2005-06-25 06:30:19 +00:00
christos e6c16a46dc move ppc commpage stuff here. 2005-06-25 06:29:49 +00:00
christos 16d6b062e3 move stack somewhere where it is mappable, and add defines for i386 commpage. 2005-06-25 06:29:16 +00:00
riz 67399f088e Use %zx in a format string to print a size_t, not %lx, so a kernel
with KSYMS_DEBUG will compile.
2005-06-25 05:30:04 +00:00
fair 1adffc6d99 According to FreeBSD and other references, the cs5530 IDE controller,
while capable of UDMA mode 2, is swamped if you actually go that
fast, which is not good for the other functions on this multifunction
southbridge chip, so limit UDMA to mode 1.
2005-06-25 05:04:01 +00:00
dyoung f3574e6c00 Let ieee80211_input do WEP-decapsulation.
Make iwi(4) provide a key-allocator that returns valid indices for
the four global keys.  Now net80211 should let the h/w do WEP
encryption/decryption.
2005-06-25 04:02:45 +00:00
dyoung 23304515e7 Bug fix: fix WEP by managing keys & crypto in the style of the new
net80211.  It was especially important to zero the IEEE80211_F_DROPUNENC
(discard unencrypted packets) flag in operating modes where the
firmware decrypts for us.  Otherwise, the 802.11 layer discarded
all received frames.  See wi_mend_flags.  From FreeBSD, with
improvements by me.

For better compliance with the "net80211 way":
set sc_cnfauthmode from ic->ic_bss->ni_authmode.  Enter
the RUN state through ieee80211_create_ibss instead of
ieee80211_new_state(IEEE80211_S_RUN).  To sync BSSID in ad hoc
mode, use ieee80211_sta_join() instead of
ieee80211_new_state(IEEE80211_S_RUN).  From FreeBSD.

Configure the firmware to obey IEEE80211_F_DROPUNENC.

As we change to state RUN in STA mode, generate a link-status
message on the routing socket with a call to ieee80211_notify_node_join()
instead of calling rt_ifmsg directly.

Run normal net80211 processing (ieee80211_newstate) on the ->RUN
transition.
2005-06-25 03:56:53 +00:00
dyoung 133d421bca Cosmetic: join lines. 2005-06-25 03:41:50 +00:00
christos 0064ddfe2b the magic number is not byte-swapped. 2005-06-25 02:22:57 +00:00
christos 5ae508513d - include <sys/wait.h> so that this compile
- use the code field directly, instead of redoing the logic.
- XXX: the status field must be wrong. I think that the _WSTATUS()
  should not be used directly.
2005-06-25 02:19:06 +00:00
fair 92a7e38b60 document more precisely the Cyrix TSC lossage: if you execute "hlt"
when in powersave mode, the TSC stops counting!
2005-06-25 00:08:35 +00:00
hubertf 6912ea355e it is iso8859, not 8869 2005-06-24 23:35:06 +00:00
christos 250ff65369 Const poisoning. 2005-06-24 23:21:09 +00:00
manu d83c516040 More accurate SIGCHLD code and status for siginfo 2005-06-24 22:57:05 +00:00
seb 716f8f5ee2 Regen. 2005-06-24 21:41:16 +00:00
seb af3a92ca00 Add Texas Instruments PCI6515A Cardbus Controller with Smart Card Controller.
Approved by gimpy@
2005-06-24 21:39:25 +00:00
soda d7d417394c mark 2.0.2 as "security/critical release" instead of "patch release" like 1.X.Y,
as described in http://www.netbsd.org/Releases/release-map.html
2005-06-24 20:59:38 +00:00
soda b1347f76b4 NetBSD 1.4 branch was EOL'ed, announced on 2002-09-22
NetBSD 1.5 branch was EOL'ed, announced on 2005-01-26
NetBSD 2.0.2, 2005-04-14
2005-06-24 19:29:49 +00:00
soda 2a362e2a6a Sync w/ FreeBSD v1.94.
DragonFly 1.2.0, FreeBSD 5.4, MacOS 10.4, OpenBSD 3.7, etc.
2005-06-24 19:28:28 +00:00
rpaulo 11513c6341 Mention ASIX AX88140A/AX88141 support under tlp(4).
Ok'ed by Hubert Feyrer.
2005-06-24 17:06:52 +00:00
rpaulo 27b63578ab Mention ASIX AX88140A and AX88141 and add me as the author
of the support for those chipsets.
Bump date.

Reviewed by Thomas Klausner and ok'ed by Hubert Feyrer.
2005-06-24 16:52:46 +00:00
scw 1aea799501 In pmap_devmap_find_pa(), use 64-bit arithmetic to handle the case where
'pa + size' == 0x0. As in, if we're passed details of a region right at
the top of physical address space.

Otherwise we'll likely hit a false-positive due to 32-bit wrap-around.
2005-06-24 15:59:04 +00:00