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ål <pe...@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 setup 
> like this:
>
> gw# ifconfig ath0
> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
>         ether 04:f0:21:01:3d:87
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
>         status: running
> gw# ifconfig wlan0
> wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 
> mtu 1500
>         ether 04:f0:21:01:3d:87
>         inet6 fe80::6f0:21ff:fe01:3d87%wlan0 prefixlen 64 tentative scopeid 
> 0xd
>         nd6 options=29<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 mcastrate 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 it:
> 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 <adr...@freebsd.org> wrote:
>
>> HM! Please file a PR?
>>
>>
>>
>>
>> adrian
>>
>> On 18 June 2013 02:15, Peter Ankerstål <pe...@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 testar 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 mode
>>> Jun 18 10:56:47 gw kernel: cpuid = 0; apic id = 00
>>> Jun 18 10:56:47 gw kernel: fault virtual address        = 0x0
>>> Jun 18 10:56:47 gw kernel: fault code           = supervisor read, page 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  = 0x20:0xc07fb620
>>> Jun 18 10:56:47 gw kernel: stack pointer                = 0x28:0xe8c129e0
>>> Jun 18 10:56:47 gw kernel: frame pointer                = 0x28:0xe8c129e8
>>> Jun 18 10:56:47 gw kernel: code segment         = base 0x0, limit 0xfffff,
>>> type 0x1b
>>> Jun 18 10:56:47 gw kernel: = DPL 0, pres 1, def32 1, gran 1
>>> Jun 18 10:56:47 gw kernel: processor eflags     = 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 = 0
>>> Jun 18 10:56:47 gw kernel: ath0: ath_edma_recv_proc_queue: handled npkts 0
>>> Jun 18 10:58:53 gw syslogd: kernel boot file is /boot/kernel/kernel
>>> Jun 18 10:58:53 gw kernel: current process              = 2744 (bsnmpd)
>>> Jun 18 10:58:53 gw kernel: ath0: ath_edma_recv_proc_queue: handled npkts 0
>>> Jun 18 10:58:53 gw kernel: trap number          = 12
>>> Jun 18 10:58:53 gw kernel: panic: page fault
>>> Jun 18 10:58:53 gw kernel: cpuid = 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+0x43a
>>> 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
>>
>
>
_______________________________________________
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to