From owner-freebsd-wireless@FreeBSD.ORG Sat May 12 05:27:57 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2981F106566B for ; Sat, 12 May 2012 05:27:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E9B398FC0A for ; Sat, 12 May 2012 05:27:56 +0000 (UTC) Received: by dadv36 with SMTP id v36so4461899dad.13 for ; Fri, 11 May 2012 22:27:56 -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 :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KyhiT4tWb/7tB6uWSZp8H98SZmkmlD0Ra3ZxkOAfbCk=; b=JbIjwtiY8cgbJBr71bVvBiS1KWc6kdIJm0BiYAVKqKe2tDdQfotoJ4+AxGW4egwliQ XH6XFIby0PXuHrIBUvpWQUckUvH2G3ba7r6TAMZyhUJBKSD43v9zoqFrTkS7hBbABaqn 6BXX9LHZsYphPFQIs+eI6dkrGDhvxiarMtvaVkKHyA6WcxeMg2BeNlgfKvsng1VEvUxP 01BnXq/w8fkHR9S0ajp7mISH/sYZJU1Gq8ND2GcTRYyhUBXYDUIjgOSz6YUzYsNcYXpo cRBR+p0TUgmFW3pBmibmRTL5J8ngxkblkyIvEYgNwNQKVZZHuKl2fFTCBIUbI9RgAQOS XqZQ== MIME-Version: 1.0 Received: by 10.68.201.169 with SMTP id kb9mr1784752pbc.101.1336800476404; Fri, 11 May 2012 22:27:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.142.203.2 with HTTP; Fri, 11 May 2012 22:27:56 -0700 (PDT) In-Reply-To: <201205101549.20368.jhugo@meraka.csir.co.za> References: <201205101549.20368.jhugo@meraka.csir.co.za> Date: Fri, 11 May 2012 22:27:56 -0700 X-Google-Sender-Auth: su9kcNcI3yjGzl5ZDww6fkgkbQ0 Message-ID: From: Adrian Chadd To: Johann Hugo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: wpa_supplicant + WPA psk + ad-hoc mode working X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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, 12 May 2012 05:27:57 -0000 Hi! This is great! Would you be willing to write a wiki.freebsd.org tutorial page on this? If you are then please create a wiki account and let me know what it is. I'll then add you to the contributors group. Thanks! Adrian On 10 May 2012 06:49, Johann Hugo wrote: > Hi > > Just managed to configure AES-CCM encryption between three wifi devices i= n > adhoc mode and every thing seems to work fine. > > I also found out that "ap_scan" must be set to "2" before it works. > > Looks like the man page needs a small update: > =C2=A0 =C2=A0 ap_scan > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Access point scanning and selec= tion control; one of 0, 1 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (default), or 2. =C2=A0Only set= ting 1 should be used with the wlan(4) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 module; the other settings are = for use on other operating sys=E2=80=90 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tems. > > =C2=A0 =C2=A0mode =C2=A0 =C2=A0IEEE 802.11 operation mode; either 0 (infr= astructure, default) or > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 (IBSS). =C2=A0Note that IBSS = (adhoc) mode can only be used with > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt set to NONE (plaintext= and static WEP), or key_mgmt set > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 to WPA-NONE (fixed group key TK= IP/CCMP). =C2=A0In addition, ap_scan > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 has to be set to 2 for IBSS. = =C2=A0WPA-NONE requires proto set to WPA, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt set to WPA-NONE, pairw= ise set to NONE, group set to > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 either CCMP or TKIP (but not bo= th), and psk must also be set. > > ---------------------------- > Here is my configs: > ---------------------------- > mesh-2aee:~ # more /etc/rc.conf > > wlans_ath0=3D"wlan0" > create_args_wlan0=3D"wlanmode adhoc country ZA" > ifconfig_wlan0=3D"WPA channel 13 ssid mesh bssid 66:98:40:46:b7:0a" > > > mesh-2aee:~ # more /etc/wpa_supplicant.conf > > ap_scan=3D2 > > network=3D{ > =C2=A0ssid=3D"mesh" > =C2=A0mode=3D1 > =C2=A0key_mgmt=3DWPA-NONE > =C2=A0proto=3DWPA > =C2=A0pairwise=3DNONE > =C2=A0group=3DCCMP > =C2=A0psk=3D"testsecret" > } > > mesh-2aee:~ # ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > =C2=A0 =C2=A0 =C2=A0 =C2=A0ether 00:80:48:4f:2a:ee > =C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 fe80::280:48ff:fe4f:2aee%wlan0 prefixlen= 64 scopeid 0x7 > =C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 fd9c:6829:597c:20:280:48ff:fe4f:2aee pre= fixlen 64 > =C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 fd9c:6829:597c:20:: prefixlen 64 anycast > =C2=A0 =C2=A0 =C2=A0 =C2=A0nd6 options=3D21 > =C2=A0 =C2=A0 =C2=A0 =C2=A0media: IEEE 802.11 Wireless Ethernet autoselec= t mode 11g > =C2=A0 =C2=A0 =C2=A0 =C2=A0status: running > =C2=A0 =C2=A0 =C2=A0 =C2=A0ssid mesh channel 13 (2472 MHz 11g) bssid 66:9= 8:40:46:b7:0a > =C2=A0 =C2=A0 =C2=A0 =C2=A0regdomain NONE country ZA ecm authmode WPA pri= vacy ON deftxkey 1 > =C2=A0 =C2=A0 =C2=A0 =C2=A0AES-CCM 1:128-bit txpower 30 scanvalid 450 pro= tmode CTS wme burst > =C2=A0 =C2=A0 =C2=A0 =C2=A0roaming MANUAL > > mesh-2aee:~ # ifconfig wlan0 list sta > ADDR =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AID CHAN RATE RSSI = IDLE =C2=A0TXSEQ =C2=A0RXSEQ CAPS FLAG > 00:80:48:4f:2a:ee =C2=A0 =C2=A00 =C2=A0 13 =C2=A0 0M =C2=A04.0 =C2=A0105 = =C2=A047746 =C2=A0 2496 IP =C2=A0 A > 00:21:a4:32:06:53 =C2=A0 =C2=A00 =C2=A0 13 =C2=A024M 22.5 =C2=A0 =C2=A00 = =C2=A0 1793 =C2=A022160 IPS =C2=A0AQE =C2=A0 =C2=A0 WPA WME > 00:21:a4:32:06:39 =C2=A0 =C2=A00 =C2=A0 13 =C2=A024M 25.5 =C2=A0 =C2=A00 = =C2=A024479 =C2=A0 8848 IPS =C2=A0AQE =C2=A0 =C2=A0 WPA WME > > Johann > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g"