summaryrefslogtreecommitdiff
path: root/sys/dev/ic/malo.c
AgeCommit message (Collapse)Author
2014-07-22Fewer <netinet/in_systm.h>Martin Pieuchot
2014-07-13Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishianTheo de Raadt
ok tedu
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-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-09-04The powerlevel is an unsigned int, there is no need to check for negativeClaudio Jeker
values and even if this would make more sense. Found by brad some time ago.
2011-07-03avoid void * pointer arithmetic.David Hill
ok claudio@
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-08-08activate function for suspend/restore; from mglockerTheo de Raadt
2010-05-19BUS_DMA_ZERO instead of alloc, map, bzero.Owain Ainsworth
ok krw@
2009-07-12In a error case in malo_init (e.g. can't load the firmware),Marcus Glocker
always call malo_stop which removes the previously registered interrupt handler from the cardbus interrupt handler chain. Otherwise, since malo_init gets called twice in a error case, our interrupt handler got registered twice and on the next device detach, just the last registered interrupt handler got removed, which leaves one left. That caused a kernel page fault trap as soon our "zombie" interrupt handler got called. Fix a typo while here.
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok mglocker@
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.
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-27fix a typo in a comment.Marc Balmer
ok mglocker
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-11-10- Fix command timeouts in certain scenarios (like under X11)Marcus Glocker
- Properly issue the RTS-Threshold firmware command ok claudio@
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'.Kenneth R Westerback
2007-08-28unify firmware load failure messages; ok mglockerTheo de Raadt
2007-08-28Unify DPRINTF's and use the device name argument for all outputs.Marcus Glocker
OK claudio@
2007-08-27Process all FW command responses, and therefore make them visible in debugMarcus Glocker
mode. Make a note that processing of command-done interrupts doesn't work yet. OK claudio@
2007-08-26Fix XXX comment. There is nothing wrong with the following statement.Marcus Glocker
2007-08-25Remove FW command for WEP, it doesn't work with this FW versionMarcus Glocker
(not supported). We always did software WEP. Spotted by Mikore dot Li at sun dot com. OK claudio@
2007-08-25Fix typo in debug line.Marcus Glocker
2007-08-25Fix debug output for some FW commands.Marcus Glocker
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-05-29Beef up malo_hexdump() to emulate hexdump -C output. Helps to see hiddenClaudio Jeker
agendas in buffers that stupidly encode numbers as strings so that we need to parse them in the kernel as seen on che(4). OK mglocker@
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