Re: bwfm: no rx after changing lladdr

2024-02-19 Thread Stefan Sperling
On Sun, Feb 18, 2024 at 11:21:15AM -1000, Todd Carson wrote: > > Thanks for the pointers; updated diff below to set the MAC in > bwfm_init() if preinit has already run. > > Works on boot with "lladdr random" as the first line in hostname.bwfm0, > and also changing the lladdr after boot with ifcon

Re: bwfm: no rx after changing lladdr

2024-02-18 Thread Todd Carson
Thanks for the pointers; updated diff below to set the MAC in bwfm_init() if preinit has already run. Works on boot with "lladdr random" as the first line in hostname.bwfm0, and also changing the lladdr after boot with ifconfig. diff /usr/src commit - 6c24eb55e021991196003dc7f0a643e806b14295 pa

Re: bwfm: no rx after changing lladdr

2024-02-18 Thread Theo de Raadt
Yes, the normal pattern is to update the driver soft state, and then do perform a backside "down / up" transition. Stefan Sperling wrote: > On Sat, Feb 17, 2024 at 06:27:40PM -1000, Todd Carson wrote: > > > > On a Raspberry Pi 4 running a recent snapshot, I found that the built-in > > bwfm inte

Re: bwfm: no rx after changing lladdr

2024-02-18 Thread Stefan Sperling
On Sat, Feb 17, 2024 at 06:27:40PM -1000, Todd Carson wrote: > > On a Raspberry Pi 4 running a recent snapshot, I found that the built-in > bwfm interface would fail to receive non-broadcast traffic after > changing the MAC address with ifconfig (for example by having > "lladdr random" in hostname