Sam Leffler
6f3f5a1170
always free node reference when processing a probe request frame; was
...
conditionally doing an unref if operating in adhoc mode which turns
out to be wrong
2004-04-02 23:12:45 +00:00
Sam Leffler
694dca643b
o change ieee80211_dup_bss to inherit explicit data from ic_bss instead of
...
blindy copying the node contents; this turns out to be a bad idea as we
add more state in the node for things like WPA
o track node allocation failures in ieee80211_dup_bss instead of the callers
Obtained from: madwifi
2004-04-02 23:09:24 +00:00
Sam Leffler
c64bfa0f8f
track node allocation failure stats in ieee80211_alloc_node instead
...
of each caller
Obtained from: madwifi
2004-04-02 23:06:41 +00:00
Sam Leffler
410ca74bb8
replace explicit malloc/free with MALLOC/FREE for portability
...
Obtained from: madwifi
2004-04-02 23:02:24 +00:00
Sam Leffler
b4c5a90fee
extract node matching logic into new ieee80211_match_bss routine for use
...
in background/incremental scanning
Obtained from: madwifi
2004-04-02 23:00:30 +00:00
Sam Leffler
849b898054
diff reduction against madwifi
2004-04-02 22:56:09 +00:00
Sam Leffler
a6381c54bb
when processing beacon/probe response frames capture "is probe" in a
...
variable to improve code legibility since we're going to use it more
in forthcoming mods
Obtained from: madwifi
2004-04-02 22:54:07 +00:00
Sam Leffler
4bd067c5a1
add a case of IEEE80211_ELEMID_IBSSPARMS so the statistic on unknown
...
elements is more meaningful (will add more with WPA merge)
Obtained from: madwifi
2004-04-02 22:50:31 +00:00
Sam Leffler
7aa402898f
when doing internal bridging free the node instead of just dropping the
...
reference for consistency (explicit refcounting is discouraged)
Obtained from: madwifi
2004-04-02 22:48:52 +00:00
Sam Leffler
9089c48c13
when receiving a frame w/ a bad version number don't unref the node; the
...
driver is responsible for that
Obtained from: madwifi
2004-04-02 22:47:11 +00:00
Sam Leffler
fce2da8b66
insure basic rate bit is set in derived rate set; this
...
works around a protocol/firmware problem with some versions found
in hermes/prism cards
2004-04-02 20:22:25 +00:00
Sam Leffler
63beab8306
diff reduction against madwifi/p4
2004-04-02 20:19:20 +00:00
Vinod Kashyap
87b320bb72
Moved 3ware 9000 driver (twa) stuff from sys/conf/NOTES to /sys/i386/conf/NOTES.
2004-04-02 18:50:56 +00:00
Daniel Eischen
ab39bc9a92
Unbreak natd.
...
Reported and submitted by: Sean McNeil (sean at mcneil.com)
2004-04-02 17:57:57 +00:00
Dag-Erling Smørgrav
c959700c77
style(9): return foo -> return (foo)
...
also fix a continuation indent I missed in the previous commit.
2004-04-02 16:41:16 +00:00
Dag-Erling Smørgrav
81f58729a1
Clean up whitespace, fix continuation indents, wrap some long lines.
2004-04-02 16:39:12 +00:00
Dag-Erling Smørgrav
4cdc9a643e
Unbreak LINT on 64-bit platforms. Note that this code is not style(9)-
...
compliant, but I'll leave that for someone else.
Noticed by: tinderbox
Pointy hat to: the usual suspects
2004-04-02 15:09:57 +00:00
Ken Smith
34b678a695
Rearrangements needed for syscons(4) to be used as a console device
...
on architectures that need to call cninit() before the machine is
ready to support mutexes (required by make_dev()).
- Remove make_dev() call from scinit() when flags indicate
unit is the system console, rely on sc_attach_unit() to
handle it.
- When trying to access current screen's status (scr_stat
structure) use the static one provided for the initial
system console if no dev_t is available.
- When calling make_dev() in sc_attach_unit() catch special
case of system's initial console and set up dev_t structure
to include pointer to console's scr_stat struct.
Reviewed by: marcel
Tested by: marcel, grehan (ppc), others on current@
Approved by: rwatson (mentor)
2004-04-02 15:02:44 +00:00
Marcel Moolenaar
4e55f7230a
In ns8250_putc() insert a barrier between writing the character and
...
checking for transmitter empty.
2004-04-02 07:37:28 +00:00
Marcel Moolenaar
16283d130f
Allow the selection of a debug port with hw.uart.dbgport. Unlike
...
other architectures (like ia64), the variable has to be set to
an OpenFirmware device name.
2004-04-02 07:33:35 +00:00
Marcel Moolenaar
af81ff3f49
Call kbd_attach() only when KBD_INSTALL_CDEV is enabled as the function
...
is only defined in that case.
2004-04-02 05:59:06 +00:00
Kris Kennaway
c5af600675
Add missing comment terminator.
2004-04-02 04:57:40 +00:00
Julian Elischer
4f73277a35
The comment complained about not having a thread_unlink()
...
and did the work itself, but thread_unink() has existed for a while... use it.
2004-04-02 01:01:34 +00:00
Robert Watson
445a8f0348
For now, restore an splx(s) I removed when introducing slisunitfree().
2004-04-01 23:54:49 +00:00
Alfred Perlstein
e5ff40f0ca
Fix booting with ps2 keyboards.
2004-04-01 21:48:31 +00:00
John Baldwin
e43257aa7d
Finish fixing up Alpha to work with an MP safe ptrace():
...
- ptrace_single_step() is no longer called with the proc lock held, so
don't try to unlock it and then relock it.
- Push Giant down into proc_rwmem() instead of forcing all the consumers
(including Alpha breakpoint support) to explicitly wrap calls to
proc_rwmem() with Giant.
Tested by: kensmith
2004-04-01 20:56:44 +00:00
Julian Elischer
10030054ac
Do the looping retry trick in the first operation to try to talk
...
with the device, not the second..
Submitted by: ticso@cicely12.cicely.de
2004-04-01 18:55:28 +00:00
Dag-Erling Smørgrav
9a02a2f5ed
Fix style issues in twa lines added in rev 1.878.
2004-04-01 17:55:50 +00:00
Dag-Erling Smørgrav
7cfcb873b5
Comment out the au88x0 line which was inadvertantly included in the
...
previous commit.
2004-04-01 17:53:04 +00:00
Yoshihiro Takahashi
a8c6f0ac9c
The twa device and related options are not needed.
2004-04-01 14:23:41 +00:00
SUZUKI Shinsuke
b5676acff4
UDP checksum is mandatory in IPv6 (RFC2460 p.28)
...
Obtained from: KAME
2004-04-01 13:48:23 +00:00
Ruslan Ermilov
ba7bc837d0
Moved the statistical counter under hw.ste.rxsyncs.
...
Suggested by: njl
2004-04-01 12:55:38 +00:00
Dag-Erling Smørgrav
7eb17244fa
Move twa from files.i386 to files. This unbreaks LINT on !i386.
...
Pointy hat to: vkashyap, ps
2004-04-01 10:02:50 +00:00
Dag-Erling Smørgrav
387a06e15b
Back out 1.188 (major number for twa). The twa driver does not need it.
...
Pointy hat to: ps
2004-04-01 10:00:04 +00:00
Peter Grehan
6611d6692f
Match the specific MPC106 host bridge PCI ID rather than all
...
generic host bridges: this avoids a race with the UniNorth
generic match.
2004-04-01 07:34:36 +00:00
Scott Long
cd587b1397
Don't print out 'GIANT-LOCKED' for INTR_FAST drivers.
2004-04-01 07:18:42 +00:00
Nate Lawson
5eb09c7066
Move the ivar accessing routines back to inlines (reverting acpivar.h
...
rev 1.44 and acpi.c rev 1.96). Now gcc can handle larger inlines and we
really need external drivers to be able to read their acpi ivars.
2004-04-01 04:21:33 +00:00
Peter Grehan
ae33b79b67
Move the name attribute to the end of the conftxt line to simplify
...
libdisk parsing (the name may be empty, or contain spaces).
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
2004-04-01 01:33:37 +00:00
Sam Leffler
2f1ad18b34
radiotap updates:
...
o force little-endian byte order for header
o pad header to 32-bit boundary to guard against applications that assume
packet data alignment
2004-04-01 00:38:45 +00:00
Sam Leffler
8d798b52fd
correct xmit-side radiotap collection by tap'ing the frame before
...
prepending the h/w header
2004-04-01 00:33:33 +00:00
Pawel Jakub Dawidek
2fc0588da2
Remove sysctl kern.ps_argsopen, it is not very useful, one should use
...
security.bsd.see_other_uids instead.
Discussed with: phk, rwatson
2004-04-01 00:10:45 +00:00
Pawel Jakub Dawidek
5e2c0c0b0e
Remove ps_argsopen check. It is was bogus in the past and was corrected
...
not quite well by me - if kern.ps_argsopen was set to 0, users weren't
permitted to see arguments of even own processes.
But kern.ps_argsopen is going away, so just remove this check and leave
security checks for p_cansee() function.
2004-04-01 00:08:20 +00:00
Pawel Jakub Dawidek
c5b7c33bc8
Remove ps_argsopen from this check, because of two reasons:
...
1. This check if wrong, because it is true by default
(kern.ps_argsopen is 1 by default) (p_cansee() is not even checked).
2. Sysctl kern.ps_argsopen is going away.
2004-04-01 00:04:23 +00:00
Robert Watson
2168debca9
Abstract "is a particular SLIP unit free" check behind slisunitfree(),
...
and use that instead of manual list searches in a couple of places.
2004-03-31 22:59:56 +00:00
Luigi Rizzo
5d4ca75e56
Fix a bug with preloaded image -- for some reason [that i don't
...
completely understand], md_takeroot() runs before md_preloaded(),
rendering both useless.
As a fix, move the body (effectively one line!) of md_takeroot()
into md_preloaded(), and get rid of the stuff that has become useless.
Bug and fix reported 10 days ago on -current, no reply.
2004-03-31 21:48:02 +00:00
Dag-Erling Smørgrav
e271f829b8
Raise WARNS level to 2.
2004-03-31 21:33:55 +00:00
Dag-Erling Smørgrav
2871c50186
Deal with aliasing warnings.
...
Reviewed by: ru
Approved by: silence on the lists
2004-03-31 21:32:58 +00:00
Ruslan Ermilov
065566e6a3
Under a heavy RX load, at least with D-Link DFE-550TX adapters,
...
the driver's RX ring head may fall behind the chip, causing the
stuck traffic, disordered packets, etc. Work around this by
adopting the technique of resyncing RX head used in dc(4) and
xl(4) drivers, but do it in a slightly different place to reduce
the number of resyncs needed.
Also, set the NIC's RX polling period to a more meaningful value,
to stop overloading the PCI bus (this also reduces the number of
resyncs by a factor of 3 or more in a long run; the actual number
is very dependent on a nature of the traffic).
Maintain the statistics counter as the hw.ste_rxsyncs sysctl.
In cooperation with: Vsevolod Lobko
OK'ed by: ambrisko
MFC after: 5 days
2004-03-31 21:10:01 +00:00
Ruslan Ermilov
001407b9c2
Added polling(4) support for ste(4).
...
MFC after: 5 days
2004-03-31 20:39:20 +00:00
Vinod Kashyap
9e429d3871
Moved comments on 3ware 9000 series RAID controller driver options from
...
options to NOTES.
2004-03-31 18:46:13 +00:00