Re: shell set wlan country < ssid, dhcp waits on supplicant. fixes resolv

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Tue, 29 Jul 2025 16:36:33 UTC
On Tue, 29 Jul 2025, Julian H. Stacey wrote:

> On Fri, 25 Jul 2025 11:49:30 +0000 (UTC) Bjoern A. Zeeb: wrote
>> On Fri, 25 Jul 2025, Julian H. Stacey wrote:
>>
>>> Hi freebsd-wireless@, freebsd-net@
>>> This a repost as I sent to non existant mobile@ should have been wireless@.
>>>
>>> http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/wlan_action
>>> Solves problems I've had, See `Purposes:' & `Limitations:' Comments Welcome.
>>
>> "(country is not available in wpa_supplicant)."
>>
>> That's not true; it is but also only globally;  I would have wised for
>> it to be per-network for a while.  Might be interesting if someone took
>> that idea forward?
>
> Thanks.  I'd happily hack src/ later after I reduce my backlog,
> but no time yet even to upgrade my laptop from 12.4-RELEASE to 14.3.
>
> For now my shell fixes what I need, & more important than setting country,
> it delays calling dhclient till after wpa_supplicant has associated.
>
> I've wondered why others haven't suffered failing dhclient, Maybe
> I have a wrong config or dhclient waits better on wpa_supplicant by 14.3.

What's your rc.conf line for wlan0?  Are you using SYNCDHCP?

Beyond that I am very little help as if I need IPv4 I start dhclient
manually being IPv6-only otherwise most of my time.

/bz

-- 
Bjoern A. Zeeb                                                     r15:7