History log of /freebsd-current/sys/dev/iwm/if_iwm_util.c
Revision Date Author Comments
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# e7065dd1 27-Nov-2019 Mark Johnston <markj@FreeBSD.org>

iwm(4): Remove _mvm from the namespace.

This was inherited from iwlwifi, which drives devices supported by both
iwn(4) and iwm(4) in FreeBSD. In iwm(4) _mvm is meaningless, so remove
it. OpenBSD made the same change a long time ago. No functional change
intended.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# f55c604b 25-Jul-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Add iwm_mvm_send_lq_cmd() from Linux iwlwifi to if_iwm_util.c.

Obtained from: dragonflybsd.git 8a5dd7783e407856754093f5b1c9c757c64534b7


# 26ce1fcd 12-May-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Fix iwm_mvm_send_cmd_pdu(_status) declarations. Make id a uint32_t.

* This fixes cases where the group id of wide commands got lost, e.g. this
happened to the IWM_SCAN_ABORT_UMAC command.

Obtained from: dragonflybsd.git 71310fab0caca79bb5da43d9d642e77a4c27eea2


# c44c4d8d 08-May-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Allow listening on both chains/atennas to get diversity.

This might improve throughput slightly when far from the accesspoint,
apparently by allowing the firmware to listen on either of the two
antennas (if there are two, i.e. on 7260/7265/8260), whichever has
a better reception.

Obtained from: dragonflybsd.git 3b7fc5aac51f81062da0a2c8fdac23e683fbd548


# 616201d1 08-May-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] include opt_iwm.h and opt_wlan.h consistently in all files.


# b28a6ab3 21-Feb-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Move iwm_dma_contig_alloc/_free functions to if_iwm_util.c.

Obtained from: dragonflybsd.git 83a1185edeede081051a6c00417d4c5a8f5988eb


# 99baf303 07-Feb-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Implement apmg_wake_up_wa workaround properly for 7000 family.

* Add iwm_pcie_set_cmd_in_flight() and iwm_pcie_clear_cmd_in_flight()
helper methods.

* Use ring->queued tracking in the command queue to set/clear the
cmd_hold_nic_awake bit at the right points.

Taken-From: Linux iwlwifi

Obtained from: DragonflyBSD commit ce43f57f5308b579ea21e8a5a29969114ba2247d


# 2a2476b3 05-Feb-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Sync valid_tx_ant and valid_rx_ant mask handling with iwlwifi.

* This fixes the phy_cfg field sent in the iwm_send_phy_cfg_cmd()
command, which wasn't taking into account the valid_rx_ant and
valid_tx_ant masks from nvm_data before.

Tested:

* 7260, STA mode, 2G and 5G

Obtained from: DragonflyBSD commit cbb82693c18fd71b4eb86855b82d03995f352d65


# 6349bdb3 05-Feb-2017 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Sync nvm parsing code with Linux iwlwifi.

* sc->sc_nvm becomes sc->nvm_data and is now a pointer instead of an
inlined struct.

* Add sc->eeprom_size and sc->nvm_hw_section_num configuration values to
struct iwm_softc.

* For now continue to avoid negative error return-values, and use pointer
variables for some return values, as before.

* Continue to omit LAR (location aware regulatory) related code as well.

Tested:

* Intel 7260, STA mode (2GHz)

Obtained from: dragonflybsd commit 39f8331b1a6f295291e08c377da12a8e7a5436c0


# 6a5bc1d1 25-Jul-2016 Sean Bruno <sbruno@FreeBSD.org>

iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update.

Submitted by: Kevin Bowling (kevin.bowling@kev009.com)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6967


# 1eccf203 22-Jun-2016 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Use mbuf for large firmware commands, like OpenBSD does.

We also need to consider the size of large firmware commands in iwm_alloc_tx_ring(),
in the dma tag creation, when qid == IWM_MVM_CMD_QUEUE. The old code apparently
only allocated a 2KB (MCLBYTES) sized buffer when it actually expected 4KB.

Submitted by: Imre Vadasz <imre@vdsz.com>
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D6824


# 7a8b94e1 01-Jun-2016 Adrian Chadd <adrian@FreeBSD.org>

[iwm] Use IWM_MAX_CMD_PAYLOAD_SIZE to improve command length checks.

Taken-From: OpenBSD (parts of if_iwm.c r1.57 and if_iwmreg.h r1.10)

Obtained from: DragonflyBSD b70c1eaad06257c5c7f4d8110d21642ebec14f42


# b789292f 19-May-2016 Andriy Voskoboinyk <avos@FreeBSD.org>

iwm: add 'opt_wlan.h' include into source files.

Include net80211 options file, so IEEE80211_DEBUG_REFCNT option will be
handled correctly.


# 49fdbf0a 08-Aug-2015 Rui Paulo <rpaulo@FreeBSD.org>

iwm: use the proper include path for iwm headers.


# 2e7b8b8b 08-Aug-2015 Rui Paulo <rpaulo@FreeBSD.org>

iwm: fix a KASSERT: s/ds_size/ds_len/.


# d4886179 08-Aug-2015 Rui Paulo <rpaulo@FreeBSD.org>

Import OpenBSD's iwm WiFi driver for Intel 3160/7260/7265.

There are still several bugs, but I've been using it for a while now.
Thanks to all the testers and to Adrian for his help with this
driver.

This driver isn't connected to the build yet, but it will be soon.

There's no MFC planned because the driver isn't very stable yet.

Reviewed by: adrian
Obtained from: https://github.com/rpaulo/iwm
Tested by: adrian, gjb, dumbbell (others that I forgot).
Relnotes: yes