From nobody Mon Dec 19 20:56:02 2022 X-Original-To: freebsd-wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NbX6v41hwz1H1qT for ; Mon, 19 Dec 2022 20:56:07 +0000 (UTC) (envelope-from freebsd-wireless@lordsith.net) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NbX6t4f3gz4LJp for ; Mon, 19 Dec 2022 20:56:06 +0000 (UTC) (envelope-from freebsd-wireless@lordsith.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-wireless@lordsith.net designates 185.233.34.20 as permitted sender) smtp.mailfrom=freebsd-wireless@lordsith.net; dmarc=none Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4NbX6r24dZzKy for ; Mon, 19 Dec 2022 20:56:04 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4NbX6q5gwPzLP for ; Mon, 19 Dec 2022 20:56:03 +0000 (UTC) Date: Mon, 19 Dec 2022 20:56:02 +0000 X-Soverin-Authenticated: true From: Marco To: "freebsd-wireless@freebsd.org" Subject: Re: New laptop: AC 9461/9560: iwm or iwlwifi? Message-ID: Reply-To: marco Mail-Followup-To: marco , "freebsd-wireless@freebsd.org" References: <2e3618b7-646b-02be-eb19-8a58aaf3619f@netfence.it> <537f4871-5184-394e-1f93-bf625dc088cf@netfence.it> List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: lordsith.net X-Operating-System: FreeBSD 13.1-STABLE amd64 X-Unix: Use Unix or die X-Uptime: 8:25PM up 9 days, 8:25, 1 user, load averages: 0.75, 0.51, 0.34 X-Spamd-Result: default: False [-2.35 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.953]; R_SPF_ALLOW(-0.20)[+ip4:185.233.34.20]; RCVD_IN_DNSWL_LOW(-0.10)[185.233.34.20:from]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_REPLYTO(0.00)[freebsd-wireless@lordsith.net]; DMARC_NA(0.00)[lordsith.net]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:211993, ipnet:185.233.34.0/24, country:NL]; REPLYTO_ADDR_EQ_FROM(0.00)[]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-wireless@freebsd.org]; HAS_ORG_HEADER(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; R_DKIM_NA(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4NbX6t4f3gz4LJp X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On Sat, Dec 17, 2022 at 10:40:25PM +0000, you (Bjoern A. Zeeb) sent the following to [freebsd-wireless] : > On Fri, 9 Dec 2022, marco wrote: > > Hi, > > sorry for only replying now. I had read through a few days ago and saw > your follow-up as well. No worries, thanks for taking the time to reply. > > > I just can't figure out why reverting back to iwm hasn't restored wi-fi > > connectivity. > > That indeed is a good question. Especially if there was a reboot/cold > start in between. My best guess is up there. > > > > Sorry for the long winded email. > > I'm sure I performed even more steps but can't put them in the correct > > order. > > Okay. > > Given your follow-up email. What's the state been since? Did you have > any further attempts at removing the loader lines for iwm again? I'm still on iwm and on stable/13-n253250-308d3d6be6da so no new bits have been introduced since my previous attempt and haven't attempted another switch to iwlwifi tbh. Despite running the lagg setup the wlan0 interface is fairly consistently authorized to my Ubiquiti U6-Lite AP with the occasional loss of connectivity (happens very rarely). Still at a loss why powering off and taking the laptop off of the mains for a few minutes was sufficient at least for FreeBSD to clone the wlan0 interface again (I can only assume BIOS/EFI is at play here in some unexpected way) > > Did you try again to switch back to iwlwifi? > > What happens if you are on a running iwm setup and then do the devctl > detach, set driver dance? > In theory you should be able to leave both: > wlans_iwm0="wlan0" > wlans_iwlwifi0="wlan0" > > lines in rc.conf so switching between one and the other is easier using > the devmatch_blocklist for iwm or doing it manually using devctl. I have never run that setup before with both but am willing to give that a try. I'll configure both together with the devmatch_blocklist entry for if_iwm, leaving verbose boot defined in loader.conf and I'll comment out the following from loader.conf again since they shouldn't be necessary and probably are even not wanted (takes extra time defining them in loader.conf correct?) # Network # WiFi if_iwm_load="YES" iwm9000fw_load="YES" Currently my network settings in rc.conf using wlan0 as cloned interface upon iwm is as follows (I left the commented out lines for experimenting with iwlwifi in. the devmatch_blocklist for if_iwlwifi I never had until I started the experimentation): # Network settings hostname="harbinger.fritz.box" ip6addrctl_policy="ipv6_prefer" ipv6_privacy="YES" #NO : Use privacy address on RA-receiving IFs (RFC 4941) #devmatch_blocklist="if_iwm" #wlans_iwlwifi0="wlan0" #create_args_wlan0="wlanmode sta regdomain ETSI country NL powersave" devmatch_blocklist="if_iwlwifi" wlans_iwm0="wlan0" create_args_wlan0="regdomain ETSI country NL authmode WPA powersave" ifconfig_wlan0="ether f8:75:a4:fa:9d:bf WPA" ifconfig_em0="up" create_args_em0="polling" cloned_interfaces="lagg0" ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 -tso -lro DHCP" ifconfig_lagg0_ipv6="inet6 accept_rtadv" rtsold_enable="YES" rtsold_flags="-aF" sshd_enable="YES" pf_enable="YES" pflog_enable="YES" # End Network settings > > I assume you did etcupdate or mergemaster after an update to stable/13 > so that this statement lists both iwlwifi and iwm: > > set wifi-driver-regex > "(ath|bwi|bwn|ipw|iwlwifi|iwi|iwm|iwn|malo|mwl|otus|ral|rsu|rtw|rtwn|rum|\ > run|uath|upgt|ural|urtw|wpi|wtap|zyd)[0-9]+"; > > Because then switching with devctl above should in theory auto-create > the wlan0 with the other driver again (if both wlans_*=".." lines are in > rc.conf). > I already was on stable/13 (have been for many months) using iwm for wlan. When I perform upgrades I choose to use /usr/src/tools/build/beinstall.sh after having built world and kernel which still runs mergemaster IIRC > > HTH and still happy to hear more about this in the hope we can lift some > of the confusing weirdness that happened. > > Lots of peace, > Bjoern -- Marco van Lienen -- FreeBSD enthusiast https://keybase.io/scarcry , GnuPG fingerprint: A025 D8AA AC1B D2FC 380D 4FC1 8EA0 0BA8 8580 E6CB "The Tuck Pendleton machine...zero defects."