summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_rum.c
AgeCommit message (Collapse)Author
2007-10-11treat usb vendor/product names as a locator, and have usbd_print handle it,Theo de Raadt
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
2007-09-07use new malloc M_ZERO flag to shrink kernel.Damien Bergamini
remove <malloc.h> from files where malloc is not used.
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-10Remove the definition and use of the USBDEVNAME macro.Marc Balmer
(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.
2007-06-10Remove the definition and use of the USBDEV macro. It only created confusionMarc Balmer
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
2007-06-09Remove the definition and use of if_deactivate(). It was defined empty andMarc Balmer
thus produced no code at all. No binary change. ok jsg.
2007-06-09re-indent prototypes after "Static" removal.Damien Bergamini
no binary change.
2007-06-05Remove the "Static" declaration of many functions. It was defined to be emptyMarc Balmer
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.
2007-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-05-21Remove le{16,32}toh macrosJonathan Gray
2007-05-21Remove logprintf macroJonathan Gray
2007-02-19do not do a curproc test for interrupt context, because it is plainly wrong.Theo de Raadt
this lets these work on macppc, for instance diagnosed by kettenis, but damien is not around, so ok jsg and others
2007-02-08commit the correct version of this, which matches recent additions.Jonathan Gray
2007-02-08add entry for WLI-U2-SG54HP. forgotten on previous commit.Jun-ichiro itojun Hagino
tnx to: yuo at nui.org
2007-02-08Add quite a few more rum(4) devices.Jonathan Gray
Two from Yojiro UO in NetBSD PR 35552
2007-01-08attach to Gigabyte GN-WI05GS Mini-PCI Express adapters.Damien Bergamini
bump copyright while i'm here.
2006-12-30Don't use M_DUP_PKTHDR() on static mbufs. M_DUP_PKTHDR() copies the mtagClaudio Jeker
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@
2006-12-07http://www.ralinktech.com/ domain name is for sale.Damien Bergamini
use official url instead: http://www.ralinktech.com.tw/
2006-12-03fix handling of the SIOCS80211CHANNEL ioctl in monitor mode:Damien Bergamini
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
2006-12-03don't schedule a USB task in {ural,rum}_newstate() if we're called fromDamien Bergamini
a process context. this avoids potential races in {ural,rum}_stop().
2006-11-26do not have each net80211 driver define its own rates structures. if they useTheo de Raadt
the standard rates, use some defined by net80211 itself. kernel shrinks a bit ok jsg mglocker
2006-11-19restore the workaround for rate==0 bug.Damien Bergamini
i removed it in my last commit because i thought it was gone. looks like it's not the case. pointed out by niallo@
2006-11-13first round of commits for proper 11b/g protection support:Damien Bergamini
- 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.
2006-10-22make sure ni->ni_txrate is always initialized to a meaningful value byDamien Bergamini
redefining ic->ic_newassoc. this should prevent "bogus xmit rate" panics when operating in HostAP mode.
2006-10-19Support later versions of the ASUS WL-167g which have switchedJonathan Gray
from ural to rum. From Jason Crawford <jasonrcrawford@gmail.com>
2006-09-18don't use IF_PREPEND() on altq's.Damien Bergamini
use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4).
2006-08-24s/IEEE80211_MTU_MAX/IEEE80211_MAX_LEN/ in my previous commit.Damien Bergamini
2006-08-23- fall back to 1Mbps if tx rate is returned as zero. avoids divide by zero. ↵Niall O'Higgins
should never happen, but sometimes it does on my amd64. ok damien@
2006-08-23the maximum MTU allowed for IEEE802.11 is 2290 which is greater thanDamien Bergamini
MCLBYTES (usually 2048). allocate tx xfer buffers of IEEE80211_MTU_MAX instead of MCLBYTES. rx buffers are still limited to MCLBYTES though.
2006-08-23in rum_rxeof(), don't check xfer length against IEEE80211_MIN_LEN sinceDamien Bergamini
the CRC is not included in the xfer. check against sizeof(struct ieee80211_frame_min) instead.
2006-08-18set of unrelated cosmetic tweaks.Damien Bergamini
2006-08-18fix a printf format stringDamien Bergamini
2006-08-18- fix support for RT5225 (802.11a MIMO)Damien Bergamini
- 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
2006-08-17Separate rum(4) firmware from ral(4) ones.Damien Bergamini
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@
2006-08-16Belkin RT2601USB.Jonathan Gray
2006-08-14Add a bunch more devices.Jonathan Gray
2006-08-14Disable default debug setting now rum works.Jonathan Gray
2006-08-10tell if chipset supports MIMO in dmesg output.Damien Bergamini
2006-08-09mega-commit of unrelated changes to bring rum(4) into a working state.Damien Bergamini
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).
2006-07-19RX descriptor is located at the beginning of the RX buffer, unlikeDamien Bergamini
RT2500USB.
2006-07-19remove rum_set{tx,rx}antenna() that were specific to RT2500USB.Damien Bergamini
remove #define that are no longer needed or not relevant for this hardware.
2006-07-19write firmware 4 bytes at a time.Damien Bergamini
2006-07-19revert part of r1.6 commit.Damien Bergamini
only data frames must reserve 4 bytes.
2006-07-19fix rum_set_macaddr() and cleanup rum_set_bssid().Damien Bergamini
2006-07-19fix rum_write().Damien Bergamini
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).
2006-07-19kick ASIC only after clearing STA registers.Damien Bergamini
2006-07-19there aren't 10 STA registers on RT2501USB.Damien Bergamini
clear only STA0 to STA2 included.
2006-07-19wait for chip to settle *before* retrieving ASIC revision number sinceDamien Bergamini
waiting for the chip to settle means waiting until ASIC revision number is different from zero.
2006-07-19define rum_read() as rum_read_multi().Damien Bergamini
change the prototype to take a uin16_t instead of a uint32_t (register offsets are 16bit).