Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2012 22:27:56 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Johann Hugo <jhugo@meraka.csir.co.za>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: wpa_supplicant + WPA psk + ad-hoc mode working
Message-ID:  <CAJ-Vmo=s_5iwSb7B0ESKuBB9Om3oU%2BpERyRecSqmg2TznfFQEQ@mail.gmail.com>
In-Reply-To: <201205101549.20368.jhugo@meraka.csir.co.za>
References:  <201205101549.20368.jhugo@meraka.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhugo@meraka.csir.co.za> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<PERFORMNUD,AUTO_LINKLOCAL>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0media: IEEE 802.11 Wireless Ethernet autoselec=
t mode 11g <adhoc>
> =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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=s_5iwSb7B0ESKuBB9Om3oU%2BpERyRecSqmg2TznfFQEQ>