summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ral.c
AgeCommit message (Collapse)Author
2008-08-27pass FCS to radiotap.Damien Bergamini
2008-08-27introduce new IEEE80211_STA_ONLY kernel option that can be set toDamien Bergamini
remove IBSS and HostAP support from net80211 and 802.11 drivers. it can be used to shrink RAMDISK kernels for instance (like what was done for wi(4)). it also has the benefit of highlighting what is specific to IBSS and HostAP modes in the code. the cost is that we now have two code paths to maintain.
2008-08-14in ieee80211_input(), call if_start() after enqueuing frames in if_sndDamien Bergamini
when acting as an access point instead of having each driver doing the job. tested by krw@ (ral AP) and me with several drivers.
2008-07-30Free the correct buffer list on failure.Damien Bergamini
From Andrew Thompson at FreeBSD.
2008-07-21instead of passing rx tstamp and rssi to the ieee80211_input function,Damien Bergamini
pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
2008-04-16Kernel implementation of the 4-way handshake and group-keyDamien Bergamini
handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
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-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
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-01-02Don't use M_DUP_PKTHDR() in the driver bpf hook. Using M_DUP_PKTHDR() on aClaudio Jeker
static mbuf results in a mbuf tag memory leak. Same change as in rum(4). OK mglocker@
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-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-23Add Nova Tech NV-902W, and mention another Zinwell ural(4) device.Jonathan Gray
2006-08-18set of unrelated cosmetic tweaks.Damien Bergamini
2006-08-18fix a printf format stringDamien Bergamini
2006-08-18sync w/ rum(4):Damien Bergamini
- 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()
2006-08-09fix endianness. this should give rate adaptation a better chance to workDamien Bergamini
on big endian architectures.
2006-07-02Fix channel frequency/flags in radiotap structures.Jonathan Gray
Now I can see probes cycling 1->14 instead of just sitting at channel 1.
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
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@
2006-06-17Move AMRR rate control algorithm out of wpi(4) and ural(4), into net80211.Damien Bergamini
ok brad@
2006-06-10- fix checking of WEP flagDamien Bergamini
- move default MAC/BBP/RF settings from if_ral.c to if_ralreg.h
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-21Make ural(4) read and show real MAC/BBP rev instead of hardcoded RT2570Pedro Martelletto
"Go ahead" damien@ via jsg@
2006-02-19sync w/ rt2560.c:Damien Bergamini
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.
2006-02-11trim FCS in the driver instead of setting the M_HASFCS flag and lettingDamien Bergamini
ieee80211_input() do the job. requested by brad@
2006-02-04fix a copy/paste in a comment.Damien Bergamini
2006-01-29Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls inBrad Smith
an interrupt context. From NetBSD ok dlg@
2006-01-22account tx retry-fail errors in if_oerrors.Damien Bergamini
2006-01-14- give rate to rx radiotapDamien Bergamini
- swap rssi/rate fields in ural_rx_desc
2006-01-14Correct the length of the rx radiotap to be that of the rx not txJonathan Gray
struct. ok damien@