From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 15 08:48:26 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6515106564A for ; Mon, 15 Aug 2011 08:48:26 +0000 (UTC) (envelope-from onyx@z-up.ru) Received: from mx.z-up.ru (mx.z-up.ru [92.50.244.44]) by mx1.freebsd.org (Postfix) with ESMTP id 99A658FC0C for ; Mon, 15 Aug 2011 08:48:26 +0000 (UTC) Received: from ob15_2.ktz.lan (unknown [172.16.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.z-up.ru (Postfix) with ESMTPSA id CB2B91146A for ; Mon, 15 Aug 2011 12:32:12 +0400 (MSD) From: Dmitry Kolosov To: freebsd-wireless@freebsd.org Date: Mon, 15 Aug 2011 12:34:07 +0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; i386; ; ) References: <4E3E6FFE.90101@orange.fr> <4E444CB0.2010201@orange.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108151234.07940.onyx@z-up.ru> Subject: Re: Is Atheros AR9285 usable in AP mode ? 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: Mon, 15 Aug 2011 08:48:27 -0000 > Ok. So it's not that. I'll fire up an AR9285 in hostap mode soon and > let you know how it goes. Hello Adrian! I'm planning to use advantages of 802.11N. I have bought ath-based pci card for that reason, to use it in hostap mode. Here it is: ath1: mem 0xff9b0000-0xff9bffff irq 23 at device 2.0 on pci5 ath1: [ITHREAD] ath1: AR9280 mac 128.2 RF5133 phy 13.0 ath1@pci0:5:2:0: class=0x028000 card=0x3a781186 chip=0x0029168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' class = network But now i'm on 8-STABLE, and 11N mode not working at all, and i just downed that card, so i'm waiting for fbsd 9, and hope 11N will work fine in hostap and client mode. As 11N client i'm planning to use this mini-pcie card on my laptop: ath0: mem 0xd7100000-0xd710ffff irq 17 at device 0.0 on pci6 ath0: [ITHREAD] ath0: AR9285 mac 192.2 RF5133 phy 14.0 FYI, 9285 works very well on 8-STABLE, but only for 11g modes. And the questions are: * will my 9280 card work in _11N_hostap_mode after 9-RELEASE? * will my 9285 card work in _11N_client_mode after 9-RELEASE? Thanks a lot for your work. From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 15 08:51:34 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80F08106564A for ; Mon, 15 Aug 2011 08:51:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3E2598FC08 for ; Mon, 15 Aug 2011 08:51:33 +0000 (UTC) Received: by ywo32 with SMTP id 32so2329367ywo.13 for ; Mon, 15 Aug 2011 01:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=RQEC+b+bQwl3GmJfTSmQC6v6879M3zdsmVGiPKgs7S0=; b=qu/rjXwseCxzG1/dw+4YhFD4yKGMB+nWBXqWhNalpEAT5ZnUox7b6DSxCZjVKazqiW mVv0CO6gVRiQNHbuZboh4IiqI+Rl0HZguGtD9qdkZKM2IXuCR/ka9MshMjhiJbMg0ONy +xVK/0gMMuosfUsafUtkTwSiO8GjtWlsCrlnE= MIME-Version: 1.0 Received: by 10.150.217.5 with SMTP id p5mr871034ybg.329.1313398293396; Mon, 15 Aug 2011 01:51:33 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.10.5 with HTTP; Mon, 15 Aug 2011 01:51:33 -0700 (PDT) In-Reply-To: <201108151234.07940.onyx@z-up.ru> References: <4E3E6FFE.90101@orange.fr> <4E444CB0.2010201@orange.fr> <201108151234.07940.onyx@z-up.ru> Date: Mon, 15 Aug 2011 16:51:33 +0800 X-Google-Sender-Auth: 8Ztm6MSGm5YJ8qRKi7SfoI12u3A Message-ID: From: Adrian Chadd To: Dmitry Kolosov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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: Mon, 15 Aug 2011 08:51:34 -0000 Hi! The Atheros 11n support won't be ready until sometime later on in the year. it certainly won't be ready for 9.0-RELEASE. You can tinker with it (option ATH_ENABLE_11N) but you have to disable AMPDU TX negotiation (ifconfig wlanX -ampdutx) before you can use it. AMPDU-RX works fine, so it can receive aggregate packets. If you'd like to test out 11n support, please feel free to flip the above on and use it as an 11n STA/AP. (I use an AR9160 at home as an 11n AP!) but you won't be able to use TX aggregation yet. That's what I'm currently working on. Adrian On 15 August 2011 16:34, Dmitry Kolosov wrote: >> Ok. So it's not that. I'll fire up an AR9285 in hostap mode soon and >> let you know how it goes. > > Hello Adrian! > I'm planning to use advantages of 802.11N. I have bought ath-based pci ca= rd > for that reason, to use it in hostap mode. Here it is: > > ath1: mem 0xff9b0000-0xff9bffff irq 23 at device 2.0 on pc= i5 > ath1: [ITHREAD] > ath1: AR9280 mac 128.2 RF5133 phy 13.0 > > ath1@pci0:5:2:0: =A0 =A0 =A0 =A0class=3D0x028000 card=3D0x3a781186 chip= =3D0x0029168c > rev=3D0x01 hdr=3D0x00 > =A0 =A0vendor =A0 =A0 =3D 'Atheros Communications Inc.' > =A0 =A0class =A0 =A0 =A0=3D network > > But now i'm on 8-STABLE, and 11N mode not working at all, and i just down= ed > that card, so i'm waiting for fbsd 9, and hope 11N will work fine in host= ap > and client mode. As 11N client i'm planning to use this mini-pcie card on= my > laptop: > ath0: mem 0xd7100000-0xd710ffff irq 17 at device 0.0 on pc= i6 > ath0: [ITHREAD] > ath0: AR9285 mac 192.2 RF5133 phy 14.0 > FYI, 9285 works very well on 8-STABLE, but only for 11g modes. > > And the questions are: > * will my 9280 card work in _11N_hostap_mode after 9-RELEASE? > * will my 9285 card work in _11N_client_mode after 9-RELEASE? > > Thanks a lot for your work. > _______________________________________________ > 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" > From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 15 11:07:15 2011 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E19F1065672 for ; Mon, 15 Aug 2011 11:07:15 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5898FC0C for ; Mon, 15 Aug 2011 11:07:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7FB7EM0014911 for ; Mon, 15 Aug 2011 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7FB7E8N014909 for freebsd-wireless@FreeBSD.org; Mon, 15 Aug 2011 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Aug 2011 11:07:14 GMT Message-Id: <201108151107.p7FB7E8N014909@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-wireless@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org 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: Mon, 15 Aug 2011 11:07:15 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/157449 wireless [ath] MAC address conflict causes system to freeze o kern/157243 wireless [ath] investigate beacon TX (AP) / RX (STA) when under o kern/156904 wireless [ath] AR9285 antenna diversity algorithm is buggy and o kern/156884 wireless [ath] ath instablity o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155498 wireless [ral] ral(4) needs to be resynced with OpenBSD's to ga o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/149307 wireless [ath] Doesn't work Atheros 9285 o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148112 wireless [ath] Atheros 9285 cannot register with wifi AP (timeo o kern/148078 wireless [ath] wireless networking stops functioning o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o kern/143868 wireless [ath] [patch] [request] allow Atheros watchdog timeout o conf/143079 wireless hostapd(8) startup missing multi wlan functionality o kern/140796 wireless [ath] [panic] Cannot attach (unable to attach hardware p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125617 wireless [ath] [panic] ath(4) related panic o kern/125501 wireless [ath] atheros cardbus driver hangs o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 50 problems total. From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 16 04:30:07 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA927106566B for ; Tue, 16 Aug 2011 04:30:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 990E98FC08 for ; Tue, 16 Aug 2011 04:30:07 +0000 (UTC) Received: by yxl31 with SMTP id 31so4053492yxl.13 for ; Mon, 15 Aug 2011 21:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=lofA4K9IQihTUakpFh7RIYxadsTH91yGNd6Za7srMkM=; b=PqZkmEIsgJQDylc2UebMfWh99AnNluAYMF8JZF5sDWcqKt5RZA9DlQSiz1focnYc0/ QBCz+ODrSz4Ft6WzUZaxV3j4H3c8YdrPpu/BSv9Rj5KHMtmwmhg+rVjv5WriunOfyIe4 e7g75cPCg2VHVh81eRAPwemJDVU10Z/uRSKLg= MIME-Version: 1.0 Received: by 10.150.217.5 with SMTP id p5mr1882920ybg.329.1313469006745; Mon, 15 Aug 2011 21:30:06 -0700 (PDT) Received: by 10.151.10.5 with HTTP; Mon, 15 Aug 2011 21:30:06 -0700 (PDT) Date: Tue, 16 Aug 2011 12:30:06 +0800 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ieee80211_process_callback() use in drivers 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: Tue, 16 Aug 2011 04:30:07 -0000 Hi all, The ieee80211_process_callback() call seems to be used wrong in a couple places. According to the single (non-HT) use, the manpage, and what looks like all of the drivers: 0 == OK non-0 == Failure (either ACK failure, or TX failure) Bernhard, iwn_ampdu_tx_done() could do with a review, would you please check? I have a fix to commit to -HEAD to make the BAR TX routines work. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 16 19:36:21 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F4F8106566C for ; Tue, 16 Aug 2011 19:36:21 +0000 (UTC) (envelope-from minor.hippias@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1A98FC1F for ; Tue, 16 Aug 2011 19:36:21 +0000 (UTC) Received: by qyk4 with SMTP id 4so1879692qyk.13 for ; Tue, 16 Aug 2011 12:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=1Z3rSNTfJVQNNFxzyUyisjHlewnXwrhI8/KWWynRthU=; b=e4kQlIjyKZEnZxU7BBlj1jizqansNvdRCZ4GI3d2XQuoP1IeNU3Rfe86jegAVHrsM5 WH0ov5f9ioXYJLGvQX0gBBGQV8Wagw87a+Kw8Dn8apeXfx8BdRQv1riJzSgjhhye6VWS Bd2fSyKKVAMTRnDya9OWbdVgGJmlyvZ48cVpU= MIME-Version: 1.0 Received: by 10.52.67.116 with SMTP id m20mr124173vdt.52.1313521634017; Tue, 16 Aug 2011 12:07:14 -0700 (PDT) Received: by 10.52.101.226 with HTTP; Tue, 16 Aug 2011 12:07:13 -0700 (PDT) Date: Tue, 16 Aug 2011 16:07:13 -0300 Message-ID: From: Hippias Minor To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: BCM4313 support 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: Tue, 16 Aug 2011 19:36:21 -0000 I searched the mailing lists, the FreeBSD forums and the manual pages for the bwn and the bwi drivers and I couldn't find anything authoritative about the status of support for the BCM4313 chips. Is it being worked on? I don't have enough skills to write a driver, sorry. if this message is not appropriate here, please ignore it. Thank you for your time. From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 03:04:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE1A81065675 for ; Wed, 17 Aug 2011 03:04:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id AF87A8FC16 for ; Wed, 17 Aug 2011 03:04:47 +0000 (UTC) Received: by yib19 with SMTP id 19so525759yib.13 for ; Tue, 16 Aug 2011 20:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=C8QELtzfFmVIvqlxytHb0LqkvRLWd75Qwr28Mb0xQn4=; b=ISSNwHHA9TNpG7knNAkwsEIPdFle388dJgG5DQQs/Ee3I/47cICRvGUHySUffjPYIn vdTbHQp17F9d6mrG5ps+GcV1V5pLubStwuCknyNuS93aFkNTo71TmyG8w0ZwK/6+oapQ Y++j1/BTjrFxb5nVYEROH3tarcw2jE07Jzu4w= MIME-Version: 1.0 Received: by 10.150.72.23 with SMTP id u23mr581025yba.443.1313550286995; Tue, 16 Aug 2011 20:04:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Tue, 16 Aug 2011 20:04:46 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Aug 2011 11:04:46 +0800 X-Google-Sender-Auth: XUAvybfMwsjcIN9Rv4Yf9fDDevc Message-ID: From: Adrian Chadd To: Hippias Minor Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: BCM4313 support 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: Wed, 17 Aug 2011 03:04:48 -0000 On 17 August 2011 03:07, Hippias Minor wrote: > I searched the mailing lists, the FreeBSD forums and the manual pages for > the bwn and the bwi drivers and I couldn't find anything authoritative about > the status of support for the BCM4313 chips. Is it being worked on? > > I don't have enough skills to write a driver, sorry. if this message is not > appropriate here, please ignore it. Thank you for your time. It's appropriate here! I'm not aware of anying working on that port at the moment, I'm afraid. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 03:39:43 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DD93106566C for ; Wed, 17 Aug 2011 03:39:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 53E048FC14 for ; Wed, 17 Aug 2011 03:39:43 +0000 (UTC) Received: by yxj20 with SMTP id 20so87650yxj.13 for ; Tue, 16 Aug 2011 20:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=FKHySOh9STmglsc1o43kLyAoT2cm+WNP67kA/wfqt4Y=; b=OW4rp+qIxdpUfKWgK7Dr6jPh38o5U0D/5M8HOB/S1BkP1vR2NvIMHv7DlIQqodd5NC CsewTz+5ighMzGIOPVpDFv3ijfsNOHAxJ92FZ2HS+ouUfTZT6khsyTVuAgHqHOvC6Mpu AmezIw6DO7obBPixI1f1YTgzj157X3R9mgrN4= MIME-Version: 1.0 Received: by 10.150.225.1 with SMTP id x1mr671848ybg.272.1313552382580; Tue, 16 Aug 2011 20:39:42 -0700 (PDT) Received: by 10.150.145.21 with HTTP; Tue, 16 Aug 2011 20:39:42 -0700 (PDT) Date: Wed, 17 Aug 2011 11:39:42 +0800 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 802.11n development wiki page 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: Wed, 17 Aug 2011 03:39:43 -0000 Hi all, I've had a bunch of interest into the current state of 802.11n in FreeBSD. I've written up a wiki page: http://wiki.freebsd.org/WiFi80211n . I know there are other chipsets that support 802.11n (and FreeBSD works with them!) but I don't have them handy. Who was working on the rt stuff? Alex? Bernhard, have you tried anything other than the Intel 4965? I'd appreciate getting this updated. I've heard too many "FreeBSD doesn't do 802.11n at all!" comments, which is blatantly not true! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 06:53:57 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61BCC106564A for ; Wed, 17 Aug 2011 06:53:57 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm15.bullet.mail.bf1.yahoo.com (nm15.bullet.mail.bf1.yahoo.com [98.139.212.174]) by mx1.freebsd.org (Postfix) with SMTP id D22288FC0C for ; Wed, 17 Aug 2011 06:53:56 +0000 (UTC) Received: from [98.139.212.150] by nm15.bullet.mail.bf1.yahoo.com with NNFMP; 17 Aug 2011 06:40:50 -0000 Received: from [98.139.212.206] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 17 Aug 2011 06:40:50 -0000 Received: from [127.0.0.1] by omp1015.mail.bf1.yahoo.com with NNFMP; 17 Aug 2011 06:40:50 -0000 X-Yahoo-Newman-Id: 390257.65482.bm@omp1015.mail.bf1.yahoo.com Received: (qmail 52645 invoked from network); 17 Aug 2011 06:40:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Content-Transfer-Encoding; b=SSFJijDYNyReWFp9/QGsmuLuG8S8zne2YAGy16FhnETlTWc6RQP/D7Uu28yxMRz1FVUIIx3rKZa0u8gIKC5zyLx4zTl3ld25y2OjpH/3ArpFkjgAd5RmZsyOgzKjG+E9p/VaunNF4ONgJbL5wxxbUqYuz0a44qeob8ZSRkToapY= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1313563250; bh=hVA8m0f7/YT9enXVIjQ53rEu6sPkWgpiyjjxQsdAOlU=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Content-Transfer-Encoding; b=g2qayfVg24wCCwO4rJzyBmSlRq4s6wunWppAd4Z51vmky6Yhe3Re9TMHz8BGmo/Yq7b8ZafZ6UlvCa/HO3CSGzLQ8zm7GB0OcEyig9HLEEjGAI3KwKfe+ca8VzBx2qT6TJnRrCRVRXc/eK3d9wmr9uMJwHDaI/xXWXgWfD/4kG0= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: nJEFs2MVM1mSCeFSElgYen1oGw112mr.ft5ytKOs0NRgx3_ B_27wF23s0IrPnfhPfoZj4Bomjr_rspCLlKF7BaMeanEVYEpBh.ebg6lfQ4u 15AdoDH_p25FYKH.ca_6mmYOG9f4mQuG49X.ADHIHyburqZmt47WbrDvDesw aeTRcE1Zyms2Ath1vbXD17UoBlcdZ.WMv6DC7X7eci4b2DtxeK3_t7N2ifCV RKLyyIUiFtjqekdEysFByl49FlykD.N8Rc99ProY9uiTu2jo5xX51VO9kuR6 njtbVv.Y6stYV9wDmG8GBTxDbVstuBEYHXkqRKYpakFsKa._6dMNxI_iFWSl nTSYQmkcpyXM_gwsZDrfUOz.c2YuL1ZqI9BWiAEzEd3nlS83FZOgw2DNWyIz 7gcXhvjKz2v_3nrgiKIc- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vw0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp104.mail.bf1.yahoo.com with SMTP; 16 Aug 2011 23:40:50 -0700 PDT Received: by vws18 with SMTP id 18so525673vws.13 for ; Tue, 16 Aug 2011 23:40:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.24.170 with SMTP id v10mr643152vdf.102.1313563249935; Tue, 16 Aug 2011 23:40:49 -0700 (PDT) Received: by 10.52.187.195 with HTTP; Tue, 16 Aug 2011 23:40:49 -0700 (PDT) Date: Wed, 17 Aug 2011 00:40:49 -0600 Message-ID: From: PseudoCylon To: freebsd-wireless@freebsd.org, Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: ieee80211_process_callback() use in drivers 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: Wed, 17 Aug 2011 06:53:57 -0000 > Date: Tue, 16 Aug 2011 12:30:06 +0800 > From: Adrian Chadd > Subject: ieee80211_process_callback() use in drivers > To: freebsd-wireless@freebsd.org > Message-ID: > =A0 =A0 =A0 =A0 > Content-Type: text/plain; charset=3DISO-8859-1 > > Hi all, > > The ieee80211_process_callback() call seems to be used wrong in a couple = places. > According to the single (non-HT) use, the manpage, and what looks like > all of the drivers: > > 0 =3D=3D OK > non-0 =3D=3D Failure (either ACK failure, or TX failure) > > Bernhard, iwn_ampdu_tx_done() could do with a review, would you please ch= eck? > > I have a fix to commit to -HEAD to make the BAR TX routines work. > > Thanks, > > > Adrian > I tried this while ago. http://lists.freebsd.org/pipermail/freebsd-net/2010-July/025758.html The patch should still work today. AK From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 07:33:41 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C91D11065672 for ; Wed, 17 Aug 2011 07:33:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8A7CA8FC17 for ; Wed, 17 Aug 2011 07:33:41 +0000 (UTC) Received: by ywo32 with SMTP id 32so625778ywo.13 for ; Wed, 17 Aug 2011 00:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=4EyLxB0pFSkE0tncuBJan96Y9dUDZ+jrNQKM4Vdv3mA=; b=irSAMyz6pBwpYf4qqrcFXivDewPkxKMPqiRFvmF9muwggqdoX3rvtCIlJ5CCyBJGQk nafdsYlQJY3cEUMN5KBzSP9Y7BFxcVUDSBIPBcYNjuraYZcUNXYn1HSqOkoFieSoGgZV uVgNFWyK6jR130PNICaYwtkpMWW/CaaMaWq14= MIME-Version: 1.0 Received: by 10.150.225.1 with SMTP id x1mr842417ybg.272.1313566420816; Wed, 17 Aug 2011 00:33:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Wed, 17 Aug 2011 00:33:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Aug 2011 15:33:40 +0800 X-Google-Sender-Auth: PQ_gGpbXGQIAoJFl60h2pUF3IKY Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ieee80211_process_callback() use in drivers 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: Wed, 17 Aug 2011 07:33:41 -0000 On 17 August 2011 14:40, PseudoCylon wrote: > I tried this while ago. > http://lists.freebsd.org/pipermail/freebsd-net/2010-July/025758.html > > The patch should still work today. Hm, I fixed the status check in the BAR TX routines. Is that enough? Or are you saying that the node ref is freed somewhere inside ic_raw_xmit() on a TX failure? Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 08:59:36 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD5AD106564A for ; Wed, 17 Aug 2011 08:59:36 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 6ACAA8FC1D for ; Wed, 17 Aug 2011 08:59:36 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id B3912EC; Wed, 17 Aug 2011 10:40:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ELFQrQxQfvHC; Wed, 17 Aug 2011 10:40:07 +0200 (CEST) Received: from snifi.localnet (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 504A149; Wed, 17 Aug 2011 10:40:07 +0200 (CEST) From: Maciej Milewski To: freebsd-wireless@freebsd.org Date: Wed, 17 Aug 2011 10:40:32 +0200 Message-ID: <2155059.EL46yG9C8G@snifi> User-Agent: KMail/4.7.0 (Linux/3.0-ARCH; KDE/4.7.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: Subject: Re: 802.11n development wiki page 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: Wed, 17 Aug 2011 08:59:36 -0000 Dnia =C5=9Broda, 17 sierpnia 2011 11:39:42 Adrian Chadd pisze: > I know there are other chipsets that support 802.11n (and FreeBSD > works with them!) but I don't have them handy. > Who was working on the rt stuff? Alex? >=20 > Bernhard, have you tried anything other than the Intel 4965? I have tried Intel WiFi Link 5100. It worked. > I'd appreciate getting this updated. I've heard too many "FreeBSD > doesn't do 802.11n at all!" comments, which is blatantly not true! I agree with that :) Maciek From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 16:30:44 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACADF1065676 for ; Wed, 17 Aug 2011 16:30:44 +0000 (UTC) (envelope-from minor.hippias@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4E06D8FC0C for ; Wed, 17 Aug 2011 16:30:44 +0000 (UTC) Received: by vws18 with SMTP id 18so1029900vws.13 for ; Wed, 17 Aug 2011 09:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NEr0Z7M5SaagQhYoukgp55vmpIMNpJygPSMFqg4VhBY=; b=tu7EwdnokImt/QtWZN8yNdqIDVIh0XjUSnoG7lRcsGm1C2e6ZWPN3h39UPXDGsnxbk u0eajd469te9jzSPxlgs2TiAANVAypr84Fw29dnRSlPy/4sUa3WQ8PL1OWqXRbso+9Dk w+3273OTRPWiMHwFt5yqLvvYSuDuMCcRIaEnQ= MIME-Version: 1.0 Received: by 10.52.93.109 with SMTP id ct13mr1182308vdb.119.1313598643292; Wed, 17 Aug 2011 09:30:43 -0700 (PDT) Received: by 10.52.101.226 with HTTP; Wed, 17 Aug 2011 09:30:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Aug 2011 13:30:43 -0300 Message-ID: From: Hippias Minor To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: BCM4313 support 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: Wed, 17 Aug 2011 16:30:44 -0000 2011/8/17 Adrian Chadd : > On 17 August 2011 03:07, Hippias Minor wrote: >> I searched the mailing lists, the FreeBSD forums and the manual pages for >> the bwn and the bwi drivers and I couldn't find anything authoritative about >> the status of support for the BCM4313 chips. Is it being worked on? >> >> I don't have enough skills to write a driver, sorry. if this message is not >> appropriate here, please ignore it. Thank you for your time. > > It's appropriate here! > > I'm not aware of anying working on that port at the moment, I'm afraid. > > > Adrian > Thank you Adrian for your quick response. I'm sorry to hear that no one is working on it right now. Guess I'll have to keep carrying my Ralink stick then. Have a nice day. PS. Adrian, sorry I just sent the reply to you in a first moment. I clicked send without checking. From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 19:18:35 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56B32106564A for ; Wed, 17 Aug 2011 19:18:35 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id E785F8FC0C for ; Wed, 17 Aug 2011 19:18:34 +0000 (UTC) Received: (qmail 15860 invoked from network); 17 Aug 2011 14:51:53 -0400 Received: from yktgi01e0-s5.watson.ibm.com (HELO Macintosh-21.local) (129.34.20.19) by mail.atlantawebhost.com with SMTP; 17 Aug 2011 14:51:53 -0400 Message-ID: <4E4C0DC9.8070808@shadowsun.net> Date: Wed, 17 Aug 2011 14:51:53 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: BCM4313 support 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: Wed, 17 Aug 2011 19:18:35 -0000 On 8/16/11 11:04 PM, Adrian Chadd wrote: > On 17 August 2011 03:07, Hippias Minor wrote: >> I searched the mailing lists, the FreeBSD forums and the manual pages for >> the bwn and the bwi drivers and I couldn't find anything authoritative about >> the status of support for the BCM4313 chips. Is it being worked on? >> >> I don't have enough skills to write a driver, sorry. if this message is not >> appropriate here, please ignore it. Thank you for your time. > > It's appropriate here! > > I'm not aware of anying working on that port at the moment, I'm afraid. > I have been working on porting the BroadCom linux driver. I don't have much time to work on it, though, and it's a rather daunting task. From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 17 23:12:30 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13777106566B for ; Wed, 17 Aug 2011 23:12:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C37448FC12 for ; Wed, 17 Aug 2011 23:12:29 +0000 (UTC) Received: by gxk28 with SMTP id 28so1316301gxk.13 for ; Wed, 17 Aug 2011 16:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=f56DqDc6ZBFkzcR/VkWCtbbPjkB2Ad4sWG6BcMzZnNg=; b=phnlJ+Bl6lyG+SZaUnJ5H/0s4bw6kQyM0bNtW1jZKlGIIr49Rqr3KINyd6EGqlKSu3 bZFDsVa0xuVK2aZADRiKY2cJchnEUqNbpOTTvKO/1qmQlqw0p/wibK/k+CDS6buOg/4q ldfiGabtPksWNDz3X1tCT/WhKEzDMlJM34mTc= MIME-Version: 1.0 Received: by 10.151.12.1 with SMTP id p1mr14732ybi.272.1313622748965; Wed, 17 Aug 2011 16:12:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Wed, 17 Aug 2011 16:12:28 -0700 (PDT) In-Reply-To: <4E4C0DC9.8070808@shadowsun.net> References: <4E4C0DC9.8070808@shadowsun.net> Date: Thu, 18 Aug 2011 07:12:28 +0800 X-Google-Sender-Auth: kvTZbj0vOb885soOUPJJdAoTWZY Message-ID: From: Adrian Chadd To: Eric McCorkle Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: BCM4313 support 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: Wed, 17 Aug 2011 23:12:30 -0000 On 18 August 2011 02:51, Eric McCorkle wrote: > > I have been working on porting the BroadCom linux driver. =A0I don't have= much > time to work on it, though, and it's a rather daunting task. Cool! Is there anything we can do to help? Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 18 02:22:58 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDE13106566B for ; Thu, 18 Aug 2011 02:22:58 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm19-vm3.bullet.mail.ne1.yahoo.com (nm19-vm3.bullet.mail.ne1.yahoo.com [98.138.91.149]) by mx1.freebsd.org (Postfix) with SMTP id 7703D8FC08 for ; Thu, 18 Aug 2011 02:22:58 +0000 (UTC) Received: from [98.138.90.48] by nm19.bullet.mail.ne1.yahoo.com with NNFMP; 18 Aug 2011 02:10:42 -0000 Received: from [98.138.84.34] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 18 Aug 2011 02:10:42 -0000 Received: from [127.0.0.1] by smtp102.mail.ne1.yahoo.com with NNFMP; 18 Aug 2011 02:10:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1313633442; bh=OYjPR3biwyj8PS0+Bc9sbPHBEo2+vpCwc5WQAUvSFgI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=SAy14YLNaMwlFog7bFOFp/Us3ots9WdzUANERVnNUNvYI8/+5xlrkCG5jT150VslC9plAp9O+hBnQVC/i2YuwW9ntBhuL4LcXO0nzIlbVk60C2Vv5PKoM+7IcIUFaQsIkuYShWc1pM4H3cRmUwuuGe95g7O9Isp2N5Dqqyc4EHg= X-Yahoo-Newman-Id: 397091.54522.bm@smtp102.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: SVBLoqcVM1n9LsAdWBXArYi8rSfBmdxGyvRg4ERBB4e9kPk qA5dVc_zKqBqEccE6c99aFbVHAlSCW.062JcOlhqS1Mz7JyYKLmkI9qYS7_. K9vkjPU_vSyWZQI1VMJoK54ogkbA3uka0GSYMbdeQsViqSpuDM56x2qw9G3J myHd4iBwTAvGNIPs.KZiAfb7HkBcZIRsdz_Xo2QEZgcNwkiJZJMSlc5LC7eX hgcv.9pCkF_YC5IW7eK4rjnf0ytJ8HFmwd7.DFSvb9SJzHnK1awopzFHExWj kEnHZWWOMmcyzPyRojOcw8sIFnaeQaemBkV4OPkrqkaUArZkZO9nny7ek8qo 4f8vyTb6b8GJZWyzZ9zuCvsZiOHvneb9UNhze7SBlLRnudLER8CbxmieybuG fwtfnWG3DGX8sxKITw.JrGsc- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vx0-f182.google.com (moonlightakkiy@209.85.220.182 with plain) by smtp102.mail.ne1.yahoo.com with SMTP; 17 Aug 2011 19:10:42 -0700 PDT Received: by vxh11 with SMTP id 11so1785651vxh.13 for ; Wed, 17 Aug 2011 19:10:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.92.199 with SMTP id co7mr171309vdb.85.1313633441537; Wed, 17 Aug 2011 19:10:41 -0700 (PDT) Received: by 10.52.187.195 with HTTP; Wed, 17 Aug 2011 19:10:41 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Aug 2011 20:10:41 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ieee80211_process_callback() use in drivers 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: Thu, 18 Aug 2011 02:22:58 -0000 On Wed, Aug 17, 2011 at 1:33 AM, Adrian Chadd wrote: > On 17 August 2011 14:40, PseudoCylon wrote: > >> I tried this while ago. >> http://lists.freebsd.org/pipermail/freebsd-net/2010-July/025758.html >> >> The patch should still work today. > > Hm, I fixed the status check in the BAR TX routines. > Is that enough? Or are you saying that the node ref is freed somewhere > inside ic_raw_xmit() on a TX failure? > Sorry, I found the commit after replied. But, drivers call ieee80211_free_node() in ic_raw_xmit() on failure. AK From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 18 02:31:51 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6364106564A for ; Thu, 18 Aug 2011 02:31:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8585C8FC0C for ; Thu, 18 Aug 2011 02:31:51 +0000 (UTC) Received: by gwb15 with SMTP id 15so743437gwb.13 for ; Wed, 17 Aug 2011 19:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=IGLoaNlbI/l++wWoJBJrV5paqyLoqH5TwCH8anc2z7o=; b=P6iCQmHeyuS0lIcVwap9bF8+J/6lY3UB0CgWewoa5O9oPa0kLyQtSNJD41pROdFbmk qYOzOOe4EnPFRb/RXnwgBjLxAcxLgCzDS5IeET/R2nI6PjvfsmDDPaaJDtlWgpo9mpt3 2U9PQFJx/qedwn8PudrE2hkhbt1kgYTA8ecYo= MIME-Version: 1.0 Received: by 10.150.72.23 with SMTP id u23mr162828yba.443.1313634710780; Wed, 17 Aug 2011 19:31:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Wed, 17 Aug 2011 19:31:50 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Aug 2011 10:31:50 +0800 X-Google-Sender-Auth: dlOe2yZQMKa3zxYVHfOZyWTkX1o Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ieee80211_process_callback() use in drivers 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: Thu, 18 Aug 2011 02:31:51 -0000 On 18 August 2011 10:10, PseudoCylon wrote: >> Hm, I fixed the status check in the BAR TX routines. >> Is that enough? Or are you saying that the node ref is freed somewhere >> inside ic_raw_xmit() on a TX failure? > > Sorry, I found the commit after replied. > > But, drivers call ieee80211_free_node() in ic_raw_xmit() on failure. Hm, so we can't kill the free, because ieee80211_ref_node() is called early on. So if ic->ic_raw_xmit(), just return ret, rather then "goto bad" ? Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 18 17:56:18 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E7A21065672 for ; Thu, 18 Aug 2011 17:56:18 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id BCB938FC14 for ; Thu, 18 Aug 2011 17:56:17 +0000 (UTC) Received: (qmail 32468 invoked from network); 18 Aug 2011 13:49:35 -0400 Received: from yktgi01e0-s5.watson.ibm.com (HELO atom-edge-009002034054.watson.ibm.com) (129.34.20.19) by mail.atlantawebhost.com with SMTP; 18 Aug 2011 13:49:35 -0400 Message-ID: <4E4D50AF.6070908@shadowsun.net> Date: Thu, 18 Aug 2011 13:49:35 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4E4C0DC9.8070808@shadowsun.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: BCM4313 support 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: Thu, 18 Aug 2011 17:56:18 -0000 On 8/17/11 7:12 PM, Adrian Chadd wrote: > On 18 August 2011 02:51, Eric McCorkle wrote: > >> >> I have been working on porting the BroadCom linux driver. I don't have much >> time to work on it, though, and it's a rather daunting task. > > Cool! Is there anything we can do to help? > Well, my objective is a working BCM 4322 (the card on macbooks) driver. Someone who better understands linux drivers could take a look at the wrapper code for the linux driver, and might be able to port it. More info: The broadcom linux driver consists of a closed-source object file, compiled with standard linux kernel calling conventions, and a bunch of linux wrapper code. It appears that the Broadcom engineers did a relatively good job; the object file makes calls to the kernel via an osl (presumably OS layer) interface, which seems pretty generic. One of the headers appears to define the linux instance of this layer, but it would seem others exist (probably for windows, for instance). The rest of the code is simply linux driver stuff that sets up interfaces, etc. The closed source .o file itself isn't stripped at all, and between the known compiler flags and the headers that give types for everything, there's enough information for complete reverse-compilation. I've been working on this myself, but I have very limited time to devote to it. From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 01:35:15 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5CEB1065670 for ; Fri, 19 Aug 2011 01:35:15 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (bedford.accountservergroup.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id 4882F8FC13 for ; Fri, 19 Aug 2011 01:35:14 +0000 (UTC) Received: from boxand.lnk.telstra.net ([203.45.130.125] helo=richh-desktop.boxdice.com.au) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QuDzM-002oLd-FU for freebsd-wireless@freebsd.org; Thu, 18 Aug 2011 20:35:13 -0500 Date: Fri, 19 Aug 2011 11:35:02 +1000 From: richo To: freebsd-wireless@freebsd.org Message-ID: <20110819013501.GA29282@richh-desktop.boxdice.com.au> References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <4E4D50AF.6070908@shadowsun.net> X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Subject: Re: BCM4313 support 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: Fri, 19 Aug 2011 01:35:15 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 18/08/11 13:49 -0400, Eric McCorkle wrote: >On 8/17/11 7:12 PM, Adrian Chadd wrote: >>On 18 August 2011 02:51, Eric McCorkle wrote: >> >>> >>>I have been working on porting the BroadCom linux driver. I don't have = much >>>time to work on it, though, and it's a rather daunting task. >> >>Cool! Is there anything we can do to help? >> > >Well, my objective is a working BCM 4322 (the card on macbooks)=20 >driver. Someone who better understands linux drivers could take a=20 >look at the wrapper code for the linux driver, and might be able to=20 >port it. > >More info: The broadcom linux driver consists of a closed-source=20 >object file, compiled with standard linux kernel calling conventions,=20 >and a bunch of linux wrapper code. It appears that the Broadcom=20 >engineers did a relatively good job; the object file makes calls to=20 >the kernel via an osl (presumably OS layer) interface, which seems=20 >pretty generic. One of the headers appears to define the linux=20 >instance of this layer, but it would seem others exist (probably for=20 >windows, for instance). The rest of the code is simply linux driver=20 >stuff that sets up interfaces, etc. > >The closed source .o file itself isn't stripped at all, and between=20 >the known compiler flags and the headers that give types for=20 >everything, there's enough information for complete=20 >reverse-compilation. I've been working on this myself, but I have=20 >very limited time to devote to it. Is what you have so far available anywhere? I've been putting off learning more about drivers for some time, and have a macbook 3,1 that I want to install FreeBSD on. I can probably kill two birds with one stone. I also have some older hardware with a broadcom nic of some kind (uses the b43 driver on linux) that I can fiddle with. Cheers richo --=20 richo || Today's excuse:=20 We've picked COBOL as the language of choice. --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOTb3FAAoJEIKiWz6J5yQVGrIIAMIdQ9E+sYo0/TEY3eDDA+fo 45wa9WwWg+KOgEg3xqQkMUES2xzNdqJ2U2CMetJLBqgaIC58NvEUork6/j967aQO 5wCrc73fB6KcwQERAGTA/YidkqOoIALq4zKCWaGZj535kCbQbcZMHxfx0ovjh4GM rcidmQRm35ydsKyGVZs0x2vsGm57njhNFq0TeT2jY0vZopuWOlHJQOzzStm1kavA 4qUaZkKg/K4j//R7i6AqMe8U0wn8ExRuvHOocijYLuw1CPh+zs/jxw9kqeaCSdMW nykoGuKb3qyyl4YVsd77fGJvBmifQjYckKtW/PspQYvdMQj1v0pW0fsmpYKHF2Y= =W+qA -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 02:20:13 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 609431065674 for ; Fri, 19 Aug 2011 02:20:13 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id 12EE58FC08 for ; Fri, 19 Aug 2011 02:20:12 +0000 (UTC) Received: (qmail 3805 invoked from network); 18 Aug 2011 22:13:31 -0400 Received: from ool-6039c07a.static.optonline.net (HELO Macintosh-21.local) (96.57.192.122) by mail.atlantawebhost.com with SMTP; 18 Aug 2011 22:13:31 -0400 Message-ID: <4E4DC6CA.2010100@shadowsun.net> Date: Thu, 18 Aug 2011 22:13:30 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> <20110819013501.GA29282@richh-desktop.boxdice.com.au> In-Reply-To: <20110819013501.GA29282@richh-desktop.boxdice.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: BCM4313 support 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: Fri, 19 Aug 2011 02:20:13 -0000 On 8/18/11 9:35 PM, richo wrote: > On 18/08/11 13:49 -0400, Eric McCorkle wrote: >> On 8/17/11 7:12 PM, Adrian Chadd wrote: >>> On 18 August 2011 02:51, Eric McCorkle wrote: >>> >>>> >>>> I have been working on porting the BroadCom linux driver. I don't >>>> have much >>>> time to work on it, though, and it's a rather daunting task. >>> >>> Cool! Is there anything we can do to help? >>> >> >> Well, my objective is a working BCM 4322 (the card on macbooks) >> driver. Someone who better understands linux drivers could take a look >> at the wrapper code for the linux driver, and might be able to port it. >> >> More info: The broadcom linux driver consists of a closed-source >> object file, compiled with standard linux kernel calling conventions, >> and a bunch of linux wrapper code. It appears that the Broadcom >> engineers did a relatively good job; the object file makes calls to >> the kernel via an osl (presumably OS layer) interface, which seems >> pretty generic. One of the headers appears to define the linux >> instance of this layer, but it would seem others exist (probably for >> windows, for instance). The rest of the code is simply linux driver >> stuff that sets up interfaces, etc. >> >> The closed source .o file itself isn't stripped at all, and between >> the known compiler flags and the headers that give types for >> everything, there's enough information for complete >> reverse-compilation. I've been working on this myself, but I have very >> limited time to devote to it. > > Is what you have so far available anywhere? > > I've been putting off learning more about drivers for some time, and have a > macbook 3,1 that I want to install FreeBSD on. I can probably kill two > birds > with one stone. > > I also have some older hardware with a broadcom nic of some kind (uses the > b43 driver on linux) that I can fiddle with. > > Cheers > > richo > I haven't gotten far enough into the reverse compilation yet to warrant publishing anything. I put a bandaid over the issue by using a USB wireless device, and I've been fixing other issues wrt running on a macbook. But I do plan to publish it all eventually. Also, the code's all in Haskell, not that that should dissuade anyone. A MacBook 3,1 has the Atheros card, if I'm not mistaken, which is supported (one major headache you don't have to deal with). I could talk more about where I am with running on a macbook, but we should probably take this over to -mobile for that, since it doesn't have anything to do with wireless. From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 04:20:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDEB8106564A for ; Fri, 19 Aug 2011 04:20:53 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm7.bullet.mail.bf1.yahoo.com (nm7.bullet.mail.bf1.yahoo.com [98.139.212.166]) by mx1.freebsd.org (Postfix) with SMTP id 6A33A8FC08 for ; Fri, 19 Aug 2011 04:20:53 +0000 (UTC) Received: from [98.139.212.147] by nm7.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2011 04:20:52 -0000 Received: from [98.139.212.209] by tm4.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2011 04:20:52 -0000 Received: from [127.0.0.1] by omp1018.mail.bf1.yahoo.com with NNFMP; 19 Aug 2011 04:20:52 -0000 X-Yahoo-Newman-Id: 896189.28068.bm@omp1018.mail.bf1.yahoo.com Received: (qmail 7048 invoked from network); 19 Aug 2011 04:20:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=zvuyOScMiB30B9cQ0HpEaZdhImGpAmMYa7jWAv72sGgYi5xi0AFC6FwQlOdIuAahg8gx0oexVdlnqEUfdEWc+XjSkpT9aWpC+UaNbPbKU/DGkFygG728sgkiUVPnlqEPxAF6DVJab22N9/R20bGXju1daK2MiWX1MU3MoeKM8R4= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1313727652; bh=Z8LkfYLwLS7DrAUtDO49x+t1dLX4VNbosbFodGvqLWc=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=V63Wox8vZX+6PpaHdiagfAm0vIMzQ2i9MvSy9V21nxaS5Gbl4yAAf5LTkueVGmXKW6WXjzZNomNPyNGONPwYWXcbDtkdu8lN8v42EvNNad9rrlA6bGSmqO3FOrCbJeLEmXmswCL4s/PHo36H89rtcVu4HN0D2um28lWVT4lQgnU= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ZYlvT_4VM1mcMKRb0FOSC2p42bu_FK626utc1wfRHUfP6qR YUlAkmdQNBsdziG2oy98G6zeM8qWkqWEKaK_SCtIktLdQTHYfFRMr_hIz0mK yFpQ_QdfS3DXwV40QxqtUaohlWPpnb.twZelTrKbVb83.CbseB___e6FMkOw PxI9OFGaBOnroAPjh_706q9zxySHIO._meCTH80FFANkhXcO1tizOKasxdyF elcXQQxIYKi.rvikzBzzIjEe4Zryuzcmz2UYtxDm9us.G5bchWTQ.us7a_tH OWDMV0GdLH_BnGWM_AzvPRe820naPEclqAmyJZZi2FhHWChkh5un.nQm0kGP 0FfboYXLQEfwq7rNiUUEwxXDo2_XGNbifbHGyAb3nbbJdyETvCqldgAliHeD EckmEd2exzRRfjZRNuCFOmPo- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vx0-f182.google.com (moonlightakkiy@209.85.220.182 with plain) by smtp209.mail.bf1.yahoo.com with SMTP; 18 Aug 2011 21:20:52 -0700 PDT Received: by vxh11 with SMTP id 11so2979577vxh.13 for ; Thu, 18 Aug 2011 21:20:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.77.8 with SMTP id o8mr1649780vdw.152.1313727652372; Thu, 18 Aug 2011 21:20:52 -0700 (PDT) Received: by 10.52.187.195 with HTTP; Thu, 18 Aug 2011 21:20:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Aug 2011 22:20:52 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ieee80211_process_callback() use in drivers 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: Fri, 19 Aug 2011 04:20:53 -0000 On Wed, Aug 17, 2011 at 8:31 PM, Adrian Chadd wrote: > On 18 August 2011 10:10, PseudoCylon wrote: > >>> Hm, I fixed the status check in the BAR TX routines. >>> Is that enough? Or are you saying that the node ref is freed somewhere >>> inside ic_raw_xmit() on a TX failure? >> >> Sorry, I found the commit after replied. >> >> But, drivers call ieee80211_free_node() in ic_raw_xmit() on failure. > > Hm, so we can't kill the free, because ieee80211_ref_node() is called early on. > So if ic->ic_raw_xmit(), just return ret, rather then "goto bad" ? > Other mgmt frame Tx functions, i.e ieee80211_send_mgmt(), refs node and expects ic_raw_xmit() to free node whether on success or on failure. So, drivers free node after calling ieee80211_process_callback() or in ic_raw_xmit() on failure. So, ref count is kept balanced. But, ieee80211_send_bar() frees node. So that, on failure in ic_raw_xmit(), drivers need first to test if it is a BAR frame. If not, free node; if so, don't free node because ieee80211_send_bar() does by its self. Otherwise node would be freed twice on one ref. From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 04:41:10 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0DB41065672 for ; Fri, 19 Aug 2011 04:41:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9F2488FC1A for ; Fri, 19 Aug 2011 04:41:10 +0000 (UTC) Received: by ywo32 with SMTP id 32so2284510ywo.13 for ; Thu, 18 Aug 2011 21:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=YfUmkoBHS2OdxfL+XPj+T/ACuzH7Qi7h8JkAeGntFNs=; b=ICpdMonE9p+ceQVh1t+CXIjhKApeytm5kLj+nr+LSwOJjbyI2lox2eUuiy9pTVTT8Y jL8bnjSFH2tgfoicDsu4JBpw0+MAeJyu7VBLogDBhmJhu+ZuaeqQ1MGy7BNCzleyzkZt P+k4cBEnMfuCPlgjGQvX7qcWtHlx8O7R1/du8= MIME-Version: 1.0 Received: by 10.151.12.1 with SMTP id p1mr1735292ybi.272.1313728869745; Thu, 18 Aug 2011 21:41:09 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Thu, 18 Aug 2011 21:41:09 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Aug 2011 12:41:09 +0800 X-Google-Sender-Auth: Ll-NFI4zK4-kNK7TW2b9X-4-ExE Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ieee80211_process_callback() use in drivers 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: Fri, 19 Aug 2011 04:41:11 -0000 On 19 August 2011 12:20, PseudoCylon wrote: >> Hm, so we can't kill the free, because ieee80211_ref_node() is called early on. >> So if ic->ic_raw_xmit(), just return ret, rather then "goto bad" ? >> > > Other mgmt frame Tx functions, i.e ieee80211_send_mgmt(), refs node > and expects ic_raw_xmit() to free node whether on success or on > failure. So, drivers free node after calling > ieee80211_process_callback() or in ic_raw_xmit() on failure. So, ref > count is kept balanced. > > But, ieee80211_send_bar() frees node. So that, on failure in > ic_raw_xmit(), drivers need first to test if it is a BAR frame. If > not, free node; if so, don't free node because ieee80211_send_bar() > does by its self. Otherwise node would be freed twice on one ref. Right. So I'll fix that function to just not free the node once ic->ic_raw_xmit is called. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 05:38:45 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 357F81065672 for ; Fri, 19 Aug 2011 05:38:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id E61A28FC16 for ; Fri, 19 Aug 2011 05:38:44 +0000 (UTC) Received: by gxk28 with SMTP id 28so2311524gxk.13 for ; Thu, 18 Aug 2011 22:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=6qi4g+S/n0P1HsaTPTM/+/JqnMsQ5hd7uqmBeQF5iMQ=; b=Fr8YrDvdwNA73sgaens1m9nNr4EqUFj513FtLan27X9fl/wGKSKy1J0CtWp2bc9Ul8 gf4y1Vkk7+TUQmmy6/F1boP6XNLSbNoIFwlGMXvC4klnGtYhYLruJQbmZQBd4nTGe+Q4 AMKsdlQm1Z0ehdu89b61E3N2AktmY5TzkAU/U= MIME-Version: 1.0 Received: by 10.150.217.4 with SMTP id p4mr156560ybg.158.1313732324111; Thu, 18 Aug 2011 22:38:44 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Thu, 18 Aug 2011 22:38:44 -0700 (PDT) In-Reply-To: <4E4D50AF.6070908@shadowsun.net> References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> Date: Fri, 19 Aug 2011 13:38:44 +0800 X-Google-Sender-Auth: HPNCgi1SPhmFFsxaGfYFaT4OxZw Message-ID: From: Adrian Chadd To: Eric McCorkle Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: BCM4313 support 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: Fri, 19 Aug 2011 05:38:45 -0000 Hm, isn't there an open source linux driver for the latest broadcom chips? I recall it was released sometime last year. Adrian On 19 August 2011 01:49, Eric McCorkle wrote: > On 8/17/11 7:12 PM, Adrian Chadd wrote: >> >> On 18 August 2011 02:51, Eric McCorkle =A0wrote: >> >>> >>> I have been working on porting the BroadCom linux driver. =A0I don't ha= ve >>> much >>> time to work on it, though, and it's a rather daunting task. >> >> Cool! Is there anything we can do to help? >> > > Well, my objective is a working BCM 4322 (the card on macbooks) driver. > =A0Someone who better understands linux drivers could take a look at the > wrapper code for the linux driver, and might be able to port it. > > More info: The broadcom linux driver consists of a closed-source object > file, compiled with standard linux kernel calling conventions, and a bunc= h > of linux wrapper code. =A0It appears that the Broadcom engineers did a > relatively good job; the object file makes calls to the kernel via an osl > (presumably OS layer) interface, which seems pretty generic. =A0One of th= e > headers appears to define the linux instance of this layer, but it would > seem others exist (probably for windows, for instance). =A0The rest of th= e > code is simply linux driver stuff that sets up interfaces, etc. > > The closed source .o file itself isn't stripped at all, and between the > known compiler flags and the headers that give types for everything, ther= e's > enough information for complete reverse-compilation. =A0I've been working= on > this myself, but I have very limited time to devote to it. > _______________________________________________ > 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" > From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 15:23:39 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E88D01065677 for ; Fri, 19 Aug 2011 15:23:39 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id 823DD8FC23 for ; Fri, 19 Aug 2011 15:23:39 +0000 (UTC) Received: (qmail 18871 invoked from network); 19 Aug 2011 11:23:38 -0400 Received: from yktgi01e0-s5.watson.ibm.com (HELO atom-edge-009002034054.watson.ibm.com) (129.34.20.19) by mail.atlantawebhost.com with SMTP; 19 Aug 2011 11:23:38 -0400 Message-ID: <4E4E7FFA.9030305@shadowsun.net> Date: Fri, 19 Aug 2011 11:23:38 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: BCM4313 support 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: Fri, 19 Aug 2011 15:23:40 -0000 On 8/19/11 1:38 AM, Adrian Chadd wrote: > Hm, isn't there an open source linux driver for the latest broadcom chips? > I recall it was released sometime last year. > There's this: http://www.broadcom.com/support/802.11/linux_sta.php, which is what I described. Is the driver you're referencing produced by linux developers or broadcom? From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 16:24:06 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89D6E106564A for ; Fri, 19 Aug 2011 16:24:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 44C158FC13 for ; Fri, 19 Aug 2011 16:24:05 +0000 (UTC) Received: by yib19 with SMTP id 19so2717765yib.13 for ; Fri, 19 Aug 2011 09:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=T2JVGxCQVtWGoeFAP2Zbu+w/LcwN1Sr8HijZm1t6FOI=; b=oIeFhMYLQHtgFrar/HyUE54x/SIoK1IlFHh7+xr7nnU2IRJHtOjldxbDeQDuhZ2CLZ lbnvKI9U9+l+QB0YUj0nmjgqeV+vxSaHISfvBTMsIEND5jBHrB9wJz+uR5otCZH//zBA LSma5Cs5Hzu6CB25iDnG16Z/MOx8oenWF3reQ= MIME-Version: 1.0 Received: by 10.150.158.17 with SMTP id g17mr1289720ybe.386.1313771045465; Fri, 19 Aug 2011 09:24:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Fri, 19 Aug 2011 09:24:05 -0700 (PDT) In-Reply-To: <4E4E7FFA.9030305@shadowsun.net> References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> <4E4E7FFA.9030305@shadowsun.net> Date: Sat, 20 Aug 2011 00:24:05 +0800 X-Google-Sender-Auth: 1UWNI2GKriW-N8USMt93rhI9gqE Message-ID: From: Adrian Chadd To: Eric McCorkle Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: BCM4313 support 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: Fri, 19 Aug 2011 16:24:06 -0000 http://linuxwireless.org/en/users/Drivers/brcm80211 http://linuxwireless.org/en/users/Drivers/b43 ? adrian On 19 August 2011 23:23, Eric McCorkle wrote: > On 8/19/11 1:38 AM, Adrian Chadd wrote: >> >> Hm, isn't there an open source linux driver for the latest broadcom chip= s? >> I recall it was released sometime last year. >> > > There's this: http://www.broadcom.com/support/802.11/linux_sta.php, which= is > what I described. =A0Is the driver you're referencing produced by linux > developers or broadcom? > _______________________________________________ > 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" > From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 23:28:33 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E012C106564A for ; Fri, 19 Aug 2011 23:28:33 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id 78F498FC08 for ; Fri, 19 Aug 2011 23:28:33 +0000 (UTC) Received: (qmail 29126 invoked from network); 19 Aug 2011 19:28:33 -0400 Received: from yktgi01e0-s5.watson.ibm.com (HELO atom-edge-009002034054.watson.ibm.com) (129.34.20.19) by mail.atlantawebhost.com with SMTP; 19 Aug 2011 19:28:33 -0400 Message-ID: <4E4EF1A0.20804@shadowsun.net> Date: Fri, 19 Aug 2011 19:28:32 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> <4E4E7FFA.9030305@shadowsun.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: BCM4313 support 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: Fri, 19 Aug 2011 23:28:34 -0000 On 8/19/11 12:24 PM, Adrian Chadd wrote: > http://linuxwireless.org/en/users/Drivers/brcm80211 > http://linuxwireless.org/en/users/Drivers/b43 > > ? > Interesting, it seems Broadcom put out a fully open-source driver. I'd missed that, as had the forums, apparently. I'll get ahold of them and take a look. Maybe they can be dissected and used to modify the bwn driver. From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 20 02:23:36 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 231A61065670 for ; Sat, 20 Aug 2011 02:23:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id D1C3E8FC13 for ; Sat, 20 Aug 2011 02:23:35 +0000 (UTC) Received: by gxk28 with SMTP id 28so3025170gxk.13 for ; Fri, 19 Aug 2011 19:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=ehTO4foazrGS2dYD6+j38nlGZCc5pw8KoO8JCn1mkNU=; b=vxkxDjrkzKCXlp3WECjLPc5YWUYIiE9yztyVOGlBePY2TRPH+IreXyTlseivqyQyTy 9azNA5m56rxaTmDZd+KpurxZoCj4ECfbf70oRmL+7hICWB+bbx2spg8IN5z00RjkzxGJ fMaY+m7r2437OGw1d5XC9/4/sR4ViA+xqXfzU= MIME-Version: 1.0 Received: by 10.151.3.13 with SMTP id f13mr72957ybi.215.1313807015294; Fri, 19 Aug 2011 19:23:35 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Fri, 19 Aug 2011 19:23:35 -0700 (PDT) In-Reply-To: <4E4EF1A0.20804@shadowsun.net> References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> <4E4E7FFA.9030305@shadowsun.net> <4E4EF1A0.20804@shadowsun.net> Date: Sat, 20 Aug 2011 10:23:35 +0800 X-Google-Sender-Auth: nDrbScGS74WGb4VwO0cymKJeSUg Message-ID: From: Adrian Chadd To: Eric McCorkle Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: BCM4313 support 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, 20 Aug 2011 02:23:36 -0000 Yup, but I think the view is the 'bwn' is 'b43legacy' and the newer code is for the newer chips. It's getting quite a bit of active development. adrian On 20 August 2011 07:28, Eric McCorkle wrote: > On 8/19/11 12:24 PM, Adrian Chadd wrote: >> >> http://linuxwireless.org/en/users/Drivers/brcm80211 >> http://linuxwireless.org/en/users/Drivers/b43 >> >> ? >> > > Interesting, it seems Broadcom put out a fully open-source driver. =A0I'd > missed that, as had the forums, apparently. =A0I'll get ahold of them and= take > a look. =A0Maybe they can be dissected and used to modify the bwn driver. > _______________________________________________ > 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" >