Summary: | [iwn] [patch]: few minor fixes | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Andriy Voskoboinyk <avos> | ||||||||||||
Component: | wireless | Assignee: | freebsd-wireless (Nobody) <wireless> | ||||||||||||
Status: | Closed FIXED | ||||||||||||||
Severity: | Affects Only Me | CC: | adrian | ||||||||||||
Priority: | --- | ||||||||||||||
Version: | CURRENT | ||||||||||||||
Hardware: | Any | ||||||||||||||
OS: | Any | ||||||||||||||
Attachments: |
|
Created attachment 153892 [details]
Few minor fixes
- Add missing IWN_UNLOCK(sc).
- Remove redundant initialization in iwn_ioctl().
Created attachment 153995 [details]
Patch-v2.diff
- Set maxfrags to IWN_MAX_SCATTER - 1 (first segment is used by the TX command)
- Remove redundant "not" from error string.
Created attachment 153996 [details]
Patch-v2.diff
Mark previous patches as obsolete.
Created attachment 156730 [details]
Patch-v3.diff (untested)
- Pass control frames to host.
- Do not set TX timer on error.
- Free node references for unsent frames on device stop.
Hi, Do you not have anything with iwn(4) hardware in it? (In reply to Adrian Chadd from comment #5) No, I don't have such devices. Would you like a thinkpad with one in it? A commit references this bug: Author: adrian Date: Sat May 16 05:59:26 UTC 2015 New revision: 282999 URL: https://svnweb.freebsd.org/changeset/base/282999 Log: Various iwn(4) fixes. * simplify channel logic for determining RF gain setting in scan setup * don't set TX timer on error * free node references for unsent frames on device stop * set maxfrags to IWN_MAX_SCATTER-1 (first segment is used by TX command) * add missing IWN_UNLOCK() from interrupt path when the hardware disappears. * pass control frames to host * nitems() instead of local macro Tested: * Intel 5100, STA mode PR: kern/196264 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com> Changes: head/sys/dev/iwn/if_iwn.c |
Created attachment 150952 [details] Remove check for c->ic_flags & IEEE80211_CHAN_PASSIVE