summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2016-09-27Wait until the BSSID is known before adding the MAC context to iwm firmware.Stefan Sperling
Fixes iwm connectivity issues after first boot. Tested by myself (8260 chip) and tb@ (7265 chip) ok tb@
2016-09-25Remove more duplicated includesFrederic Cambus
OK jca@, deraadt@
2016-09-24Assert that bus->force_bit >= 0 instead of force_bit. Found by clang.Mark Kettenis
2016-09-22Remove some unused cruft from iwm, including a local namespace-pollutingStefan Sperling
definition of an ieee80211_tu_to_usec() macro...
2016-09-22Simplify assignment of sgi_ok variable in iwm_setrates(). No functional change.Stefan Sperling
2016-09-21Always set the bit which allows RTS in iwm's LQ command.Stefan Sperling
This bit was only set in 11n mode previously. ok sthen@
2016-09-21Make iwm protect the session during association more like Linux does it.Stefan Sperling
ok sthen@
2016-09-21Properly support the mac context command in iwm. This was wrong in many ways.Stefan Sperling
This commit includes style fixes as well as actual bug fixes. Remove the global in_assoc flag from the softc. We can just pass a fixed argument to functions to indicate whether we're already associated. Remove in_tfsid from the softc as well. It was implicitly set to zero and never changed. A corresponding macro already exists so use it instead. Always copy the BSSID into the mac context command, as the Linux driver does. This helps the firmware during association. Set the firmware state to 'associated' once we've moved to RUN state and our assoc ID is known. Earlier versions of iwm used to set the firmware to 'associated' but this was disabled in r1.91 since it didn't work correctly due to bugs which are now fixed. Use live DTIM information obtained from the AP, rather than using the default DTIM period of our wireless stack. Check return values of functions called after moving to RUN state. ok sthen@
2016-09-21Make iwm return EBUSY from its ic_ampdu_rx_start() handler andStefan Sperling
call the functions provided by the wireless stack to accept or refuse BA agreements depending on the status returned by firmware. ok sthen@
2016-09-21For the keep-alive period in iwm's power command, use the DTIM periodStefan Sperling
specified by the AP, rather than the default DTIM period of our wireless stack (which is not applicable when running as a client anyway). And tell the firmware to disable power-saving. ok sthen@
2016-09-21Copy the AP's actual EDCA parameters into iwm's mac context commandStefan Sperling
rather than some fixed values present in this file since r1.1. Allows the firmware to properly time its transmissions in 11n networks. ok sthen@
2016-09-21Add the BSS's basic rates to iwm's LQ command, not all the rates.Stefan Sperling
Makes the firmware use appropriate Tx rates for ACKs.
2016-09-20Mostly cosmetic tweaks to macros involved in iwm(4) power-saving features.Stefan Sperling
Remove the unused struct iwm_powertable_cmd. Fix typos in comments. Add macros for default power-save Tx/Rx timeout values (from iwlwifi).
2016-09-19Remove unused getdev() audio driver functions.Alexandre Ratchov
2016-09-15all pools have their ipl set via pool_setipl, so fold it into pool_init.David Gwynne
the ioff argument to pool_init() is unused and has been for many years, so this replaces it with an ipl argument. because the ipl will be set on init we no longer need pool_setipl. most of these changes have been done with coccinelle using the spatch below. cocci sucks at formatting code though, so i fixed that by hand. the manpage and subr_pool.c bits i did myself. ok tedu@ jmatthew@ @ipl@ expression pp; expression ipl; expression s, a, o, f, m, p; @@ -pool_init(pp, s, a, o, f, m, p); -pool_setipl(pp, ipl); +pool_init(pp, s, a, ipl, f, m, p);
2016-09-14Declare the type instead of a on-stack variable for sizeof purposesMike Belopuhov
(Un?)surprisingly the compiler is smart enough to produce the same code in both cases, but this conveys the intention better.
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()Alexandre Ratchov
methods from all audio drivers and from the audio_if structure as they are never called.
2016-09-14add support for SAS3 devices, which have a different sgl layout to previousJonathan Matthew
generations. tested on a Lenovo N2215 (SAS3008) ok dlg@ deraadt@
2016-09-14regenJonathan Matthew
2016-09-14add LSI/Avago SAS3 devicesJonathan Matthew
2016-09-12Simplify handling of the AUX STA in iwm(4). There is no good reason forStefan Sperling
storing AUX STA data in the softc. Also, simplify error handling around iwm_send_cmd_pdu_status(), and inline its iwm_add_int_sta_common() helper along with fixing an uninitialized 'status' output parameter.
2016-09-10Use consistent indentation for multi-line function prototypes in iwm.Stefan Sperling
2016-09-10Rename the global nvm_to_read const int array to iwm_nvm_to_read.Stefan Sperling
2016-09-10iwm(4) inherited the 'MVM' prefix in many of its symbol names from iwlwifi.Stefan Sperling
Linux iwlwifi implements support for iwn(4) chips in the 'DVM' driver, and support for iwm(4) chips in the 'MVM' driver. In OpenBSD the 'MVM' prefix is redundant, so we can remove it to shorten many lines and reduce noise: s/iwm_mvm_/iwm_/g
2016-09-10Fix formatting in iwm such thatStefan Sperling
break; } becomes: break; }
2016-09-10Rename iwm_mvm_sta_send_to_fw() to iwm_mvm_sta_cmd(). Get rid of pointlessStefan Sperling
wrapper functions iwm_mvm_add_sta() and iwm_mvm_update_sta().
2016-09-10Move IWM_NVM_* macro definitions from if_iwm.c to if_iwmreg.h.Stefan Sperling
2016-09-05redo rwlock conversion now that i've compiled it on i386Ted Unangst
2016-09-05Backout previous commit; does not compile.Mark Kettenis
2016-09-05convert busy flag and tsleep to rwlock as in iwmTed Unangst
2016-09-04Replace iwm's ioctl tsleep/wakeup BUSY flag dance with an rwlock.Stefan Sperling
ok tedu
2016-09-04Even more enums which should be #defines were hiding inside if_iwm.c.Stefan Sperling
2016-09-04Remove unused IWM_READ_NVM_CHUNK_... macros.Stefan Sperling
2016-09-04Purge a ton of "-1 not informative" rated comments from iwm and improveStefan Sperling
some of the more useful ones.
2016-09-04Remove disabled iwm debug code which prints the regdomain.Stefan Sperling
2016-09-04Rename local variables called 'ret' to 'err' everywhere in iwm.Stefan Sperling
2016-09-04Clean up the pile of iwm MAC context command add/send/changed functions.Stefan Sperling
They all collapse to a single iwm_mvm_mac_ctxt_cmd() entry point.
2016-09-04Rename iwm_mvm_phy_ctxt_apply() to iwm_mvm_phy_ctxt_cmd() and get rid ofStefan Sperling
redundant iwm_mvm_phy_ctxt_add() and iwm_mvm_phy_ctxt_changed() wrappers.
2016-09-04naddy discovered that bha no longer builds because it includes the nowTed Unangst
deleted aha.h header. therefore bha must be dragged into the attic too.
2016-09-04Remove unused iwm_mvm_binding_update() wrapper function and replace theStefan Sperling
iwm_mvm_binding_add_vif() wrapper with a direct call to iwm_mvm_binding_cmd().
2016-09-04Get rid of pointless iwm_mvm_time_event_send_add() wrapper.Stefan Sperling
Call iwm_mvm_send_time_event_cmd() directly instead.
2016-09-03Remove iwm_release() by inlining its implementation into its only caller.Stefan Sperling
All the speculative comments about how the HW should be reset go away.
2016-09-03iwm was undecided between 'if (err != 0)' and 'if (err)'; switch to 'if (err)'Stefan Sperling
2016-09-03In iwm, move assignments to 'err' outside of if-statements.Stefan Sperling
2016-09-03The iwm code was torn between 'error' and 'err'; error -> err everywhereStefan Sperling
2016-09-03syncMike Belopuhov
2016-09-03New Intel 10GbE devicesMike Belopuhov
2016-09-03DPRINTFs infesting iwm die in a fire... too much noiseStefan Sperling
2016-09-03Get rid of iwm_set_pwr(). Call iwm_set_bits_mask_prph() directly instead.Stefan Sperling
2016-09-03fix some whitespace and overlong linesStefan Sperling