diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2016-04-25 16:13:04 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2016-04-25 16:13:04 +0000 |
commit | 8d170e6ac11cf88da5a06328aacbfcd8d34d2fff (patch) | |
tree | 918d6c7636637bd77f4c62bec208ef6a7e5f59f3 /sys/dev/iwm/if_iwm_time_event.h | |
parent | c37dc1fb0b29feba4c9c2392f1eb6ce6aeeb5cbf (diff) | |
download | src-8d170e6ac11cf88da5a06328aacbfcd8d34d2fff.tar.gz src-8d170e6ac11cf88da5a06328aacbfcd8d34d2fff.zip |
[iwn] fix firmware command use in iwm_auth().
The iwm firmware has separate commands for add, modify and delete for
various things (mac, phy context, etc.) The openbsd driver has a habit
of just completely resetting the NIC each time, which is technically
mostly okay (as long as the reset doesn't actually fail!) but it means
a lot of the code is doing ADD when it should do MODIFY.
The firmware responds in kind - it just asserts.
This fixes auth attempts that occur after the NIC has been already
configured.
(I'm sure there are more instances of this!)
Tested:
iwm0: <Intel Dual Band Wireless AC 7260> mem 0xf1400000-0xf1401fff irq 17 at device 0.0 on pci2
iwm0: revision: 0x140, firmware 25.228 (API ver. 9)
.. STA mode.
Submitted by: Masachika ISHIZUKA <ish@amail.plala.or.jp>
Notes
Notes:
svn path=/head/; revision=298582
Diffstat (limited to 'sys/dev/iwm/if_iwm_time_event.h')
-rw-r--r-- | sys/dev/iwm/if_iwm_time_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iwm/if_iwm_time_event.h b/sys/dev/iwm/if_iwm_time_event.h index 9d06db641249..015652ece32b 100644 --- a/sys/dev/iwm/if_iwm_time_event.h +++ b/sys/dev/iwm/if_iwm_time_event.h @@ -108,6 +108,6 @@ #define __IF_IWM_TIME_EVENT_H__ extern void iwm_mvm_protect_session(struct iwm_softc *sc, struct iwm_node *in, - uint32_t duration, uint32_t min_duration, uint32_t max_delay); + uint32_t duration, uint32_t max_delay); #endif /* __IF_IWM_TIME_EVENT_H__ */ |