NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: static Wifi connection
Obviously, I provided too much context...
The main puzzle piece is, that you need
critical_filesystems_local="OPTIONAL:/var OPTIONAL:/usr"
to start wpa_supplicant from rc when /usr is a dedicated filesystem.
That information was well hidden in the scripts.
Now the problem remains, that I often get
Aug 2 10:47:21 gw2 wpa_supplicant[153]: iwm0: Authentication with
f0:7d:68:b2:e8:10 timed out.
Aug 2 10:47:21 gw2 wpa_supplicant[153]: iwm0: CTRL-EVENT-DISCONNECTED
bssid=f0:7d:68:b2:e8:10 reason=3 locally_generated=1
repeatedly. But the same configuration will eventually succeed at some
point. Again: Has anybody an idea, what "reason=3" means? Does this
provide any more information why the authentication failes?
I also see this from time to time:
Aug 2 11:05:27 gw2 wpa_supplicant[158]: ioctl[SIOCS80211, op=23,
val=0, arg_len=0]: Invalid argument
Are there any known problems with the support for Intel 3165 in iwm(4)?
On Thu, Aug 1, 2019 at 1:34 PM Greg Troxel <gdt%lexort.com@localhost> wrote:
>
> Jörn Clausen <joernc%googlemail.com@localhost> writes:
>
> > I have a NetBSD box as gateway between my DSL router and the rest of
> > my network. At the moment, it uses a NIC which connects to a Netgear
> > WNCE2001 (an "access point in client mode", for want of a better
> > description), and everything works fine.
>
> I don't understand "AP in client mode". If you mean that the "access
> point" is running as a bridge, that is what I'd expect.
>
> Are you using the netgear to provide wifi to laptops/phones/etc., so
> that they get DHCP addresses from a dhcpd running on your netbsd box,
> which then does nat/routing to send their traffic over the DSL line?
>
> Or do you mean something totally different?
>
> > I would like to get rid of the ageing Netgear hardware and instead use
> > the built-in Wifi adapter of the machine. It is an Intel 3165 which is
> > recognized as
>
> That means you need to run the machine's wifi in "hostap" mode, so that
> it appears to be an access point.
> > I have /etc/ifconfig.iwm0 with
> >
> > ssid FOOBAR
> >
> > and /etc/wpa_supplicant.conf with
> >
> > ctrl_interface=/var/run/wpa_supplicant
> > network={
> > priority=99
> > ssid="FOOBAR"
> > bssid=f0:7d:68:b2:e8:10
> > psk="sharedsecret"
> > }
> >
> > When I do
> >
> > $ wpa_supplicant -s -i iwm0 -c /etc/wpa_supplicant.conf
> >
> > the adapter connects (sometimes it takes two or three tries), and I
> > assign the IP address from my DSL router with
>
> So you are being a client with that wifi and connecting to the netgear,
> which forwards back to the box over ethernet?
--
Joern Clausen
https://www.oe-files.de/photography/
Home |
Main Index |
Thread Index |
Old Index