Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 11:59:39 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        =?ISO-8859-1?Q?Peter_Ankerst=E5l?= <peter@pean.org>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: FYI: When trying to create new wlan1
Message-ID:  <CAJ-VmomXroqAoeXuRVuAZ_e7QcoTA_k_=cZd=o4jR46NPcSztw@mail.gmail.com>
In-Reply-To: <6E6B0910-59E2-4EF0-83AE-07F6028D3F05@pean.org>
References:  <51C02521.1070701@pean.org> <CAJ-Vmo=Ga99dtrPpmKGUQ9w0QwCx1mG3YqyqR4bPvcwYhN3pig@mail.gmail.com> <6E6B0910-59E2-4EF0-83AE-07F6028D3F05@pean.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

If 11n is available, it will "upgrade" your AP interface to be 11n.

Just do this:

ifconfig -v wlan0 list chan

If it shows 11n HT20 and HT40 channels, then it will just be upgraded.

next, don't set + or - - some channels require HT40+ or HT40-. They're
not supposed to overlap!

Just do:

(whilst creating things)
ifconfig wlan0 channel 52:ht/40
ifconfig wlan0 up

On 18 June 2013 11:55, Peter Ankerst=E5l <peter@pean.org> wrote:
> Hey,
>
> Sorry about all these questions but I frustrated now. :D
>
> Im trying to get ht/40 but I don't seem to get it right. I now have it se=
tup like this:
>
> gw# ifconfig ath0
> ath0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2=
290
>         ether 04:f0:21:01:3d:87
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
>         status: running
> gw# ifconfig wlan0
> wlan0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metri=
c 0 mtu 1500
>         ether 04:f0:21:01:3d:87
>         inet6 fe80::6f0:21ff:fe01:3d87%wlan0 prefixlen 64 tentative scope=
id 0xd
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
>         status: running
>         ssid web channel 52 (5260 MHz 11a) bssid 04:f0:21:01:3d:87
>         regdomain ETSI country SE ecm authmode WPA2/802.11i privacy MIXED
>         deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 24 mcastra=
te 6
>         mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 -dfs
>
> gw# ifconfig wlan0 list sta
> ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
> 00:1f:5b:c7:5d:df    1   52  54M 18.0    0     61  49264 EP   AQP     RSN=
 WME
> e8:92:a4:78:31:62    2   52  54M 30.5    0  45249  57200 EP   AQP     RSN=
 WME
> 58:55:ca:f3:8a:27    3   52  48M 29.0    0  40147  19440 EP   AQ      RSN=
 WME
