From owner-freebsd-wireless@FreeBSD.ORG Tue Jun 18 18:59:41 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8610963D for ; Tue, 18 Jun 2013 18:59:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [IPv6:2a00:1450:400c:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 1BC5B1D88 for ; Tue, 18 Jun 2013 18:59:40 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id w57so3775020wes.29 for ; Tue, 18 Jun 2013 11:59:40 -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=3jne9ubCOJJ/fXT8hgP+RzKHIeseWmKPshf2YZYnq/c=; b=WENTBIPKTobIM8YjEpmi0xLKQQqmesGetG9oiaHQCCGxzA98FyYUGDytugCn0tsyln j8PZFKLtO0cuRHXaAC6qORllfhC1m1g8naF4mPbj0GGxMpLlUPXNDnaJw33ETedStDyp A0r/+TAhTNEa3UCT6vZH34QinYjOuUSEVcsjARFT0KOA1O9kFQlLFGK3Wgz/Osh/0f74 VpEX0pJIPcI8FYiMmEdETnco0r0Ng3BIa2KiOCj4s9zONQP8irnb3wZRlRmoKWLpUZvt ZGSCSt4HlMtv+8d3f7j964eEQGgWKIoVAo7tN8KTTE/mHBpd1g41kbDnJlSvSRSQlKet q5sg== MIME-Version: 1.0 X-Received: by 10.180.91.74 with SMTP id cc10mr8427216wib.33.1371581980019; Tue, 18 Jun 2013 11:59:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.202 with HTTP; Tue, 18 Jun 2013 11:59:39 -0700 (PDT) In-Reply-To: <6E6B0910-59E2-4EF0-83AE-07F6028D3F05@pean.org> References: <51C02521.1070701@pean.org> <6E6B0910-59E2-4EF0-83AE-07F6028D3F05@pean.org> Date: Tue, 18 Jun 2013 11:59:39 -0700 X-Google-Sender-Auth: sgbHW4KV7ZXOM7Lm2A0Epx9ZJI0 Message-ID: Subject: Re: FYI: When trying to create new wlan1 From: Adrian Chadd To: =?ISO-8859-1?Q?Peter_Ankerst=E5l?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 18 Jun 2013 18:59:41 -0000 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 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 metric 0 mtu 2= 290 > ether 04:f0:21:01:3d:87 > nd6 options=3D29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11a > status: running > gw# ifconfig wlan0 > wlan0: flags=3D8943 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 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11a > 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 wrote: > >> HM! Please file a PR? >> >> >> >> >> adrian >> >> On 18 June 2013 02:15, Peter Ankerst=E5l 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 >> > >