Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 17:32:19 +0100
From:      "Christoph P.U. Kukulies" <kuku@kukulies.org>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   wireless woes ieee80211_new_state_locked: pending INIT -> SCAN transition lost
Message-ID:  <1ea7734e-cb60-0892-f7b3-c228aee53471@kukulies.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Nov 15 18:02:30 myrouter kernel: wlan0: ieee80211_new_state_locked: 
pending INIT -> SCAN transition lost


  ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         ether 80:1f:02:e6:95:e1
         inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
         media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
         status: running
         ssid fantasy_name channel 1 (2412 MHz 11g) bssid 80:1f:02:e6:95:e1
         regdomain FCC country US authmode WPA2/802.11i privacy MIXED
         deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 
scanvalid 60
         protmode CTS wme dtimperiod 1 -dfs
         groups: wlan


rc.conf:




dhcpd_enable="YES"                          # dhcpd enabled?
dhcpd_flags="-q"                            # command option(s)
dhcpd_conf="/usr/local/etc/dhcpd.conf"      # configuration file
dhcpd_ifaces="wlan0"                             # ethernet interface(s)
dhcpd_withumask="022"                       # file creation mask


hostapd_enable="YES"

wlans_urtwn0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 192.168.0.1 netmask 255.255.255.0"
#ifconfig_wlan0="inet 192.168.0.1 netmask 255.255.255.0 ssid fantasy 
channel 1"  commented (!)

hostapd.conf:

interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=fantasy_name
channel=1
wpa=2
wpa_passphrase=§$%&/§$%&/
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP

The point is: clients don't receive a DHCP lease.

Also I don't know how to get into mode 11n and get automatic channel 
choosing.


--

Christoph





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?1ea7734e-cb60-0892-f7b3-c228aee53471>