summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_ral.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-2/+2
| | | | | | No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-38/+38
| | | | | | | (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.
* 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-26/+19
| | | | no binary change.
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-98/+98
| | | | | | | 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-15/+16
| | | | ok deraadt@ krw@ mbalmer@
* Remove le{16,32}toh macrosjsg2007-05-211-2/+2
|
* 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
* Don't use M_DUP_PKTHDR() in the driver bpf hook. Using M_DUP_PKTHDR() on aclaudio2007-01-021-5/+7
| | | | | static mbuf results in a mbuf tag memory leak. Same change as in rum(4). OK mglocker@
* 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-2/+4
| | | | | | | | | 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-12/+3
| | | | | 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-130/+135
| | | | | | | | | | | | | | - 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-5/+19
| | | | | | redefining ic->ic_newassoc. this should prevent "bogus xmit rate" panics when operating in HostAP mode.
* 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.
* Add Nova Tech NV-902W, and mention another Zinwell ural(4) device.jsg2006-08-231-1/+2
|
* set of unrelated cosmetic tweaks.damien2006-08-181-5/+8
|
* fix a printf format stringdamien2006-08-181-2/+2
|
* sync w/ rum(4):damien2006-08-181-105/+25
| | | | | | - in ral_newstate(), save the "arg" parameter so we can pass it to the ieee80211_newstate() function in the usb task - merge ral_tx_data() and ral_tx_mgt()
* fix endianness. this should give rate adaptation a better chance to workdamien2006-08-091-6/+6
| | | | on big endian architectures.
* Fix channel frequency/flags in radiotap structures.jsg2006-07-021-7/+7
| | | | | Now I can see probes cycling 1->14 instead of just sitting at channel 1.
* In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesmiod2006-06-231-2/+2
| | | | | | something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
* Move AMRR rate control algorithm out of wpi(4) and ural(4), into net80211.damien2006-06-171-86/+11
| | | | ok brad@
* - fix checking of WEP flagdamien2006-06-101-148/+19
| | | | - move default MAC/BBP/RF settings from if_ral.c to if_ralreg.h
* allow bpf(4) to ignore packets based on their direction (inbound ordjm2006-03-251-7/+7
| | | | | outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
* Make ural(4) read and show real MAC/BBP rev instead of hardcoded RT2570pedro2006-03-211-4/+8
| | | | "Go ahead" damien@ via jsg@
* sync w/ rt2560.c:damien2006-02-191-14/+21
| | | | | | | don't try to release references to nodes that have been freed by net80211. in HostAP mode, when switching to the INIT state, net80211 sends a DISASSOC and a DEAUTH frame to all associated stations and immediately free all the nodes while we may still hold references to them in our Tx queues.
* trim FCS in the driver instead of setting the M_HASFCS flag and lettingdamien2006-02-111-2/+2
| | | | | | ieee80211_input() do the job. requested by brad@
* fix a copy/paste in a comment.damien2006-02-041-2/+2
|
* Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls inbrad2006-01-291-3/+3
| | | | | | | | an interrupt context. From NetBSD ok dlg@
* account tx retry-fail errors in if_oerrors.damien2006-01-221-2/+9
|
* - give rate to rx radiotapdamien2006-01-141-2/+40
| | | | - swap rssi/rate fields in ural_rx_desc
* Correct the length of the rx radiotap to be that of the rx not txjsg2006-01-141-2/+2
| | | | | | struct. ok damien@
* send management frames at lowest possible rate.damien2006-01-131-3/+3
|
* - fix short preamble supportdamien2006-01-131-20/+83
| | | | | | - add short slot support - fix eifs settings - many consistency tweaks
* - simplify lookup of 802.11a channels (we know they exist)damien2006-01-131-15/+7
| | | | - kill two stupid comments while i'm here
* - fix AMRR initialization + retry-fail countdamien2006-01-131-30/+20
| | | | | | - fix contention window - silently discard received frames that are too short - sync setup_tx_desc w/ ral
* Remove redundant calls to bpfdetach.canacar2006-01-041-4/+1
| | | | ok brad@
* Support Nintendo Wi-Fi USB Connector, noticed in Linux rt2570 driverjsg2005-12-231-1/+2
| | | | and verified against windows driver.
* Add support for Linksys HU200-TS, id found in Linux RT2570 driver.jsg2005-12-091-1/+2
|
* o Force the sending of an extra URB if there is less than 2 bytes leftdamien2005-11-241-41/+54
| | | | | | | | at the end of the last URB (URB = USB Request Block = 64 bytes). o Better check of the size of received frames. o In ural_tx_{data,mgt} send the packet to BPF after setting the duration field of the frame. o Minor tweaks.
* ural should be DV_IFNET, not DV_DULL. noticed by ian@.grange2005-11-241-2/+2
| | | | ok many.
* Be more robust when receiving frames. If we can't allocate a new mbuf,damien2005-11-231-21/+23
| | | | just discard the received frame and reuse the old mbuf.