From owner-freebsd-wireless@freebsd.org Fri Jul 21 16:58:36 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31E32DAC27F for ; Fri, 21 Jul 2017 16:58:36 +0000 (UTC) (envelope-from sebastian.stroniewskiwojtczak@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AA3417667B for ; Fri, 21 Jul 2017 16:58:35 +0000 (UTC) (envelope-from sebastian.stroniewskiwojtczak@gmail.com) Received: by mail-lf0-x232.google.com with SMTP id y15so25487793lfd.5 for ; Fri, 21 Jul 2017 09:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=yV26roB8OBK0bSyl8PTd9XGOtuqErL2mxHMigUHxTfw=; b=Gt61LD3YBBI/hiMwLfTr0xH8chML5eXutBbHqm+VzkZZkL7Di77I3qdnC29kNtG2F9 IYhxJ3NTesFAxTCltViDTLq+OL9Z/3SznLBEZfVLOOYH+/uZUCl+PTazHo/TqOm4DLQm yg7yeFJ6Z9VKb23KC/S+j6Z157jdIbmhZWUfruQfhAYbZ51HivYr0EeoAvKrOvNJ0Iap 0QyqA34z+rK74RgsJGQHWef6lnBbw2fLjTjwYTxO5Pt6iSkXfyBvhpuhDXD6J6waVx2a YM+fNXP96tmtxORQpZr9D0QbAef8vdVeSSgf/PlMhf+LnSWIuXyoSdXked9mhID3Uk6i Ax4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=yV26roB8OBK0bSyl8PTd9XGOtuqErL2mxHMigUHxTfw=; b=aC7rR/ELSZklD6kTrSXwKy2w9smGZ075JfcYbarCmcNcCAoBnK1wwNPfji3jsspkpc 6emQGt5H0A1938iOeKudUXzF2IgjF+E7RSr0Q4LRrXQvdq1HGq5J280VFIgfWgV/x5te e/9hNrgtMN9zrgLi3zV3y5dWToPIc5YJQd6AyOBX6oJHZntR8p95GJ/wogyILiX4QECa y/ts3cx/pCJ8Mm4VWOo5r+Zga2JQz3s+3uH1jvTOtMrAzPF9sbaoh8Ou7DGBCvKzZ1c4 r9zj2gQU5sdars9lpNPG06HvecVlYJjQjxdV700m/iV2cv4Huzg02c3zvG5IFMuL1MlS Z84w== X-Gm-Message-State: AIVw111AKz3ADd1uiptB4FwNBNZeZHaTZj4IoDhv+PoMIUndu1735gke BY2Ka/xUrNBxPjvk5gU= X-Received: by 10.46.22.13 with SMTP id w13mr2475756ljd.76.1500656313535; Fri, 21 Jul 2017 09:58:33 -0700 (PDT) Received: from versatile-lab.pl ([31.179.181.62]) by smtp.gmail.com with ESMTPSA id d15sm1000745lfe.1.2017.07.21.09.58.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jul 2017 09:58:32 -0700 (PDT) To: freebsd-wireless@freebsd.org From: Sebastian Stroniewski-Wojtczak Subject: FBSD 11.1 hostapd wont start Message-ID: <04ba3046-0b50-b41f-d671-a63677b3355a@gmail.com> Date: Fri, 21 Jul 2017 18:59:19 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2017 16:58:36 -0000 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: 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