summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2860.c
AgeCommit message (Collapse)Author
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
to include that than rdnvar.h. ok deraadt dlg
2014-09-06reduce the amount of pci includesJonathan Gray
2014-07-22Fewer <netinet/in_systm.h>Martin Pieuchot
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-03-19Stop abusing the rcvif pointer to pass wireless nodes down to theMartin Pieuchot
driver start routines. Instead add & use a pointer in the pkthdr since we don't want the overhead of using a mbuf_tags(9). claudio@ pointed out that other subsystems might want to use this pointer too, so here's a new cookie! ok claudio@, mikeb@, deraadt@
2013-12-06Add a DVACT_WAKEUP op to the *_activate() API. This is called after theTheo de Raadt
kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
2013-08-07Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
2013-08-01Add support for the RT3572 MAC/BBP. Crucial bits from Nathan Goings.Mark Kettenis
ok mpi@
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooTheo de Raadt
ok otto
2012-10-12Cleanup false positives for uninitialized uses.Christiano F. Haesbaert
Part of the work to remove -Wno-uninitialized. ok blambert jsg
2012-10-11Enable Host AP power saving support for the RT2700, RT2800 and RT3090 chipsets.Mark Kettenis
Tested by Nathanael Rensen.
2010-10-23fix the two extremely retarded bugs that prevented the RT30XXDamien Bergamini
devices to work. shame on me. committed over an RT3071.
2010-09-07remove the powerhook code. All architectures now use the ca_activate treeTheo de Raadt
traversal code to suspend/resume ok oga kettenis blambert
2010-09-06All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}Theo de Raadt
2010-08-28rename the *_power functions to *_powerhook to indicate that we've beenTheo de Raadt
here already for the activate/powerhook cleanup
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-08-27Stop calling xxx_power() from xxx_resume(); instead do it the other way around.Mark Kettenis
Get rid of the sc_power() callback, which isn't used anymore. ok deraadt@
2010-08-27kill PWR_STANDBY (apm can use PWR_SUSPEND instead). While here, renumberTheo de Raadt
PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME} so that we can eventually (many more steps...) kill the powerhook garbage and use the activate mechanism. no objections
2010-08-25Make CardBus ral(4) suspend and resume properly on machines that keep theMark Kettenis
CardBus bridge powered up during suspend. Step zero on the long road towards fully suspending CardBus on all machines. ok deraadt@, damien@
2010-08-04add suspend/resume support for PCI ral(4) devices.Damien Bergamini
ok deraadt@, sthen@ tested by matthew@ (RT2560), dcoppa@ (RT2790), okan@ (RT2860), todd@ (RT2560)
2010-07-19store the WCID in the rt2860_node structure at association timeDamien Bergamini
and use this later instead of converting ni_associd into WCID each time we need it.
2010-07-19implement the ic_ampdu_rx_{start,stop} callbacks (not used yet).Damien Bergamini
2010-07-19in hostap mode, when a STA leaves the BSS, clear its entry in theDamien Bergamini
hardware RX WCID search table. otherwise, if the same STA reassociates later with a different id, we would have two entries for the same MAC in the table, leading to problems with key lookups etc... big thanks to Nathanael Rensen who found the issue.
2010-05-10additionnal bits and fixes for RT3090.Damien Bergamini
some adapters labelled RT3090 have a MAC version equal to RT3071. still no luck receiving frames on my AzureWave AW-NE762H though :(
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
2010-04-12Make hardware generate 802.11 sequence numbers (except for unicastDamien Bergamini
QoS data frames) such that the same counter is used for beacons, management frames and non-QoS data frames. This will help clients that don't like jumps in sequence numbers, like the FreeBSD duplicate detection code. Found after an interesting discussion with Yao Zhao.
2010-04-10enable debug mode for >=RT3090Damien Bergamini
add a wait flag to rt2860_mcu_cmd to wait for command completion more RT3090 RF initialization code
2010-04-06always enable both 2GHz and 5GHz LNAs regardless of the bandDamien Bergamini
we're using. fixes operation on some 5GHz channels (e.g 153). great thanks to Yao Zhao (dragonlinux at gmail dot com) for identifying the issue on run(4).
2010-04-06on devices that have a radio switch, check GPIO pin 2 and reportDamien Bergamini
that the radio is disabled with the same message as in other drivers. let initialization continue for the moment until i'm sure it is correct.
2010-04-06On RT3090 chips, read vendor RF settings from ROM and apply them.Damien Bergamini
2010-04-06Give rt3090_efuse_read_2() a chance to work by using the correct offset.Damien Bergamini
Found after jbg@ sent me a horrible dmesg.
2010-04-05fix regression on RT2860C introduced in previous commit.Damien Bergamini
2010-04-05Initial bits for >=RT3090 support.Damien Bergamini
Probably not functionnal yet (but test reports are welcome). Update microcode for RT2860 while I'm here (remember to run make && make install under sys/dev/microcode/ral/).
2010-04-04Fix 5GHz channels TX power settings for RT2860/RT2870 (does notDamien Bergamini
affect RT3572.) Found (again!) by Yao Zhao (dragonlinux at gmail dot com)
2010-03-27Fix TX power per rate settings.Damien Bergamini
Found by Yao Zhao (dragonlinux at gmail dot com)
2010-02-08add the 10us sifs directly to the pre-computed ack durations.Damien Bergamini
2010-02-08s/RT2860_MCU_CMD_BOOT/RT2860_MCU_CMD_RFRESET/Damien Bergamini
no binary change.
2010-02-07add channels 167, 169, 171, 173 for dual-band devicesDamien Bergamini
2009-12-10fix a theoretical (but not possible) array bound overflow.Owain Ainsworth
since we will always match on a rate, we won't overflow, but in that case, make it more obvious by if the first 11 rates don't match, we assume the 12th. should shut up parfait. ok damien@ who came up with an identical diff.
2009-11-03setting of WEP keys is defered until interface is brought up,Damien Bergamini
so do nothing in set_key() if the interface is not up and running. fixes a panic reported by Steph (frlinux at gmail dot com) with run(4) on misc
2009-11-01call powerhook_disestablish() and pci_intr_disestablish() earlier.Damien Bergamini
diff from deraadt@
2009-08-10three more shutdown hooks bite the dust.Damien Bergamini
2009-05-11properly set unicast to me mask in MAC_ADDR_DW1 register.Damien Bergamini
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-01-26I changed the IEEE80211_QOS_ACK_POLICY_* definitions to be more in lineDamien Bergamini
with other net80211 flags (we no longer need to shift.)
2008-12-29properly update RT2860_TX_RTS_CFGDamien Bergamini
2008-12-29move the 802.11 header out of the TXWI structure.Damien Bergamini
add some definitions for RT2870/RT3070.
2008-12-22I swapped MGETHDR arguments in my m_defrag removal commit.Damien Bergamini
2008-12-21Undo m_defrag().Damien Bergamini
m_defrag() does not work. It seems to assume that if the length of the mbuf passed as parameter is less than MHLEN, then it is an mbuf header and not a cluster (or something like that.) It thus fails miserably in the bcopy path. I don't have the time to investigate further into this. Thanks to Okan Demirmen for reporting the issue on a ral(4) RT2560. The RT2560 chipset does not support TX scatter and thus m_defrag() was called much more often than in other drivers using m_defrag() where it was less noticeable.
2008-12-15in rt2860_rx_intr(), rely on RT2860_FS_DRX_IDX instead of the RX_DMA DDONEDamien Bergamini
bit to know when to stop.