if_iwm - Properly implement iwm_wme_update callback function.
authorImre Vadász <imre@vdsz.com>
Sun, 23 Oct 2016 19:34:08 +0000 (21:34 +0200)
committerImre Vadász <imre@vdsz.com>
Sun, 23 Oct 2016 20:20:22 +0000 (22:20 +0200)
commitb8bd6cd746d1f45e616ccfcbeed06dfe452a1108
tree46912c69dcf72a365e7b79dc9863822dea81cc29
parentb522d71843b39684efbd90f87cee783d31ccc99d
if_iwm - Properly implement iwm_wme_update callback function.

* Inspired by iwn(4) and Linux iwlwifi.

* Read wme parameters into a buffer within struct iwm_vap in
  iwm_wme_update().

* If we aren't associated yet, the new settings will soon be sent
  by iwm_mvm_mac_ctxt_changed() during association.

* If we are already associated, explicitly call iwm_mvm_mac_ctxt_changed()
  from iwm_wme_update() to send the new settings to the firmware.

* Change iwm_mvm_ac_to_tx_fifo mapping, to fit the freebsd net80211
  WME stream class numbering, instead of Linux's enum ieee80211_ac_numbers.
sys/dev/netif/iwm/if_iwm.c
sys/dev/netif/iwm/if_iwm_mac_ctxt.c
sys/dev/netif/iwm/if_iwm_mac_ctxt.h
sys/dev/netif/iwm/if_iwmvar.h