Re: refcount btrace

2022-03-19 Thread Visa Hankala
On Sat, Mar 19, 2022 at 12:10:11AM +0100, Alexander Bluhm wrote: > On Thu, Mar 17, 2022 at 07:25:27AM +, Visa Hankala wrote: > > On Thu, Mar 17, 2022 at 12:42:13AM +0100, Alexander Bluhm wrote: > > > I would like to use btrace to debug refernce counting. The idea > > > is to a a tracepoint

Re: XBox One gamecontroller support

2022-03-19 Thread Stefan Sperling
On Fri, Jan 15, 2021 at 06:32:04AM -0700, Thomas Frohwein wrote: > @@ -557,6 +571,23 @@ uhidev_open(struct uhidev *scd) > DPRINTF(("uhidev_open: couldn't allocate owxfer\n")); > error = ENOMEM; > goto out3; > + } > + > +

fix iwm/iwx announcing VHT on 2GHz during scans

2022-03-19 Thread Stefan Sperling
Both iwm and iwx are currently writing VHT capabilities into the "common" secion of the firmware's probe request frame template. This "common" section is used on both 2GHz and 5GHz bands. Announcing VHT capabilities on 2GHz makes no sense. Move them into the 5GHz-only section. ok? diff

Re: net80211: fix Rx channel hack used by bwfm, iwn, iwm, and iwx

2022-03-19 Thread Stefan Sperling
On Sat, Mar 19, 2022 at 05:32:48PM +0100, Stefan Sperling wrote: > The net80211 input routine expects that ic->ic_bss->ni_chan will always > correspond to the channel which is currently being scanned. This dates > back to older devices which are manually tuned to the next channel by the > driver

net80211: fix Rx channel hack used by bwfm, iwn, iwm, and iwx

2022-03-19 Thread Stefan Sperling
The net80211 input routine expects that ic->ic_bss->ni_chan will always correspond to the channel which is currently being scanned. This dates back to older devices which are manually tuned to the next channel by the driver during SCAN->SCAN state transitions. And this must of course be kept

Re: initial 11ac support for iwm(4)

2022-03-19 Thread Stefan Sperling
On Fri, Mar 18, 2022 at 11:36:50AM +0100, Stefan Sperling wrote: > On Fri, Mar 18, 2022 at 05:25:42AM +0100, Landry Breuil wrote: > > interestingly, when associated over ac to the livebox the background > > scans only shows the 5ghz channels from both APs, but when im associated > > to my regular

two net80211 AP selection fixes

2022-03-19 Thread Stefan Sperling
Fix number 1: During network selection (for 'ifconfig join'), give APs which support 11n and 11ac a higher score. VHT implies HT, so 11ac networks receive 2 additional points while 11n-only networks receive one additional point. Fix number 2: During AP selection within a given network, we would

fix wrong logic in iwm_vht_single_rate_control()

2022-03-19 Thread Stefan Sperling
I botched the logic used by a check in iwm_vht_single_rate_control(). ok? diff 15b71cdf8530b1f64fb85d50873b1ff1fad3f0e8 /usr/src blob - 2c01f718d47acb01a227795fef659ef353f5c7f6 file + sys/dev/pci/if_iwm.c --- sys/dev/pci/if_iwm.c +++ sys/dev/pci/if_iwm.c @@ -5550,7 +5550,7 @@

Re: fix multiple iwm/iwx interfaces

2022-03-19 Thread Mark Kettenis
> Date: Sat, 19 Mar 2022 14:18:14 +0100 > From: Stefan Sperling > > On Wed, Mar 16, 2022 at 10:03:36PM +0100, Stefan Sperling wrote: > > On Wed, Mar 16, 2022 at 08:46:01PM +0100, Jeremie Courreges-Anglas wrote: > > > On Mon, Mar 14 2022, Stefan Sperling wrote: > > > > It is currently impossible

Re: fix multiple iwm/iwx interfaces

2022-03-19 Thread Stefan Sperling
On Wed, Mar 16, 2022 at 10:03:36PM +0100, Stefan Sperling wrote: > On Wed, Mar 16, 2022 at 08:46:01PM +0100, Jeremie Courreges-Anglas wrote: > > On Mon, Mar 14 2022, Stefan Sperling wrote: > > > It is currently impossible to use more than one iwm or iwx interface > > > in a system because I don't

OpenBSD/arm64 on Apple M1 systems

2022-03-19 Thread Mark Kettenis
It has taken a while, but I'm pleased to announce that OpenBSD/arm64 works well enough on Apple M1 systems for some wider testing. A major milestone was reached with the release of the Asahi Linux installer: https://asahilinux.org/2022/03/asahi-linux-alpha-release/ This provides an easy way