Age | Commit message (Collapse) | Author |
|
so that it shows up before the :. as a result, all the usb devices do not
need to have name printing code anymore. all this now works and prints
nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
|
remove <malloc.h> from files where malloc is not used.
|
|
USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
|
No binary change.
ok mk.
|
|
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg
for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
|
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
|
thus produced no code at all.
No binary change.
ok jsg.
|
|
no binary change.
|
|
and it was not consistently used. It was confusing as it suggested these
functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
|
ok deraadt@ krw@ mbalmer@
|
|
|
|
|
|
this lets these work on macppc, for instance
diagnosed by kettenis, but damien is not around, so ok jsg and others
|
|
|
|
tnx to: yuo at nui.org
|
|
Two from Yojiro UO in NetBSD PR 35552
|
|
bump copyright while i'm here.
|
|
chain and so a later MFREE() is needed to free the chain again.
In this special case we get away by initializing a minimal mbuf header
instead of the M_DUP_PKTHDR() because bpf_mtap() does not access the pkthdr.
This fixes kettenis@ mtag memory leak on armish.
Tested by kettenis@ OK mglocker@ Sounds good jsg@
|
|
use official url instead: http://www.ralinktech.com.tw/
|
|
don't call xxx_set_chan() if the interface is not up&running.
patch from Steffen Schuetz (st dot sch at gmx dot net) with
minor modifications by me.
closes kernel/5313
|
|
a process context. this avoids potential races in {ural,rum}_stop().
|
|
the standard rates, use some defined by net80211 itself. kernel shrinks a bit
ok jsg mglocker
|
|
i removed it in my last commit because i thought it was gone.
looks like it's not the case.
pointed out by niallo@
|
|
- use the newly introduced ieee80211_get_rts() and
ieee80211_get_cts_to_self() functions.
- use CTS-to-self instead of RTS/CTS to protect OFDM frames in
a mixed 11b/g BSS.
- make sure multicast frames are sent using CCK modulation.
remove support for 5GHz radios in ral(4) RT2560 and ural(4).
i'm not aware of any such adapters on the market and 11a code
is known to be broken.
some cleanup while i'm here.
|
|
redefining ic->ic_newassoc.
this should prevent "bogus xmit rate" panics when operating in HostAP
mode.
|
|
from ural to rum.
From Jason Crawford <jasonrcrawford@gmail.com>
|
|
use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4).
|
|
|
|
should never happen, but sometimes it does on my amd64.
ok damien@
|
|
MCLBYTES (usually 2048).
allocate tx xfer buffers of IEEE80211_MTU_MAX instead of MCLBYTES.
rx buffers are still limited to MCLBYTES though.
|
|
the CRC is not included in the xfer.
check against sizeof(struct ieee80211_frame_min) instead.
|
|
|
|
|
|
- set default Tx power for 802.11a channels
- in rum_newstate(), save the "arg" parameter so we can pass it to the
ieee80211_new_state() function in the usb task
- merge rum_tx_data() and rum_tx_mgt()
- s/le32toh/letoh32/g (le32toh is defined in usb_port.h)
- cosmetic while i'm here
|
|
ral(4) firmwares are built on PCI-capable architectures only while rum(4)
firmware is built on USB-capable architectures only.
Rename ral-rt2573 into rum-rt2573 and build rum-rt2573 on the zaurus too
(pointed out by Patrick Heim).
ok deraadt@
|
|
|
|
|
|
|
|
|
|
more to come but works well enough for me to commit this over a rum(4).
it shares a lot of code with ral(4) rt2661.c.
thanks to jsg@ for sending me a rum(4).
|
|
RT2500USB.
|
|
remove #define that are no longer needed or not relevant for this hardware.
|
|
|
|
only data frames must reserve 4 bytes.
|
|
|
|
on RT2501USB, registers are 32bit thus the value doesn't fit into the
wValue field (16bit) of a usb_device_request_t structure.
define rum_write() using rum_write_multi(4).
|
|
|
|
clear only STA0 to STA2 included.
|
|
waiting for the chip to settle means waiting until ASIC revision number
is different from zero.
|
|
change the prototype to take a uin16_t instead of a uint32_t (register
offsets are 16bit).
|