>
> all of these are N-capable.
>
> can't set ht/40:
> gw# ifconfig wlan0 channel 52:ht/40+
> ifconfig: SIOCS80211: Invalid argument
>
> but at some point I got it to work yesterday and I don't know how I did i=
t:
> ssid web channel 52 (5260 MHz 11a ht/40+) bssid 04:f0:21:01:3d:87
>
> I don't really get why I can set ht/40+ sometimes but not always.
>
> Thanks for all code and help! (where can I send my donation? :D)
>
> /Peter.
>
> On Jun 18, 2013, at 4:40 PM, Adrian Chadd <adrian@freebsd.org> wrote:
>
>> HM! Please file a PR?
>>
>>
>>
>>
>> adrian
>>
>> On 18 June 2013 02:15, Peter Ankerst=E5l <peter@pean.org> wrote:
>>> Hi!
>>>
>>> Just for your information. (I dont need this).
>>>
>>> When I try to create a new virtual wlan interface I get this panic.
>>>
>>> gw# ifconfig wlan1 create wlandev ath0 wlanmode hostap bssid ssid testa=
r up
>>>
>>>
>>>
>>> Jun 18 10:56:47 gw kernel:
>>> Jun 18 10:56:47 gw kernel:
>>> Jun 18 10:56:47 gw kernel: Fatal trap 12: page fault while in kernel mo=
de
>>> Jun 18 10:56:47 gw kernel: cpuid =3D 0; apic id =3D 00
>>> Jun 18 10:56:47 gw kernel: fault virtual address        =3D 0x0
>>> Jun 18 10:56:47 gw kernel: fault code           =3D supervisor read, pa=
ge not
>>> present
>>> Jun 18 10:56:47 gw kernel: wlan1: Ethernet address: 06:f0:21:01:3d:87
>>> Jun 18 10:56:47 gw kernel: instruction pointer  =3D 0x20:0xc07fb620
>>> Jun 18 10:56:47 gw kernel: stack pointer                =3D 0x28:0xe8c1=
29e0
>>> Jun 18 10:56:47 gw kernel: frame pointer                =3D 0x28:0xe8c1=
29e8
>>> Jun 18 10:56:47 gw kernel: code segment         =3D base 0x0, limit 0xf=
ffff,
>>> type 0x1b
>>> Jun 18 10:56:47 gw kernel: =3D DPL 0, pres 1, def32 1, gran 1
>>> Jun 18 10:56:47 gw kernel: processor eflags     =3D ath0:
>>> ath_edma_recv_proc_queue: handled npkts 0
>>> Jun 18 10:56:47 gw kernel: interrupt enabled,
>>> Jun 18 10:56:47 gw kernel: resume, IOPL =3D 0
>>> Jun 18 10:56:47 gw kernel: ath0: ath_edma_recv_proc_queue: handled npkt=
s 0
>>> Jun 18 10:58:53 gw syslogd: kernel boot file is /boot/kernel/kernel
>>> Jun 18 10:58:53 gw kernel: current process              =3D 2744 (bsnmp=
d)
>>> Jun 18 10:58:53 gw kernel: ath0: ath_edma_recv_proc_queue: handled npkt=
s 0
>>> Jun 18 10:58:53 gw kernel: trap number          =3D 12
>>> Jun 18 10:58:53 gw kernel: panic: page fault
>>> Jun 18 10:58:53 gw kernel: cpuid =3D 0
>>> Jun 18 10:58:53 gw kernel: KDB: stack backtrace:
>>> Jun 18 10:58:53 gw kernel: #0 0xc07892c2 at kdb_backtrace+0x52
>>> Jun 18 10:58:53 gw kernel: #1 0xc0753e06 at panic+0x126
>>> Jun 18 10:58:53 gw kernel: #2 0xc0a3f8f9 at trap_fatal+0x339
>>> Jun 18 10:58:53 gw kernel: #3 0xc0a3fb88 at trap_pfault+0x278
>>> Jun 18 10:58:53 gw kernel: #4 0xc0a3f386 at trap+0x5a6
>>> Jun 18 10:58:53 gw kernel: #5 0xc0a29b4c at calltrap+0x6
>>> Jun 18 10:58:53 gw kernel: #6 0xc083a515 at ieee80211_ioctl_getstainfo+=
0x55
>>> Jun 18 10:58:53 gw kernel: #7 0xc083611a at ieee80211_ioctl_get80211+0x=
43a
>>> Jun 18 10:58:53 gw kernel: #8 0xc085f7c8 at in_control+0x228
>>> Jun 18 10:58:53 gw kernel: #9 0xc0808fb3 at ifioctl+0x1943
>>> Jun 18 10:58:53 gw kernel: #10 0xc07a310c at soo_ioctl+0x30c
>>> Jun 18 10:58:53 gw kernel: #11 0xc079c1db at kern_ioctl+0x19b
>>> Jun 18 10:58:53 gw kernel: #12 0xc079bff9 at sys_ioctl+0xe9
>>> Jun 18 10:58:53 gw kernel: #13 0xc0a40163 at syscall+0x363
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomXroqAoeXuRVuAZ_e7QcoTA_k_=cZd=o4jR46NPcSztw>