summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2005-02-20Don't calculate 'total_len' twice.Brad Smith
Inspired by NetBSD' rtk(4) driver. From: Mike Pechkin <mpech at mail dot ru>
2005-02-19return on invalid beacon stateReyk Floeter
2005-02-19add support for the atheros ar5212 wireless chipsets. it is notReyk Floeter
finished yet and still misses some channel initialization and calibration bits. (if you want to hand in your dmesg output, please build a kernel with an uncommented COUNTRYCODE in line 109 of dev/ic/ar5xxx.c to get the value stored in your card's eeprom.) ok henning@
2005-02-19fix attachment process and dmesg output. do some indent while i'm here.Damien Bergamini
pointed out by jsg@
2005-02-19do not transmit any data frame if there is not at least two free descriptorsDamien Bergamini
in the tx ring (CTS/RTS frame + data frame).
2005-02-19cosmetic tweaks.Damien Bergamini
2005-02-19make dhclient work.Damien Bergamini
2005-02-19From part of NetBSD rtw.c rev 1.42:Jonathan Gray
log message: Program the LEDs based on operating state and packet activity. * On a Revision F RTL8180, blink LED1 at 1Hz to indicate scan/authenticate/associate states. In the run state, turn LED1 on. In every state, blink LED1 at 5Hz to indicate non-beacon tx/rx activity. I would like to use two LEDs, but in all my Rev. F instances, LED0 is not wired to an LED; instead, the first LED is wired to indicate that the card's power is on. * On a Revision D RTL8180, program the LEDs so that LED0 indicates Tx, and LED1 indicates Rx. The Rx LED will blink annoyingly if there are beacons in the air, but at least the Tx LED is useful. * Store the hardware revision in the softc to support my futile attempt at programming LEDs for both Rev. D and Rev. F parts; I never did get Rev. D LEDs to work right. * Add a debug flag RTW_DEBUG_LED for the LED transitions.
2005-02-18do not enable debug messages by default.Damien Bergamini
2005-02-18reset the interface on tx timeouts.Damien Bergamini
2005-02-17a new year and a new, less restrictive license. because it has to beReyk Floeter
free. go ahead miod@
2005-02-17knfReyk Floeter
2005-02-17cosmetic changes, fix regdomain code and beacon handlingReyk Floeter
2005-02-17mostly cosmetic changes: knf, get rid of unneeded sysctls, cleanup theReyk Floeter
code.
2005-02-17derived from NetBSD:Reyk Floeter
--- Make the node table into an LRU cache: least-recently used nodes are at the end of the node queue. Change the reference-counting discipline: ni->ni_refcnt indicates how many times net80211 has granted ni to the driver. Every node in the table with ni_refcnt=0 is eligible to be garbage-collected. The mere presence of a node in the table does not any longer indicate its auth/assoc state; nodes have a ni_state variable, now. While I am here, patch ieee80211_find_node_for_beacon to do a "best match" by bssid/ssid/channel, not a "perfect match." This keeps net80211 from caching duplicate nodes in the table. --- ok deraadt@ dlg@, looks good jsg@
2005-02-17miscellaneous typo fixes:Jean-Francois Brousseau
- sturct -> struct (spotted by pedro) - elimination of consecutive 'the' words ok jmc@, henning@, krw@, robert@, some whining by jolan@
2005-02-17add software WEP (will implement hardware WEP later).Damien Bergamini
2005-02-17clear the IEEE80211_RATE_BASIC flag from the rate before callingDamien Bergamini
ieee80211_compute_duration(). pointed out by jsg@
2005-02-17unmap DMA allocated memory properly.Damien Bergamini
2005-02-17zero memory after call to malloc() to avoid freeing non-allocatedDamien Bergamini
resources in ral_init(). pointed out by jsg@
2005-02-16add support for enabling amp power on a non-documented Conexant codecTodd T. Fries
ideas from alsa pointers by jsg@; mickey@ ok
2005-02-16fix an invalid condition which returns on an invalid beacon state.Reyk Floeter
2005-02-15Driver for Ralink Technology RT2500 wireless adapters.Damien Bergamini
2005-02-15add the manual tx power option. this is supported by some prism2/2.5/3Reyk Floeter
cards in hostap mode but it depends on the firmware version. support for other wireless chipsets will be added in the future using the net80211-framework. ok robert@ bob@ danh@, tested by some others
2005-02-14add missing breakBrad Smith
From: Mike Pechkin <mpech at mail dot ru>
2005-02-14From NetBSD:Jonathan Gray
From part of rtw.c rev 1.42: log message: Add RTW_TPPOLL_ALL, RTW_TPPOLL_SALL to start and stop, respectively, all of the transmit rings. Revamp the transmit section to make better use of all the transmit rings: beacon queue, high-, low-, and medium-priority rings. Put beacon frames on the beacon ring. All other management frames, and data frames, go on the medium-priority ring. Power-save data frames go on the high-priority ring. (Note that powersaving is not implemented!) This is a work in progress. Send all 802.11 Management frames at 1Mbps. After we put a packet on a transmit ring, tickle the right bit in the TPPOLL to tell RTL8180. Stop all rings on error and in rtw_stop. And rtw.c rev 1.33: log message: Consolidate variables related to the rx ring in sc_rxdesc_blk, which is a struct rtw_rxdesc_blk. Put a copy of the DMA tag and the DMA map into the rx- and tx-ring blocks so that I don't have to pass them to subroutines all of the time. ok dlg@
2005-02-12Fix crashes during probe by ensuring that SCSI_IS_SCSIBUS_B() returnsKenneth R Westerback
false until scsi bus b is initialized. Set TWIN_CHNLB bit that is used elsewhere. Missed chunk from last code sync. Problem found and fixes tested on HP Proliant ML310 by Valov Oleg.
2005-02-08From NetBSD:Jonathan Gray
sys/dev/ic/rtw.c rev 1.38: Use clue from rtk(4) and re(4) to fix the rtw(4) packet filter. Previously, I was using the wrong CRC32 function to hash multicast addresses; to compensate, I set the multicast filter to all 1s. Now that I hash the addresses correctly, I do not any longer set the filter to all 1s. In rtw_ioctl, avoid gratuitous re-initialization when the interface flags change. If a !IFF_UP -> IFF_UP transition, call rtw_init(); otherwise, only reload the packet filter. sys/dev/ic/rtwreg.h rev 1.10: Put useful combinations of Receiver Control Register flags in RTW_RCR_PKTFILT_MASK, RTW_RCR_MONITOR, and RTW_RCR_PKTFILT_DEFAULT. (XXX RTW_RCR_MONITOR should be called RTW_RCR_PKTFILT_MONITOR.)
2005-02-06Wait 10ms for the completion of the EEPROM recall process, allowing aPedro Martelletto
couple of specific adapters (such as mine) to be correctly initiated. Discussed with and okay jsg@.
2005-02-06Remove some uneeded code to reduce delta to NetBSD.Jonathan Gray
2005-02-06Fix a merge error that was causing a panic after associating.Jonathan Gray
Thanks to mcbride@ for pointing me in the right direction.
2005-02-04add hme(4) RX TCP/UDP checksum offloadBrad Smith
From a diff posted to sparc@ by Pyun YongHyeon ok dlg@, tested by mickey@ "i get some badass improvement here." and a few other users.
2005-02-04fix setting 128bit WEP keys on BIG_ENDIAN arches.Kurt Miller
2005-02-03add 5sec to the xs->timeout to overcompensate for possible delays in ↵Michael Shalayeff
quartz_done(); marco@ ok
2005-02-03unbreak by killing volatile from fxp_mdi_read(). No binary change.Hans-Joerg Hoexer
ok mickey
2005-02-03make prototype match function for ar5k_ar5110_chan2athchanKevin Lo
2005-02-03make prototype match function for fxp_mdi_read.Kevin Lo
ok millert@ CVS ----------------------------------------------------------------------
2005-01-31add a bunch of more codecs from var srcs. this makes almost everything from ↵Michael Shalayeff
the dmesglog to be resolved proper. most unresolvants are bit-errors on the ac link anyway
2005-01-31Be sure to always return an error for unrecognized ioctls. Found by matthieu@Miod Vallat
2005-01-30Fix two Cirrus Logic codec IDs.Mark Kettenis
ok millert@
2005-01-24sti colormap fixes:Miod Vallat
- correct bounds checking in colormap ioctls. - force the scment() pointer to NULL on < 8.04 revisions; 8.02 provide a non-NULL pointer, but it does not point to any meaningful piece of code.
2005-01-23bus_space_map() sti regions with BUS_SPACE_MAP_CACHEABLE if they have theMiod Vallat
cache bit set in the region descriptor. Halves sti processing time on hp300. ok mickey@
2005-01-23Two sti(4) changes necessary for hp300:Miod Vallat
- specify which microcode bank (pa or m68k) to use at attachment time. - compensate for broken 8.02 m68k code which reports wrong frame buffer offset. ok mickey@
2005-01-22Reduce diff to NetBSD.Jonathan Gray
From part of rtw.c rev 1.42: Move the register access mode into struct rtw_regs. Change rtw_set_access, rtw_set_access1 to match.
2005-01-22Reduce diff to NetBSD.Jonathan Gray
From rtw.c rev 1.34: I like the tlp/atw-style names for software descriptors, txsoft, better than txctl. Change from rtw_txctl/rtw_rxctl to rtw_txsoft/rtw_rxsoft. Change the descriptor blocks' names to match: rtw_txctl_blk becomes rtw_txsoft_blk. Change the member-name prefixes for both software and hardware descriptors.
2005-01-19Remove the last of the rampant inline usage.Jonathan Gray
2005-01-19destatic functions.Jonathan Gray
2005-01-19Use the RF chipset type rather than the hardware version when determiningJonathan Gray
whether to use host or MAC controlled RF I/O. From part of NetBSD rev 1.42
2005-01-17update dead URL, from Steve Shockley <steve.shockley@shockley.net>Jared Yanovich
2005-01-15rev 1.85Brad Smith
Newer chips do not need the receiver lock-up workaround; detect when it is required. From NetBSD