Re: iwm(4): Update struct iwm_scan_results_notif. Remove a few old defines.

2017-01-30 Thread Imre Vadász
On 10:47 Sun 29 Jan , Stefan Sperling wrote: > On Mon, Jan 16, 2017 at 05:26:05PM +0100, Imre Vadász wrote: > > Hi, > > This patch updates the struct iwm_scan_results_notif to FW Api version 3, > > and removes the unused enum iwm_scan_complete_status status codes, as well

In amsdu_decap(), check for n->m_pkthdr.len == 0, not n->m_len == 0

2017-01-24 Thread Imre Vadász
Since m_split() in some cases returns an mbuf chain, where the pkthdr element contains no data (i.e. m_len == 0), the n->m_len == 0 check in sys/net80211/ieee80211_input.c in the amsdu_decap() function sometimes signals the end of the AMSDU frame too early. Instead it should check the actual

Two fixes for m_split() in sys/kern/uipc_mbuf.c.

2017-01-24 Thread Imre Vadász
This patch fixes two issues in m_split() in sys/kern/uipc_mbuf.c, which are correctly handled in FreeBSD's m_split(): If the m_split() would split an mbuf chain exactly between 2 mbufs (i.e. remain == 0), the returned M_PKTHDR might unnecessarily reference an mbuf cluster from the first part of

iwm(4): Remove old iwm_get_{active,passive}_dwell functions.

2017-01-16 Thread Imre Vadász
The iwm_get_active_dwell() and iwm_get_passive_dwell() functions are unused, and where removed in Linux iwlwifi git commit 9437e9941025bc83d3dd43f2927019149029f667. Index: sys/dev/pci/if_iwm.c === RCS file:

iwm(4): Update struct iwm_scan_results_notif. Remove a few old defines.

2017-01-16 Thread Imre Vadász
Hi, This patch updates the struct iwm_scan_results_notif to FW Api version 3, and removes the unused enum iwm_scan_complete_status status codes, as well as the deprecated/unused struct iwm_scan_complete_notif. This corresponds to the Linux iwlwifi commits 1083fd7391e989be52022f0f338e9dadc048b063

iwm(4): Remove definitions for deprecated old scanning API.

2017-01-16 Thread Imre Vadász
Hi, This removes the old deprecated scan API definitions, which have been unused since the upgrade of iwm(4) to version 16 firmware. Also matching the iwlwifi code, it uses a IWM_DEFAULT_SCAN_CHANNELS (== 40) definition instead of IWM_MAX_NUM_SCAN_CHANNELS (== 36) as default value for