Date: Fri, 21 Jul 2017 18:59:19 +0000 From: Sebastian Stroniewski-Wojtczak <sebastian.stroniewskiwojtczak@gmail.com> To: freebsd-wireless@freebsd.org Subject: FBSD 11.1 hostapd wont start Message-ID: <04ba3046-0b50-b41f-d671-a63677b3355a@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, Just updated a system from 11.0p10 to 11.1-RELEASE and I've noticed that hostapd won't start on wlan0. RC script require "wlan_xauth.ko" which is not part of GENERIC so extra recompilation is necessary especialy that RC for hostapd require all kern modules in rc script. Here is dmesg: --------- 170:ath0: <Atheros AR9485> mem 0xf7d00000-0xf7d7ffff irq 18 at device 0.0 on pci5 180:ath0: [HT] enabling HT modes 181:ath0: [HT] enabling short-GI in 20MHz mode 182:ath0: [HT] 1 stream STBC receive enabled 183:ath0: [HT] 1 RX streams; 1 TX streams 184:ath0: AR9485 mac 576.1 RF5110 phy 2457.9 185:ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 --------- I don't know why but N doesn't work for me, let this thing for later discussion. Here is my "rc.conf" --------- wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap -bgscan" ifconfig_wlan0="10.0.0.1 netmask 255.255.255.0 ssid 'freebsd-power' mode 11g channel 10 -bgscan" --------- "hostapd.conf" --------- interface=wlan0 debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=freebsd-power wpa=2 wpa_passphrase=MY_SWEET_SECRET #wpa_key_mgmt=WPA-PSK #wpa_pairwise=CCMP TKIP wpa_pairwise=CCMP hw_mode=g wmm_enabled=1 #ieee80211n=1 beacon_int=1000 dtim_period=2 max_num_sta=255 rts_threshold=2347 fragm_threshold=2346 --------- And finally hostapd debug output: --------- Configuration file: /etc/hostapd.conf Line 2: DEPRECATED: 'debug' configuration variable is not used anymore ctrl_interface_group=0 (from group name 'wheel') BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits) Completing interface initialization hostapd_setup_bss(hapd=0x801c5d000 (wlan0), first=1) wlan0: Flushing old station entries wlan0: Deauthenticate all stations bsd_set_privacy: enabled=0 bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=0 bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=1 bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=2 bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=3 Using interface wlan0 with hwaddr 00:08:ca:e4:a3:96 and ssid "freebsd-power" Deriving WPA PSK based on passphrase SSID - hexdump_ascii(len=13): 66 72 65 65 62 73 64 2d 70 6f 77 65 72 freebsd-power PSK (ASCII passphrase) - hexdump_ascii(len=24): [REMOVED] PSK (from passphrase) - hexdump(len=32): [REMOVED] bsd_set_ieee8021x: enabled=1 bsd_configure_wpa: enable WPA= 0x2 ioctl[SIOCS80211, op=7, val=5, arg_len=0]: Invalid argument bsd_set_ieee8021x: Failed to enable WPA/802.1X IEEE 802.1X initialization failed. wlan0: Flushing old station entries wlan0: Deauthenticate all stations bsd_set_privacy: enabled=0 bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=0 bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=1 bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=2 bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=3 hostapd_free_hapd_data(wlan0) bsd_set_ieee8021x: enabled=0 Interface initialization failed wlan0: interface state UNINITIALIZED->DISABLED wlan0: AP-DISABLED wlan0: Unable to setup interface. hostapd_interface_deinit_free(0x801c2c000) hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1 hostapd_interface_deinit(0x801c2c000) wlan0: interface state DISABLED->DISABLED hostapd_bss_deinit: deinit bss wlan0 wlan0: Flushing old station entries wlan0: Deauthenticate all stations bsd_set_privacy: enabled=0 bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=0 bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=1 bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=2 bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=3 wlan0: AP-DISABLED hostapd_cleanup(hapd=0x801c5d000 (wlan0)) hostapd_free_hapd_data: Interface wlan0 wasn't started hostapd_interface_deinit_free: driver=0x4789d0 drv_priv=0x801c66000 -> hapd_deinit hostapd_interface_free(0x801c2c000) hostapd_interface_free: free hapd 0x801c5d000 hostapd_cleanup_iface(0x801c2c000) hostapd_cleanup_iface_partial(0x801c2c000) hostapd_cleanup_iface: free iface=0x801c2c000 --------- I don't know yet what is different between 11.0 and 11.1 regarding 802x. Any help is appreciated. Regards, Sebastian Stroniewski-Wojtczak
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?04ba3046-0b50-b41f-d671-a63677b3355a>