Stefan Sperling writes:
> On Sun, Mar 06, 2016 at 10:22:17PM +0200, cho...@jtan.com wrote:
> > >Description:
> >     /etc/hostname.athn0 contains:
> > inet 192.168.42.1 255.255.255.0
> > mediaopt hostap chan 56
> > nwid Testies
> > wpakey insecure
> 
> Note that setting an address puts the interface UP implicitly.
> So you'll want to configure all the wireless bits first, and set the
> address afterwards! Otherwise, your wireless settings will race the
> automatic mode/channel selection I described in my other reply from
> a few minutes ago.
> 
> So try this something like this instead:
> 
> media autoselect mediaopt hostap mode 11g
> chan 1
> inet 192.168.42.1 255.255.255.0
> 
> or:
> 
> media autoselect mediaopt hostap mode 11a
> chan 36
> inet 192.168.42.1 255.255.255.0

That, and the process for switching mode at runtime in your other mail,
clears things up a lot and the AP seems to be working as it should
now. More testing will ensue.

Note that I got the order of configuration lines directly from athn(4)
and some other wireless driver manpages also have examples with inet
lines prior to media settings.

It does seem that the control tools will try and do things which are
impossible but it looks like documentation can clear most of that up and
at least they're easier to fix than mysterious driver bugs happening 2
continents away, which thankfully doesn't seem to be the case.

Thanks,

Matthew

Reply via email to