summaryrefslogtreecommitdiff
path: root/sys/dev/ic/malo.c
AgeCommit message (Collapse)Author
2007-05-25Bump firmware package version; Better naming of the malo firmware files.Marcus Glocker
discussed with, and OK claudio@
2007-05-09Remove an obsolete comment which guesses about a register write an neverMarcus Glocker
was used anyway. OK claudio@
2007-05-05malo_hexdump() is only used by code under MALO_DEBUG, so ifdef itJonathan Gray
ok mglocker@ claudio@
2007-05-03Enable fast channel switching in monitor mode, which makes apps likeMarcus Glocker
kismet happy. Previously system got very slow because at every channel switch an ENETRESET was issued. Reported and diff by Steffen Schuetz <st.sch@gmx.net>. Closes PR 5452. OK claudio@
2007-04-20Increase the delay while uploading a firmware buffer in malo_load_firmware().Claudio Jeker
We're doing DMA transfers without interrupts or some other indication and 100 microseconds is not enough on my X40 and so the firmware gets corrupted. Increasing it to 500 microseconds this should give us enough safety margin. OK mglocker@
2007-04-17The debug printf in malo_newstate() is too verbose so require debug level 2Claudio Jeker
to print it.
2007-03-14Call ifp->if_start() at the end of the rx interrupt handling just in caseClaudio Jeker
ieee80211_input() enqueued a packet beforehand. malo(4) does not support hostap mode so this should not happen but perhaps mglocker@ gets it working someday. OK mglocker@
2007-02-14Sync with pgt(4) multicast fix.Marcus Glocker
OK claudio@
2007-02-09Spaces, no binary change.Claudio Jeker
2006-12-31Add a debug printf to warn when malo_init() fails and resets the card.Claudio Jeker
2006-12-31There is no need to busy wait in malo_send_cmd(). 0x0c14 only stores theClaudio Jeker
current state of the card (not running, loading FW, running). Now instead wait after loading the boot firmware for the magical 0x5 to appear. Also add a few missing bus_dmamap_sync() calls. OK mglocker@
2006-12-31Use a bus_space_barrier instead of those stupid 0x0c14 reads to make sureClaudio Jeker
that access is done in correct order. OK mglocker@
2006-12-31In malo_init() check for firmware loading errors and in case of an errorClaudio Jeker
reset the card so that we have a chance that a later malo_init() works. OK mglocker@
2006-12-31malo_stop() never fails so no need to return an error. OK mglocker@Claudio Jeker
2006-12-31Use #ifdef MALO_DEBUG else a simple #define MALO_DEBUG will not work.Claudio Jeker
2006-12-30Fix another printf where the format string did not match with the varargs.Claudio Jeker
2006-12-30Don't use M_DUP_PKTHDR() on static mbufs. M_DUP_PKTHDR() copies the mtagClaudio Jeker
chain and so a later MFREE() is needed to free the chain again. Just initialize a minimal mbuf header for bpf_mtap(). See earlier rum(4) commit for the full story. OK mglocker@ Sounds good jsg@
2006-12-30Why doing something as complex as for () bus_space_write_1(); when thereClaudio Jeker
is bus_space_write_region_1() that does the same. OK mglocker@
2006-12-29No colon after "address".Marcus Glocker
2006-12-12Make malo(4) work on macppc by adding a few letoh32(), removing some htole32()Claudio Jeker
-- bus_space(9) does the endian switch for us -- and finaly change one letoh32() to letoh16(). The last one being by far the nastiest one. OK mglocker@
2006-12-10Add missing argument to a DPRINTF call.Claudio Jeker
2006-12-03First bits of endian cleanup more still needed but commit early, commit often.Claudio Jeker
OK mglocker@
2006-12-03Print the number of unknown commands in malo_cmd_string(). Also don'tClaudio Jeker
print an empty newline in malo_hexdump(). OK mglocker@
2006-11-30fix wep key index in firmware command.Damien Bergamini
ok mglocker@
2006-11-30Yay, forgot to add IEEE80211_C_SHPREAMBLE and IEEE80211_C_SHSLOTMarcus Glocker
capapility. Spotted by damien@
2006-11-29Enable short slots, which should increase / stableize throughputMarcus Glocker
performance a bit. ok claudio@
2006-11-29Enable monitor mode.Marcus Glocker
ok claudio@
2006-11-28Instead debug message for WEP key setting, just complain if WEP keyMarcus Glocker
setting fails. Always return with error in malo_init() if someting fails. ok claudio@
2006-11-27Enable WEP.Marcus Glocker
Tested by jsg@
2006-11-26Replace the firmware reset command by a register write which alsoMarcus Glocker
causes a device reset. This enables resetting also on amd64, and therefore reinitializing after the 'up' 'down' dance works now there. ok claudio@
2006-11-26It's sizeof(struct ieee80211_frame) not sizeof(struct ieee80211_frame *).Marcus Glocker
Spotted by damien@
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-25Cleanup obsolete rate bits and pass right value to the TX rate descriptor.Marcus Glocker
ok claudio@
2006-11-25If no TX rate has been calculated yet, set rate value to autoselectMarcus Glocker
instead DS1. Add 'mode' informations to malo_media_status(). Some KNF.
2006-11-24Small KNF fix.Marcus Glocker
2006-11-24Enable setting of fixed rates.Marcus Glocker
2006-11-24Enable automatic rate adapation (done by firmware and hardware).Marcus Glocker
ok claudio@
2006-11-23Remove 802.11a stuff. There is one RF chip (88W8030) which supports 5GHz,Marcus Glocker
but it seems rarely used and we don't know in connecton with which chip. 88W8335/88W8310 uses 88W8000G RF (2.4GHz).
2006-11-23The duration field is calculated by the firmware. Remove malo_txtime()Marcus Glocker
therefore. ok claudio@
2006-11-22Remove rssadapt(9) bits; Firmware supports rate adaption. Also,Marcus Glocker
remove unused arguments in the TX descriptor setup routine. ok claudio@
2006-11-21Free allocated mbufs at TX done. While there also reset some TX descriptorMarcus Glocker
values. Fixes "WARNING: mclpool limit reached; increase kern.maxclusters" ok claudio@
2006-11-16Drop malo_reset() for now and do ENETRESET and media changes usingMarcus Glocker
malo_stop() / malo_init(). ok claudio@
2006-11-16Minor cleanup; reactivate malo_cmd_reset() which seems to work now, removeMarcus Glocker
some dead code, protect ieee80211_next_scan() from network interrupts, fix some comments. ok claudio@
2006-11-15Quiet down debug output by default. Improve cmd response/result handling.Marcus Glocker
discussed with claudio@
2006-11-15Enable data packet transmission.Marcus Glocker
Diff done in co-operation with claudio, commited via malo(4). ok claudio@
2006-11-15Fix the loop in malo_tx_intr(). This fixes a infinit loop that happend afterClaudio Jeker
resetting the card. OK mglocker@
2006-11-12In malo_send_cmd_dma() reduce the poll loop to 10 and increase the delayClaudio Jeker
to 100. Even the slowest command take only about half of the time so this should be enough. Discussed with mglocker@
2006-11-12Rewrite part of malo_tx_mgt() to do the mbuf dance in a nicer way. ThisClaudio Jeker
is still ugly beyond any help but what do you expect from HW that needs to insert unused fields between header and data? OK mglocker@
2006-11-12Simplify code and remove a delay() by actually waiting for the command toClaudio Jeker
finish. OK mglocker@
2006-11-10Fix DMA firmware command interface (poll for command response), and get theMarcus Glocker
card to associate successfully with an AP. ok claudio@