Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2010 16:20:05 -0430
From:      Alberto Mijares <amijaresp@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   wlan0 + hostap + rc.conf
Message-ID:  <286906751003161350k31a6286bld97defd3711edd62@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi Hackers,

>From man rc.conf:

If a wlans_=E2=9F=A8interface=E2=9F=A9 variable is set, an wlan(4) interfac=
e will be
created for each item in the list with the wlandev argument set to
interface.  Further wlan cloning arguments may be passed to the
ifconfig(8) create command by setting the create_args_=E2=9F=A8interface=E2=
=9F=A9
variable.  One or more wlan(4) devices must be created for each
wireless devices as of FreeBSD 8.0.

So, this is my rc.conf

ifconfig_sis0=3D"up"
wlans_ath0=3D"wlan0"
create_args_wlan0=3D"wlanmode ap"
ifconfig_wlan0=3D"ssid nombre channel X mode 11g up"
cloned_interfaces=3D"bridge0"
ifconfig_bridge0=3D"addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up"

However, when I run /etc/rc.d/netif restart, an error says:

ifconfig: create: bad value

the create command fails and everything related to the AP initialization.

When I run the command in the CLI it works fine

# ifconfig wlan0 create wlandev ath0 wlanmode ap

What could be wrong?

Thanks in advance.


Alberto Mijares



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?286906751003161350k31a6286bld97defd3711edd62>