summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_rum.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the definition and use of the USBDEV macro. It only created confusionmbalmer2007-06-101-3/+3
| | | | | | | | and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
* Remove the definition and use of if_deactivate(). It was defined empty andmbalmer2007-06-091-2/+1
| | | | | | | | thus produced no code at all. No binary change. ok jsg.
* re-indent prototypes after "Static" removal.damien2007-06-091-29/+19
| | | | no binary change.
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-101/+101
| | | | | | | 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.
* Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.jsg2007-05-271-16/+17
| | | | ok deraadt@ krw@ mbalmer@
* Remove le{16,32}toh macrosjsg2007-05-211-3/+3
|
* Remove logprintf macrojsg2007-05-211-3/+3
|
* do not do a curproc test for interrupt context, because it is plainly wrong.deraadt2007-02-191-7/+3
| | | | | this lets these work on macppc, for instance diagnosed by kettenis, but damien is not around, so ok jsg and others
* commit the correct version of this, which matches recent additions.jsg2007-02-081-1/+6
|
* add entry for WLI-U2-SG54HP. forgotten on previous commit.itojun2007-02-081-1/+2
| | | | tnx to: yuo at nui.org
* Add quite a few more rum(4) devices.jsg2007-02-081-5/+15
| | | | Two from Yojiro UO in NetBSD PR 35552
* attach to Gigabyte GN-WI05GS Mini-PCI Express adapters.damien2007-01-081-2/+3
| | | | bump copyright while i'm here.
* Don't use M_DUP_PKTHDR() on static mbufs. M_DUP_PKTHDR() copies the mtagclaudio2006-12-301-5/+7
| | | | | | | | 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@
* http://www.ralinktech.com/ domain name is for sale.damien2006-12-071-2/+2
| | | | use official url instead: http://www.ralinktech.com.tw/
* fix handling of the SIOCS80211CHANNEL ioctl in monitor mode:damien2006-12-031-3/+6
| | | | | | | | | 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
* don't schedule a USB task in {ural,rum}_newstate() if we're called fromdamien2006-12-031-4/+7
| | | | a process context. this avoids potential races in {ural,rum}_stop().
* do not have each net80211 driver define its own rates structures. if they usederaadt2006-11-261-16/+4
| | | | | the standard rates, use some defined by net80211 itself. kernel shrinks a bit ok jsg mglocker
* restore the workaround for rate==0 bug.damien2006-11-191-1/+3
| | | | | | | i removed it in my last commit because i thought it was gone. looks like it's not the case. pointed out by niallo@
* first round of commits for proper 11b/g protection support:damien2006-11-131-76/+131
| | | | | | | | | | | | | | - 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.
* make sure ni->ni_txrate is always initialized to a meaningful value bydamien2006-10-221-10/+18
| | | | | | redefining ic->ic_newassoc. this should prevent "bogus xmit rate" panics when operating in HostAP mode.
* Support later versions of the ASUS WL-167g which have switchedjsg2006-10-191-1/+2
| | | | | | from ural to rum. From Jason Crawford <jasonrcrawford@gmail.com>
* don't use IF_PREPEND() on altq's.damien2006-09-181-4/+3
| | | | use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4).
* s/IEEE80211_MTU_MAX/IEEE80211_MAX_LEN/ in my previous commit.damien2006-08-241-2/+2
|
* - fall back to 1Mbps if tx rate is returned as zero. avoids divide by zero. should never happen, but sometimes it does on my amd64.niallo2006-08-231-1/+3
| | | | ok damien@
* the maximum MTU allowed for IEEE802.11 is 2290 which is greater thandamien2006-08-231-2/+2
| | | | | | MCLBYTES (usually 2048). allocate tx xfer buffers of IEEE80211_MTU_MAX instead of MCLBYTES. rx buffers are still limited to MCLBYTES though.
* in rum_rxeof(), don't check xfer length against IEEE80211_MIN_LEN sincedamien2006-08-231-2/+3
| | | | | the CRC is not included in the xfer. check against sizeof(struct ieee80211_frame_min) instead.
* set of unrelated cosmetic tweaks.damien2006-08-181-2/+6
|
* fix a printf format stringdamien2006-08-181-2/+2
|
* - fix support for RT5225 (802.11a MIMO)damien2006-08-181-169/+54
| | | | | | | | | - 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
* Separate rum(4) firmware from ral(4) ones.damien2006-08-171-7/+7
| | | | | | | | | 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@
* Belkin RT2601USB.jsg2006-08-161-1/+2
|
* Add a bunch more devices.jsg2006-08-141-2/+17
|
* Disable default debug setting now rum works.jsg2006-08-141-4/+2
|
* tell if chipset supports MIMO in dmesg output.damien2006-08-101-5/+3
|
* mega-commit of unrelated changes to bring rum(4) into a working state.damien2006-08-091-346/+582
| | | | | | | 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).
* RX descriptor is located at the beginning of the RX buffer, unlikedamien2006-07-191-3/+3
| | | | RT2500USB.
* remove rum_set{tx,rx}antenna() that were specific to RT2500USB.damien2006-07-191-54/+1
| | | | remove #define that are no longer needed or not relevant for this hardware.
* write firmware 4 bytes at a time.damien2006-07-191-25/+10
|
* revert part of r1.6 commit.damien2006-07-191-8/+8
| | | | only data frames must reserve 4 bytes.
* fix rum_set_macaddr() and cleanup rum_set_bssid().damien2006-07-191-8/+7
|
* fix rum_write().damien2006-07-191-14/+3
| | | | | | 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).
* kick ASIC only after clearing STA registers.damien2006-07-191-5/+6
|
* there aren't 10 STA registers on RT2501USB.damien2006-07-191-4/+4
| | | | clear only STA0 to STA2 included.
* wait for chip to settle *before* retrieving ASIC revision number sincedamien2006-07-191-13/+12
| | | | | waiting for the chip to settle means waiting until ASIC revision number is different from zero.
* define rum_read() as rum_read_multi().damien2006-07-191-17/+4
| | | | | change the prototype to take a uin16_t instead of a uint32_t (register offsets are 16bit).
* fix rum_read_multi() to actually read at the requested index.damien2006-07-191-3/+3
|
* remove redundant #definedamien2006-07-191-2/+2
|
* nuke sc->rssadapt_ch. it was used but not initialized.damien2006-07-181-7/+2
|
* fix a broken conditional expression in rum_bbp_init().damien2006-07-181-6/+5
|
* mountroothooks don't return a value, so don't use USB_ATTACH_ERROR_RETURNdamien2006-07-181-80/+76
| | | | | | (even if it's defined as return; under OpenBSD, it's just confusing). kill all soft tabs while i'm here.