From owner-freebsd-wireless@FreeBSD.ORG Sat Apr 11 17:53:36 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E57F7C35 for ; Sat, 11 Apr 2015 17:53:35 +0000 (UTC) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (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 B2DDCFC for ; Sat, 11 Apr 2015 17:53:35 +0000 (UTC) Received: by iebrs15 with SMTP id rs15so39039391ieb.3 for ; Sat, 11 Apr 2015 10:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Ob+0RVFWX/L7027wu5z1T2VukvILxmfOHYP3pmWqgro=; b=Q5XWdYnHknK4vJL5OxarDYDmtDDFlTozP585b0cxj/nbGqhnH6kUuJuQPt161ys/eE B6g31WySAkUxw0Jo+nx05dJ7jVdC/J9WG+7MvQop7i/8OW1Q1cUvuu9Qupd3zM1h1z7f 6dRh69fJ+zYzs9w0o0RstzbPo5A9yj63LbEiy+O4b5zPhK+cy/MZbDEd0qUyqZvTZV1T n86qJ2WR3SENWmaG4iMmMxSdtK8cMlmxYlMBhJqkNcaQFCSUoFKk+O+YetpOsiqnqxuE 4bLc89HWDkG+DJ6aUO2wP5NOslMJodj99q5V7gKi1wflY2rJjPUHL8Q/0jhL4pCdRrnn RFnQ== MIME-Version: 1.0 X-Received: by 10.107.39.72 with SMTP id n69mr10578144ion.8.1428774815157; Sat, 11 Apr 2015 10:53:35 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Sat, 11 Apr 2015 10:53:35 -0700 (PDT) In-Reply-To: References: Date: Sat, 11 Apr 2015 10:53:35 -0700 X-Google-Sender-Auth: S9BY3UwrAmgb94qjM95T2nnzOGE Message-ID: Subject: Re: WPS support in hostapd From: Adrian Chadd To: Nelson Leung Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 11 Apr 2015 17:53:36 -0000 Which NIC is it? (I've never used WPS.) -a On 11 April 2015 at 10:46, Nelson Leung wrote: > Hi, > > I have a WiFi printer which supports only WPS (by push button) and I am > trying to get it connected to my FreeBSD AP (Freebsd 9.3-RELEASE-p10). > > The only information I found is the instructions in the latest version in > hostapd on setting up WPS. > http://w1.fi/cgit/hostap/plain/hostapd/README-WPS > http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf > > So I compiled and installed the hostapd from the port. > Since make config didn't have the options for enabling WPS, > I uncommented the lines directly in the files/config: > CONFIG_WPS=Y > CONFIG_WPS_UPNP=Y > > I followed the instructions in the README.WPS and try to connect by push > button. > There are no errors reported from hostapd, but I cannot connect the device > to the AP via WPS. > > This is what I did in FreeBSD to initiate the WPS: > # hostapd_cli > hostapd_cli v2.4 > Copyright (c) 2004-2015, Jouni Malinen and contributors > > This software may be distributed under the terms of the BSD license. > See README for more details. > > > Selected interface 'wlan0' > > Interactive mode > >> wps_pbc > <3>WPS-PBC-ACTIVE > OK >> wps_get_status > PBC Status: Active > Last WPS result: None >> <3>WPS-TIMEOUT > >> wps_get_status > PBC Status: Timed-out > Last WPS result: None > > > The WPS button on the device is pushed right after "wps_pbc" > But both are timed out. > > This is my current hostapd.conf: > # vi /etc/hostapd.conf > interface=wlan0 > driver=bsd > logger_syslog=-1 > logger_syslog_level=0 > logger_stdout=-1 > logger_stdout_level=0 > debug=3 > dump_file=/tmp/hostapd.dump > ctrl_interface=/var/run/hostapd > ctrl_interface_group=wheel > #### IEEE 802.11 related config #### > ssid=**MASKED** > macaddr_acl=0 > auth_algs=1 > #### IEEE 802.1X related config #### > ieee8021x=0 > #### WPA/IEEE 802.11i config ##### > wpa=2 > wpa_passphrase=**MASKED** > wpa_key_mgmt=WPA-PSK > wpa_pairwise=CCMP TKIP > > #WPS related config > #Per PSK for each WPS client > wpa_psk_file=/etc/hostapd.psk > > # Enable internal EAP server for EAP-WSC (part of Wi-Fi Protected Setup) > eap_server=1 > # WPS configuration (AP configured, do not allow external WPS Registrars) > wps_state=2 > ap_setup_locked=1 > # If UUID is not configured, it will be generated based on local MAC > address. > #uuid=87654321-9abc-def0-1234-56789abc0000 > wps_pin_requests=/var/run/hostapd.pin-req > device_name=Wireless AP > manufacturer=Company > model_name=WAP > model_number=123 > serial_number=12345 > device_type=6-0050F204-1 > os_version=01020300 > config_methods=label display push_button keypad > pbc_in_m1=1 > > > Any help is much appreciated. > > Thanks, > Nelson Leung > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"