From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 10 16:29:39 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 02730C06 for ; Sun, 10 Mar 2013 16:29:38 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id A0CE766C for ; Sun, 10 Mar 2013 16:29:38 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id c13so3784801ieb.37 for ; Sun, 10 Mar 2013 09:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=BqcNbtxjMn5zsVClV0n+rKQ85GAn7ubj5KZhpKChS+o=; b=SFGcp1LN8UQGxNHuyrrpeQaeAsGcYvAdfv7PczA2IvwUgS1Z7gCm22zLwB6TZ9cNdA 4PvAQUOEU1MX/3IT3GtlYQ1t3Z2tvSHoqE80+eBIefSoxw7QFLe8V0dopFbYzMvpq/Yk rSlH/dzBK/dWwZTnOL2EwP4FPJZI5GTdAbllO45ZFd9L4Z4vMRDetGigWfzMiVOTD37o J2Nww8IUl9Z6HlJ7pWV3VZyOIzqJs1vd12ITh2FAIYjXqoipGFohPMSHk2B7Gh14NkRe h/NQq/KJSHfXmt5HoyJ4qhO5AdPcWVE+qpnUbTgkuX1pZ0JfElvJsHmzjAQZMsN760Cy oDFw== X-Received: by 10.50.181.136 with SMTP id dw8mr5068625igc.39.1362932978328; Sun, 10 Mar 2013 09:29:38 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id qn10sm8250335igc.6.2013.03.10.09.29.37 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Mar 2013 09:29:37 -0700 (PDT) Message-ID: <513CB4EC.10200@gmail.com> Date: Sun, 10 Mar 2013 11:29:32 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 10 Mar 2013 16:29:39 -0000 I patched according to the instructions, but it fails with these four missing files: ash_amem.h ar9300_freebsd.c ar9300_stub_funcs.c ar9300_stub.c I tried commenting them out, the .c files in the makefile, ash_amem.h in the .c file, but the build fails. From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 10 16:43:51 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B6C99D8C for ; Sun, 10 Mar 2013 16:43:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx1.freebsd.org (Postfix) with ESMTP id 429A86CB for ; Sun, 10 Mar 2013 16:43:50 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id fg15so4061738wgb.1 for ; Sun, 10 Mar 2013 09:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=8lqelpD8N9UymianOfPODi5Xr4eNHQwmUEpXXEU+cRI=; b=i69WPQEr0GfHg+f++1zwSQoWWczhgPiBi1tiFSfbb7I4WGAP/wkJNKzC8kVh5nUT9d Au4e3ddYWluk619RMyyFlq1iEwjG5JTaCoapuqRD6xuuPrucLecfICxeS/pW3LUE9OQY U3zsEP+r0YkihIniis+WnABGC6bTC6x1EGRv/Wm55RVRKPx3lngFDoVQwpOJM33HS1Zz n+HRlvqMCvL0seRI/sFcsMamWDoLOJP8vZN2Wpk2CCcqhx3yV0u2G441Jt0X7ZtFKe51 a/i7xeJBWCrdVaLPl7HFLE+9uphu8B5CckaGaEPB1FM8KYoShmK0P2F/zigtlOBcqAdt RymQ== MIME-Version: 1.0 X-Received: by 10.180.84.8 with SMTP id u8mr8016659wiy.1.1362933829951; Sun, 10 Mar 2013 09:43:49 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Sun, 10 Mar 2013 09:43:49 -0700 (PDT) In-Reply-To: <513CB4EC.10200@gmail.com> References: <513CB4EC.10200@gmail.com> Date: Sun, 10 Mar 2013 09:43:49 -0700 X-Google-Sender-Auth: ZXh7wTYR4iOlFmflfUvZUxC4nIA Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 10 Mar 2013 16:43:51 -0000 You didn't check out the local/freebsd branch. On 10 March 2013 09:29, Joshua Isom wrote: > I patched according to the instructions, but it fails with these four > missing files: > > ash_amem.h > ar9300_freebsd.c > ar9300_stub_funcs.c > ar9300_stub.c > > I tried commenting them out, the .c files in the makefile, ash_amem.h in the > .c file, but the build fails. > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 10 21:33:44 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 096AD330; Sun, 10 Mar 2013 21:33:44 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) by mx1.freebsd.org (Postfix) with ESMTP id 5F787157; Sun, 10 Mar 2013 21:33:43 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id hq4so579052wib.17 for ; Sun, 10 Mar 2013 14:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=saFo2W2T+hy+KCGsT0sFm6nbi+o1XbJ2cJTe2qyRhoY=; b=VpO7HoOEUI12F253Ool3skyksFD095FXIyCOQRgomIq2AobwTf9VTw6UDdBvR8sGNA yR2wxxlX+5XKzTRsnCapc8yCPSLndn5Ye0FJ9qrQppDXYsE8WcnYN+J+FIXqLSh/AXFj MrehfkNX57YEYjuoJLlFPjumyvUgBluFvboPx9KKT+8uqjVliShConi8rrvnZJSgttMb FKhEOav34ACyL5yKeCRF835+Ywg3jN5AueQpxEfGw8ywXf2XxfPkHRzNNs4429zjKaGb XzOwiZVeRw36E7ybM635YZBBnAZb9mlhuriY++lhSWTcS+cL5sfYjXFm0UejjNJj8wIL XCww== MIME-Version: 1.0 X-Received: by 10.180.83.39 with SMTP id n7mr8835508wiy.8.1362951222474; Sun, 10 Mar 2013 14:33:42 -0700 (PDT) Received: by 10.227.165.9 with HTTP; Sun, 10 Mar 2013 14:33:42 -0700 (PDT) In-Reply-To: References: Date: Sun, 10 Mar 2013 22:33:42 +0100 Message-ID: Subject: Re: [RFC] net80211 TX, take 4 (final) From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 10 Mar 2013 21:33:44 -0000 Sorry for late reply. On Mon, Mar 4, 2013 at 3:11 AM, Adrian Chadd wrote: > Hi, > > So this stuff breaks Monthadar's meshing code. > > The mesh forwarding stuff takes mesh frames in mesh_input() that are > destined for another node and potentially stuffs them back into the > parent transmit queue, bypassing the rest of the stack. > > This has a bunch of potential interesting implications, like how > exactly sequence numbers, encryption, power save and aggregation are > supposed to work. Since the forwarded packets are being forwarded > direct to the driver, there's no nice place to tie in things like > power save. The sequence number should be set as if the meshSTA is transmitting normal frames. Powersave, encryption and aggregation is not implemented for mesh right now. I am unsure about how it would be and how it could effect the TX-serialization issue. > > I don't know what the right thing to do is - should the frames be > de-encapsulated and then reinjected into the VAP but with an already > resolved destination node? Or? I'm open to other suggestions. I don't think we can de-cap the frame at all. If you decap a mesh frame you would loose some information. Lost information could be things like mesh TTL. As it's done right now the frame is duplicated. After modifying necessary fields we call ieee80211_parent_transmit(ic, mcopy); My solutions right now: keep it as it is and create a new raw_xmit that honors the TX-serialization framework. > > I'm happy to just "fix" the mesh code right now to not panic with the > locking work that I'm currently doing. But we do need to fix this. Do that if your unsure, I will go through it when I get some time over. > > > > Adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" -- Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 10 23:35:51 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A74BC94F; Sun, 10 Mar 2013 23:35:51 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ia0-x22a.google.com (mail-ia0-x22a.google.com [IPv6:2607:f8b0:4001:c02::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFAD759; Sun, 10 Mar 2013 23:35:51 +0000 (UTC) Received: by mail-ia0-f170.google.com with SMTP id h8so3097341iaa.15 for ; Sun, 10 Mar 2013 16:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=WVxtbbbxNiD7qxxPbMAeZTqeYu5zpVirDUGaiCdZVNc=; b=J6Hk60ILJmfNiQcAWehPPeTHGUOfHfVlz/fJVJwsoHp9Wxl9IJ8fqI6iHxzVc28HbV ebDoHTjQRAiTa6pJfMPLudLp1pIG6uClRBQzdhX2CXKyihtiPcPxB0a+FxbwCvgru+en G2jjgPg+x0/4VkNbe12FcXdylwxryUYjBq6pKA4gOoUBtCPWP28W8CZ0ouei2JhO76RA b/Ney6hfBs5ibpY9fhtnEctneMrPwB0mSggBYcN1342MyJgSqvzCW0BVloczd8UwZieg Hl83EOXrMjQA8Sc0W7etRSdlD0bF/Xpo35slIOAxf8BcytFvCM/vCN+SF5kEsQg62Gmk 3/Rg== X-Received: by 10.42.65.212 with SMTP id m20mr6940425ici.55.1362958551006; Sun, 10 Mar 2013 16:35:51 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id in10sm12745188igc.1.2013.03.10.16.35.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Mar 2013 16:35:50 -0700 (PDT) Message-ID: <513D18D0.8070602@gmail.com> Date: Sun, 10 Mar 2013 18:35:44 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513CB4EC.10200@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 10 Mar 2013 23:35:51 -0000 It's my first time using git, so there's a learning curve. I'm building on 9-STABLE, but because of yacc I am doing a buildworld first. First it fails with ichan not being used in ar9300_radio.c. I commented it out, rebuilt, and then it fails with the errors listed below. I was using -j, but the error messages look readable enough. Any clue to get it to compile? On 3/10/2013 11:43 AM, Adrian Chadd wrote: > You didn't check out the local/freebsd branch. > > On 10 March 2013 09:29, Joshua Isom wrote: >> I patched according to the instructions, but it fails with these four >> missing files: >> >> ash_amem.h >> ar9300_freebsd.c >> ar9300_stub_funcs.c >> ar9300_stub.c >> >> I tried commenting them out, the .c files in the makefile, ash_amem.h in the >> .c file, but the build fails. >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: note: use '&' for a bitwise operation if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && ^~ & /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: note: remove constant to silence this warning if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/root/ATH/head/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/GENERIC -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_stub_funcs.c cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/root/ATH/head/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/GENERIC -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c 1 error generated. *** [ar9300_misc.o] Error code 1 ctfconvert -L VERSION -g ar9300_attach.o ctfconvert -L VERSION -g ar9300_recv.o In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:107:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -477 to 35 [-Werror,-Wconstant-conversion] FREQ2FBIN(2412, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:108:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -472 to 40 [-Werror,-Wconstant-conversion] FREQ2FBIN(2437, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:109:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -465 to 47 [-Werror,-Wconstant-conversion] FREQ2FBIN(2472, 1) ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:122:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -477 to 35 [-Werror,-Wconstant-conversion] FREQ2FBIN(2412, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:123:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -463 to 49 [-Werror,-Wconstant-conversion] FREQ2FBIN(2484, 1) ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:128:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -477 to 35 [-Werror,-Wconstant-conversion] FREQ2FBIN(2412, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:129:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -472 to 40 [-Werror,-Wconstant-conversion] FREQ2FBIN(2437, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:130:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -465 to 47 [-Werror,-Wconstant-conversion] FREQ2FBIN(2472, 1) ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:135:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -477 to 35 [-Werror,-Wconstant-conversion] FREQ2FBIN(2412, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' har') changes value from -476 to 36 [-Werror,-Wconstant-conversion] FREQ2FBIN(2417, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:204:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -468 to 44 [-Werror,-Wconstant-conversion] FREQ2FBIN(2457, 1), ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:205:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -467 to 45 [-Werror,-Wconstant-conversion] FREQ2FBIN(2462, 1)}, ^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:207:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') changes value from -477 to 35 [-Werror,-Wconstant-conversion] {FREQ2FBIN(2412, 1), ~^~~~~~~~~~~~~~~~~~ /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) ~~~~~~~~~~~~~^~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] ctfconvert -L VERSION -g ar9300_stub_funcs.o 20 errors generated. *** [ar9300_eeprom.o] Error code 1 2 errors *** [all] Error code 2 1 error *** [modules-all] Error code 2 1 error *** [buildkernel] Error code 2 1 error *** [buildkernel] Error code 2 1 error From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 00:07:30 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 7F046F43; Mon, 11 Mar 2013 00:07:30 +0000 (UTC) (envelope-from rpaulo@felyko.com) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5069187E; Mon, 11 Mar 2013 00:07:30 +0000 (UTC) Received: from [IPv6:2601:9:4d00:85:5553:392c:b44b:fb7c] (unknown [IPv6:2601:9:4d00:85:5553:392c:b44b:fb7c]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 3B8223981E; Sun, 10 Mar 2013 17:07:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=felyko.com; s=mail; t=1362960444; bh=s7BBUvXt+dQrvPlk/J+7aS3N/t+rZdFTMkrPw1nQK0M=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=OoyLedflG+i+WW0O3jNdvDmBpCI39qxiTAlOEJg5IV2g39Es4rc013zB96s6xcwNZ 3sDwJHgTuTgRJBDgz7e4IhClsSaFRj8Gmt1jjft/q4PRcbZ1pEKL4SEAdA7VC4fdrg V2+7GE9PDZsfw+gKcyeBFxkxj0vaycVHaPO1y/Wk= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Rui Paulo In-Reply-To: <513D18D0.8070602@gmail.com> Date: Sun, 10 Mar 2013 17:07:22 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <34CC3E14-4FFF-46D8-A837-EDBB9A626C82@felyko.com> References: <513CB4EC.10200@gmail.com> <513D18D0.8070602@gmail.com> To: Joshua Isom X-Mailer: Apple Mail (2.1499) 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: Mon, 11 Mar 2013 00:07:30 -0000 On 2013/03/10, at 16:35, Joshua Isom wrote: > It's my first time using git, so there's a learning curve. I'm = building on 9-STABLE, but because of yacc I am doing a buildworld first. = First it fails with ichan not being used in ar9300_radio.c. I = commented it out, rebuilt, and then it fails with the errors listed = below. I was using -j, but the error messages look readable enough. = Any clue to get it to compile? Did you 'git checkout ' ? Regards, -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 02:01:16 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1BAF593F; Mon, 11 Mar 2013 02:01:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx1.freebsd.org (Postfix) with ESMTP id C620DD98; Mon, 11 Mar 2013 02:01:15 +0000 (UTC) Received: by mail-pb0-f53.google.com with SMTP id un1so3146129pbc.26 for ; Sun, 10 Mar 2013 19:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:to:cc:reply-to:subject:in-reply-to :x-mailer:mime-version:content-type; bh=UKalI9tnEzAOb/hxm8QWg8bo+22ZybgwD3BVRvIuves=; b=OV7YZjLF0gUALLrUgrqLyJnfKmKO/x5YYMdxdyPNNGNxPSSyjeb0ih3s3JtBuyihVx jhC4ReNoz9uAQSOraCQbIc3STjR+S5e8mqmHzOeScldF4YffKL/tXChdUpb+i3zjsklK uwm8N2brs/09PJg4yO8dVQnr2jHgQ2+KplASm7nz9Q9nFbJNjLpCcqQXvs79Le6AJHYe rTCCGWfD6hq3kryAGhhl2ReVVP2iAPo/R0QnIi+QdWqfjsDeF7MkF2FAe5EbzCy2f9vI tfjToLt7hZFXSFVcyrZHvDuyTr1T2M1v82p6qFMBaIDHqIMGAy6xI3hOgJ/GhOeWujhG 4d/w== X-Received: by 10.68.135.136 with SMTP id ps8mr23665256pbb.2.1362967268983; Sun, 10 Mar 2013 19:01:08 -0700 (PDT) Received: from www.palm.com ([32.152.203.163]) by mx.google.com with ESMTPS id hs8sm17924380pbc.27.2013.03.10.19.01.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 10 Mar 2013 19:01:07 -0700 (PDT) Message-ID: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> Date: Sun, 10 Mar 2013 19:00:42 -0700 From: "Adrian Chadd" To: "Rui Paulo" , "Joshua Isom" Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support In-Reply-To: <34CC3E14-4FFF-46D8-A837-EDBB9A626C82@felyko.com> X-Mailer: Palm webOS v1.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Adrian Chadd 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, 11 Mar 2013 02:01:16 -0000 Yes, you need to do this: Git clone ... Cd openhal... Git checkout local/freebsd It'll create the branch based off of my branch in git. Then do the ln -s ing.. Then build. Adrian Sent from my Palm Pre on AT&T On Mar 10, 2013 5:07 PM, Rui Paulo <rpaulo@felyko.com> wrote:=20 On 2013/03/10, at 16:35, Joshua Isom <jrisom@gmail.com> wrote: > It's my first time using git, so there's a learning curve. I'm buildi= ng on 9-STABLE, but because of yacc I am doing a buildworld first. First= it fails with ichan not being used in ar9300_radio.c. I commented it out,= rebuilt, and then it fails with the errors listed below. I was using -j,= but the error messages look readable enough. Any clue to get it to compil= e? Did you 'git checkout <branch-name>' ? Regards, -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 09:44:15 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 252F4DB8 for ; Mon, 11 Mar 2013 09:44:15 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id E565117B for ; Mon, 11 Mar 2013 09:44:14 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id k11so4445613iea.38 for ; Mon, 11 Mar 2013 02:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=5r6J+tUdq3Q2PNOj/oggz/m+RhaJKhEdeJw+e9qmh/g=; b=P8hDkjCVLiZGE3XKnjC6tpumPqJWwXB4hDqHz59drnkO9p5PHDxhjgqqrUSocTg1um v+oWj4liGJoMrR1cLKjZ8qCbB99f62bN43jbrdy5T63mrzbfifbyuFDjn9TQXlgBgseR bsbV6xrRQHqFQ4chqNllT3vWQJlRQrF3rglSsqkcZX9vGTvANSRYF5oM5vALY6SaGi5M sha0dBySJh8lOENn/qNTGzf6XQZZnWF2F17PUvdxPm56huZ1g4CynU0af/wKtSeV+7FA xKvIHvtKCYul2jPcfkri+SonQuWoAhddTRAMXcwxGoZd265M1gV/kAh3yThYhzuxkLv6 6OJg== X-Received: by 10.50.53.146 with SMTP id b18mr6869804igp.82.1362995053968; Mon, 11 Mar 2013 02:44:13 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id ih1sm12289983igc.3.2013.03.11.02.44.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 02:44:13 -0700 (PDT) Message-ID: <513DA767.6010208@gmail.com> Date: Mon, 11 Mar 2013 04:44:07 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: "freebsd-wireless@freebsd.org" Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> In-Reply-To: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 11 Mar 2013 09:44:15 -0000 On 3/10/2013 9:00 PM, Adrian Chadd wrote: > Yes, you need to do this: > > Git clone ... > Cd openhal... > Git checkout local/freebsd > > It'll create the branch based off of my branch in git. > > Then do the ln -s ing.. Then build. > > > > Adrian > Here's the commands I tried: cd /root/ATH git clone https://github.com/erikarn/qcamain_open_hal_public -b local/freebsd ln -s /root/ATH/qcamain_open_hal_public/hal/ar9300/* . vi /root/ATH/head/sys/modules/ath/Makefile The source directory is using https://svn0.us-east.freebsd.org/base/head as it's base. Running `git status` does list local/freebsd being used. From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 10:10:49 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ACB9C267 for ; Mon, 11 Mar 2013 10:10:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id C9BD4293 for ; Mon, 11 Mar 2013 10:10:48 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id u54so3201059wey.2 for ; Mon, 11 Mar 2013 03:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=kWxwB5atWporXL47Tj23aU9hFPVuRJAA2yhALMyZaQY=; b=XhVxr1DgPCpHeogFs17OXny2VPvys1nyGMXRudzNmu8CzUMYtCb2dWcx+YElbG48qx t6Zou99I+YzvYh5e6R0rHUr3ehvwl8oNTn1q7RFYLNol9Vklsg1c59Y1m3zB5NRsirTb iNeDAvpQdR7Wes2+4ch01O4PQuB+4wQENRbUItf3rZFDUcAcSfqjlnxWCg3SI8bn9UPW IqdLzJcezBguoqwi1KkC/VksjBGL8w2XYR9BP27w3StpCvbb/nb3T/QOV+YwZpzXY7sp J2CkewdWambGA5cTZOzrmkKKdVtPPDxGQf5W7G50zLH8cbPrDdoKQnvZ6jbxPFDTlBI/ klBw== MIME-Version: 1.0 X-Received: by 10.194.133.98 with SMTP id pb2mr17761100wjb.20.1362996647918; Mon, 11 Mar 2013 03:10:47 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Mon, 11 Mar 2013 03:10:47 -0700 (PDT) In-Reply-To: <513DA767.6010208@gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> Date: Mon, 11 Mar 2013 03:10:47 -0700 X-Google-Sender-Auth: Zppb6AYSnN6AyMfaiu83ZfR2muI Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 11 Mar 2013 10:10:49 -0000 Try this: adrian@cynthia:~/git/github/erikarn$ git@github.com:erikarn/qcamain_open_hal_public.git -bash: git@github.com:erikarn/qcamain_open_hal_public.git: No such file or directory adrian@cynthia:~/git/github/erikarn$ git clone https://github.com/erikarn/qcamain_open_hal_public.git Cloning into qcamain_open_hal_public... cd qc remote: Counting objects: 128, done. remote: Compressing objects: 100% (67/67), done. remote: Total 128 (delta 66), reused 118 (delta 56) Receiving objects: 100% (128/128), 857.79 KiB | 486 KiB/s, done. Resolving deltas: 100% (66/66), done. adrian@cynthia:~/git/github/erikarn$ cd qcamain_open_hal_public/ adrian@cynthia:~/git/github/erikarn/qcamain_open_hal_public$ git checkout local/freebsd Branch local/freebsd set up to track remote branch local/freebsd from origin. Switched to a new branch 'local/freebsd' adrian@cynthia:~/git/github/erikarn/qcamain_open_hal_public$ ls hal/ar9300/*freebsd* hal/ar9300/ar9300_freebsd.c hal/ar9300/ar9300_freebsd.h hal/ar9300/ar9300_freebsd_inc.h adrian@cynthia:~/git/github/erikarn/qcamain_open_hal_public$ ... Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 11:06:52 2013 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 76596B78 for ; Mon, 11 Mar 2013 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 666017E4 for ; Mon, 11 Mar 2013 11:06:52 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2BB6qSm089203 for ; Mon, 11 Mar 2013 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2BB6pYQ089201 for freebsd-wireless@FreeBSD.org; Mon, 11 Mar 2013 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Mar 2013 11:06:51 GMT Message-Id: <201303111106.r2BB6pYQ089201@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 Subject: Current problem reports assigned to 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: Mon, 11 Mar 2013 11:06:52 -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/176238 wireless [ath] [patch] Correct buffer size calculation and simp o kern/176201 wireless [net80211] [patch] 11n station includes unrelated ht p o kern/176104 wireless [iwn] iwn0: iwn_intr: fatal firmware error o kern/175870 wireless [iwn] /etc/rc.d/netif restart cause system crash o kern/175722 wireless [ath]lot of bad seriesx hwrate in kernel messages o kern/175446 wireless [ath] high volumes of PHY errors lead to BB/MAC hangs o kern/175227 wireless [ath] beacon timers aren't necessarily reprogrammed af o kern/175183 wireless [iwn] iwn(4) becomes unresponsive during initial confi o kern/175053 wireless [iwn] iwn firmware error on 9-stable with Ultimate-N 6 o kern/174891 wireless [ieee80211] struct ieee80211_node is freed during acti o kern/174722 wireless [wlan] can't use channel 12 and 13 (14) with my wifi i o kern/174661 wireless [wlan] lost alias on wlan interface o kern/174283 wireless [net80211] panics in ieee80211_ff_age() and ieee80211_ o kern/174276 wireless [ath] if_ath memory modified after free o kern/174273 wireless [net80211] taking down a net80211 node with active fas o kern/173917 wireless [iwn] wpa-supplicant issues on iwn o kern/173898 wireless [iwn] [patch] iwn(4) DOES support 6235 chip. o kern/173883 wireless [ath] ath0: unable to attach - pci issue? o kern/173711 wireless [ath] powerd kills ath on the Asus EeePC 1005HA o kern/173342 wireless PS-Poll isn't working o kern/173336 wireless [ath] Atheros card improper device poweroff handling o o kern/172955 wireless [ath] 11n does not work in adhoc mode o kern/172706 wireless [wpi] wpi0 fails to load firmware when using country o kern/172672 wireless [ubt] Bluetooth device recognised but not working o kern/172661 wireless hostapd(8) securing wireless adapter in HostAP mode is o kern/172338 wireless [ath] [net80211] CCMP IV transmit counters are not cor o kern/171598 wireless [ath] TP-Link TL-WN951N W-LAN PCI Adapter 300 MBit stu o kern/171235 wireless [ath] ath loses connection, system freezes on netif re o kern/170889 wireless [ath] ath driver uses some uninitilized memory o kern/170620 wireless [ath] LOR and deadlock when multiple vaps are used o kern/170573 wireless [iwi] Intel 2200BG iwi NIC hangs with need multicast c o kern/170513 wireless [ath] ath logs: ath_tx_aggr_comp_aggr: AR5416 bug: o kern/170433 wireless [ath] TX hang after a stuck beacon message with active o kern/170397 wireless [ath] [patch] Uninitialized variables in ah_eeprom_928 o kern/170302 wireless [ath] 802.11n frames are not being transmitted with mu o kern/170281 wireless [ath] 802.11n locks up on aggregation setup (ampdutx) o kern/170098 wireless [ath] [net80211] VAPs (Virtual access points) with Ath o kern/170066 wireless [ral] ral(4) rt61pci Linksys freezes the machine as so o kern/169432 wireless [ath] BAR TX hang when aggregation session is reset du p kern/169362 wireless [ath] AR5416: radar pulse PHY errors sometimes include o kern/169336 wireless [ath] ANI isn't triggering in a busy/noisy environment o kern/169199 wireless [ath] Cannot set up static ip addresses for wireless w o kern/169084 wireless [ath] suspend/resume doesn't cause a rescan; the assoc o kern/168530 wireless [ath] Broken WEP probably o kern/168393 wireless AR9285: suspend/resume sometimes fails o kern/168170 wireless [net80211] ieee80211_send_bar() doesn't complete corre o kern/167870 wireless [ath] adhoc wifi client does not join an existing IBSS o kern/167834 wireless [ath] kickpcu; 'handled 0 packets' o kern/167828 wireless [iwn] iwn(4) doesn't recover automatically after firmw o kern/167798 wireless ifconfig(8): problem with "ifconfig list scan" command o kern/167491 wireless [ath] TID != hardware queue TID in ath_tx_aggr_comp_ag o kern/167113 wireless [ath] AR5210: "stuck" TX seems to be occuring, without o kern/167080 wireless [ath] channel switch on another VAP break channel setu o kern/166684 wireless [ath] [net80211] mgmtrate/mcastrate isn't updated base p kern/166642 wireless [ieee80211] [patch] in 802.11n mode for FreeBSD AP, ha o kern/166641 wireless [ieee80211] [patch] mbuf/cluster leak in AP mode in 80 p kern/166357 wireless [ath] 802.11n TX stall when the first frame in the BAW o kern/166286 wireless [net80211] [ath] initial switch to HT40 isn't causing p kern/166190 wireless [ath] TX hangs and frames stuck in TX queue o kern/166086 wireless [Patch][ath] Reflect state of rfkill switch in a sysct o kern/165969 wireless [ath] Slower performance in adhoc mode vs Client/AP mo o kern/165966 wireless [ath] ath0: device timeout on SMP machines due to race o kern/165895 wireless [ath] overly busy cabq can tie up all tx buffers o kern/165870 wireless [bwn] bwn driver does not attach on HP Pavilion dv9420 o kern/165866 wireless [ath] TX hangs, requiring a "scan" to properly reset t o kern/165849 wireless [ath] [hang] network ath driver freeze o kern/165595 wireless [ipw] ipw(4): Can't load firmare for ipw2200bg o kern/165543 wireless [ath] ath0 endless scanning of channels without connec o kern/165517 wireless [net80211] bgscan isn't triggered when invalid beacons o kern/165475 wireless [ath] operational mode change doesn't poke the underly o kern/165382 wireless [kernel] taskqueue_unblock doesn't unblock currently q o kern/165306 wireless [ath] race conditions between scanning and beacon time o kern/165220 wireless [ath] "ath_rx_tasklet: sc_inreset_cnt > 0; skipping" m o kern/165214 wireless [ieee80211] Kernel panic in ieee80211_output.c:2505 o kern/165212 wireless [ath] No WiFi on Acer Aspire One 751h (Atheros AR5BHB6 o kern/165149 wireless [ath] [net80211] Ping with data length more than iv_fr o kern/165146 wireless [net80211] Net802.11 Fragment number is assigned 1 (sh o kern/165060 wireless [ath] vap->iv_bss race conditions causing crashes insi o kern/165021 wireless [ath] ath device timeout during scan/attach, if wlan_c o kern/164721 wireless [ath] ath device timeouts o kern/164499 wireless [wi] [patch] if_wi needs fix for big endian architectu o kern/164382 wireless [ath] crash when down/deleting a vap - inside ieee8021 o kern/164365 wireless [iwi] iwi0: UP/DOWN in o bin/164102 wireless hostapd not configured for 802.11n o kern/163759 wireless [ath] ath(4) "stops working" in hostap mode o kern/163724 wireless [mwl] [patch] NULL check before dereference o kern/163719 wireless [ath] ath interface do not receive multicast o kern/163689 wireless [ath] TX timeouts when sending probe/mgmt frames durin o kern/163574 wireless [net80211] overly-frequent HT occupancy changes o kern/163573 wireless [ath] hostap mode TX buffer hang o kern/163559 wireless [ath] kernel panic AH_DEBUG o kern/163318 wireless [ath] ath(4) stops working p kern/163312 wireless [panic] [ath driver] kernel panic: page fault with ath o kern/163237 wireless [ath] AR5416 as HostAP. Delays among clients when a cl o kern/163082 wireless [ath] ar9285 diversity fixes o kern/162648 wireless [ath] AR9227 ADC DC calibration failure o kern/162647 wireless [ath] 11n TX aggregation session / TX hang o kern/161293 wireless [iwn] hang at startup when starting network o kern/161035 wireless [ieee80211] Incorrect number describing 11ng MCS rate o kern/160391 wireless [ieee80211] [patch] Panic in mesh mode o kern/160296 wireless [zyd] [panic] 802.11 usb device reboots system on 'ifc o misc/160176 wireless [mips] [panic] Kernel panic on AR7161 platform with AR 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/153594 wireless [wlan] netif/devd race 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/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/148078 wireless [ath] wireless networking stops functioning o kern/146426 wireless [mwl] 802.11n rates not possible on mwl o kern/146425 wireless [mwl] mwl dropping all packets during and after high u 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 kern/144755 wireless [wlan] netif/devd race o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o conf/143079 wireless hostapd(8) startup missing multi wlan functionality 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 kern/121061 wireless [ath] [panic] panic while ejecting ath(4)-adapter duri 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 153 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 23:38:38 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 12192251 for ; Mon, 11 Mar 2013 23:38:38 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id C2825A05 for ; Mon, 11 Mar 2013 23:38:37 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k14so5545572iea.41 for ; Mon, 11 Mar 2013 16:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=gV7oK2vQzzkRRZjJd+O5/JUlI5QWux5CuyOHeZiOwFI=; b=gcu1qg27H4dJSd45Oca58Kr9I3SGEBL8EIv0M6Dv8V6/iAmfUlz4463ji/VvkKaaFo i1nORXoyjLzvTGzVa4yY3HwR+iyEDL7/m4TiC67pG/uvPEamipjME/6z2RC8nnvIJX34 1FExatzo/BCrVRtPassXKdB4hfs0BYBnxrgUQaJyrT4xPEMflbE5xaxRmFYhx+L79UUq eUKAbPtBWJjJn59Xvxj9ehz1DJ7LKH1pu6VOSVYCWRYZgYZ/IfspSWRTcXRyogGm2PKx HEaF60FCMNQlO262RKovqwaGlCq0jx0YNrY8xAJKcNxAWmxSTIfqnAr4n+bVHUrMSgya EKlQ== X-Received: by 10.42.58.67 with SMTP id g3mr10505224ich.56.1363045117518; Mon, 11 Mar 2013 16:38:37 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id ew5sm17183371igc.2.2013.03.11.16.38.36 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 16:38:36 -0700 (PDT) Message-ID: <513E6AF5.9010304@gmail.com> Date: Mon, 11 Mar 2013 18:38:29 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: "freebsd-wireless@freebsd.org" Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 11 Mar 2013 23:38:38 -0000 Here's me retrying everything. I also tried running make with -DAH_DEBUG and -DAH_DEBUG_ALQ, but I also got errors messages that made me think the variables didn't propagate to the source files. > [jri:~/ATH/head] root# uname -a > FreeBSD jri.homeunix.com 9.1-STABLE FreeBSD 9.1-STABLE #1: Thu Jan 24 22:19:24 UTC 2013 root@buildjail:/usr/obj/usr/src/sys/GENERIC amd64 > [jri:~/ATH/head] root# svn info > Path: . > Working Copy Root Path: /root/ATH/head > URL: https://svn0.us-east.freebsd.org/base/head > Repository Root: https://svn0.us-east.freebsd.org/base > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > Revision: 248174 > Node Kind: directory > Schedule: normal > Last Changed Author: tuexen > Last Changed Rev: 248172 > Last Changed Date: 2013-03-11 12:43:55 -0500 (Mon, 11 Mar 2013) > > [jri:~/ATH/head] root# svn diff > Index: sys/modules/ath/Makefile > =================================================================== > --- sys/modules/ath/Makefile (revision 248174) > +++ sys/modules/ath/Makefile (working copy) > @@ -124,13 +124,13 @@ > SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c > > # + AR9300 HAL > -# .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar9003 > -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > -#SRCS+= ar9300_power.c ar9300_timer.c > + .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar9003 > +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > +SRCS+= ar9300_power.c ar9300_timer.c > > # NB: rate control is bound to the driver by symbol names so only pick one > .if ${ATH_RATE} == "sample" > [jri:~/ATH/qcamain_open_hal_public] root# git status > # On branch local/freebsd > nothing to commit, working directory clean > [jri:~/ATH/qcamain_open_hal_public] root# cat .git/config > [core] > repositoryformatversion = 0 > filemode = true > bare = false > logallrefupdates = true > [remote "origin"] > url = https://github.com/erikarn/qcamain_open_hal_public.git > fetch = +refs/heads/*:refs/remotes/origin/* > [branch "master"] > remote = origin > merge = refs/heads/master > [branch "local/freebsd"] > remote = origin > merge = refs/heads/local/freebsd > [jri:ath/ath_hal/ar9003] root# pwd > /root/ATH/head/sys/dev/ath/ath_hal/ar9003 > [jri:ath/ath_hal/ar9003] root# ln -s /root/ATH/qcamain_open_hal_public/hal/ar9300/* . > ln: ./ar9300_devid.h: File exists > [jri:~/ATH/head] root# ls /usr/obj > [jri:~/ATH/head] root# make -j 3 buildworld > ../buildworld.txt > [jri:~/ATH/head] root# make -j 6 -k buildkernel > ../buildkernel.txt > [jri:~/ATH/head] root# make -DNO_CLEAN -k buildkernel > ../buildkernel-next.txt > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c:83:27: error: unused variable 'ichan' [-Werror,-Wunused-variable] > HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); > ^ > 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: note: use '&' for a bitwise operation > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ^~ > & > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: note: remove constant to silence this warning > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 error generated. > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:107:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2412, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:108:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -472 to 40 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2437, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:109:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -465 to 47 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2472, 1) > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:122:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2412, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:123:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -463 to 49 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2484, 1) > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:128:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2412, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:129:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -472 to 40 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2437, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:130:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -465 to 47 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2472, 1) > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:203:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -476 to 36 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2417, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:204:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -468 to 44 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2457, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:205:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -467 to 45 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2462, 1)}, > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:207:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > {FREQ2FBIN(2412, 1), > ~^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > fatal error: too many errors emitted, stopping now [-ferror-limit=] > 20 errors generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c:1849:27: error: unused variable 'ichan' [-Werror,-Wunused-variable] > HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); > ^ > 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2809:52: error: variable 'modes_txgaintable_index' is uninitialized when used here > [-Werror,-Wuninitialized] > REG_WRITE_ARRAY(&ahp->ah_ini_modes_txgain, modes_txgaintable_index, > ^~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300.h:904:85: note: expanded from macro 'REG_WRITE_ARRAY' > OS_REG_WRITE(ah, INI_RA((iniarray), (r), 0), INI_RA((iniarray), r, (column)));\ > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300.h:323:99: note: expanded from macro 'INI_RA' > #define INI_RA(iniarray, row, column) (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)]) > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ah_osdep.h:127:49: note: expanded from macro 'OS_REG_WRITE' > (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val)) > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2609:47: note: initialize the variable 'modes_txgaintable_index' to silence this warning > u_int modes_index, modes_txgaintable_index, freq_index; > ^ > = 0 > 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:63:15: error: cast to 'volatile u_int32_t *' (aka 'volatile unsigned int *') from smaller > integer type 'unsigned int' [-Werror,-Wint-to-pointer-cast] > address = (volatile u_int32_t *)(AR9340_SOC_GPIO_FUN0 + (out_func*4)); > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:159:25: warning: comparison of constant 20 with expression of type 'HAL_GPIO_MUX_TYPE' is > always true [-Wtautological-constant-out-of-range-compare] > if (hal_signal_type < ARRAY_LENGTH(mux_signal_conversion_table)) > ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:271:23: warning: comparison of constant 20 with expression of type 'HAL_GPIO_MUX_TYPE' is > always true [-Wtautological-constant-out-of-range-compare] > if (halSignalType < ARRAY_LENGTH(mux_signal_conversion_table)) > ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 2 warnings and 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:5: error: 'AH_DEBUG' is not defined, evaluates to 0 [-Werror,-Wundef] > #if AH_DEBUG || AH_PRINT_FILTER > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:17: error: 'AH_PRINT_FILTER' is not defined, evaluates to 0 [-Werror,-Wundef] > #if AH_DEBUG || AH_PRINT_FILTER > ^ > 2 errors generated. > objcopy: 'if_ath.ko.debug': No such file > 1 error > 1 error > 1 error > 1 error > 1 error > [jri:sys/modules/ath] root# pwd > /root/ATH/head/sys/modules/ath > [jri:sys/modules/ath] root# make -DAH_DEBUG -DAH_DEBUG_ALQ -k -j 8 > /dev/null > 6 errors > [jri:sys/modules/ath] root# make -DAH_DEBUG -DAH_DEBUG_ALQ -k > Warning: Object directory not changed from original /root/ATH/head/sys/modules/ath > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c: In function 'ar9300_set_channel': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c:83: warning: unused variable 'ichan' [-Wunused-variable] > *** [ar9300_radio.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c: In function 'ar9300_eeprom_set_power_per_rate_table': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:2297: warning: unused variable 'ichan' [-Wunused-variable] > *** [ar9300_eeprom.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c: In function 'ar9300_populate_paprd_single_table': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c:1849: warning: unused variable 'ichan' [-Wunused-variable] > *** [ar9300_paprd.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c: In function 'ar9300_reset': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2809: warning: 'modes_txgaintable_index' is used uninitialized in this function > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2609: note: 'modes_txgaintable_index' was declared here > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:3252: warning: 'cal_done' may be used uninitialized in this function > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:3252: note: 'cal_done' was declared here > *** [ar9300_reset.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c: In function 'ar9340_soc_gpio_cfg_output_mux': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > *** [ar9300_gpio.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:5: error: "AH_DEBUG" is not defined > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:17: error: "AH_PRINT_FILTER" is not defined > *** [ar9300_power.o] Error code 1 (continuing) > `all' not remade because of errors. > 1 error From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 23:41:57 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81F373F0 for ; Mon, 11 Mar 2013 23:41:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx1.freebsd.org (Postfix) with ESMTP id 60DE2A1D for ; Mon, 11 Mar 2013 23:41:57 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id wy12so4268094pbc.21 for ; Mon, 11 Mar 2013 16:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zB6e5hZ5s1HcoiIw3MZo09RVDnimgErNdxxzRoiCY2A=; b=Pq5GQ5wCdyuvIi/YsspGVxmRZ4VXwXB5lHKFJIXrK1tdIhooFFuQmNaZ3sy675YWuS T1q2mifgFVG85n9zuG/6Ot6Po2JGwG7lTUmcTguQXVl9i+v2I4heTJdt9HCjAxpqq/8n XdgIBf/exSdXpM8NYfBW8xBS+/nrckZIn8K6iJq6Gf+PgXSmidZWKpFaiZb+/yWk/yIB hDKx/1JZQWHDzkON+37JqICa17E1YQJWqAFbK5nQq9+6a5vOjc6QB7MbzbELUinfh4Tx wLqERaahcGq1GQ/bkdM7qU6GChPfokh74uvx1DVxM3V8SfsJ28ZU97P/2bYoweUQiZI7 M8cA== MIME-Version: 1.0 X-Received: by 10.69.0.36 with SMTP id av4mr25211621pbd.126.1363045310681; Mon, 11 Mar 2013 16:41:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.39.69 with HTTP; Mon, 11 Mar 2013 16:41:50 -0700 (PDT) In-Reply-To: <513E6AF5.9010304@gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> Date: Mon, 11 Mar 2013 16:41:50 -0700 X-Google-Sender-Auth: v0X8dzGSFZthV1xuD7qA5Oiq2x4 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 11 Mar 2013 23:41:57 -0000 Ooh.. add the debug options to your kernel, sorry! options ATH_DEBUG options AH_DEBUG options ATH_DIAGAPI I'm sorry, I've never tested it outside of a debug build before. Adrian On 11 March 2013 16:38, Joshua Isom wrote: > Here's me retrying everything. I also tried running make with -DAH_DEBUG > and -DAH_DEBUG_ALQ, but I also got errors messages that made me think the > variables didn't propagate to the source files. > >> [jri:~/ATH/head] root# uname -a >> FreeBSD jri.homeunix.com 9.1-STABLE FreeBSD 9.1-STABLE #1: Thu Jan 24 >> 22:19:24 UTC 2013 root@buildjail:/usr/obj/usr/src/sys/GENERIC amd64 >> [jri:~/ATH/head] root# svn info >> Path: . >> Working Copy Root Path: /root/ATH/head >> URL: https://svn0.us-east.freebsd.org/base/head >> Repository Root: https://svn0.us-east.freebsd.org/base >> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >> Revision: 248174 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: tuexen >> Last Changed Rev: 248172 >> Last Changed Date: 2013-03-11 12:43:55 -0500 (Mon, 11 Mar 2013) >> >> [jri:~/ATH/head] root# svn diff >> Index: sys/modules/ath/Makefile >> =================================================================== >> --- sys/modules/ath/Makefile (revision 248174) >> +++ sys/modules/ath/Makefile (working copy) >> @@ -124,13 +124,13 @@ >> SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c >> >> # + AR9300 HAL >> -# .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar9003 >> -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c >> -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c >> ar9300_stub.c >> -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c >> -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c >> ar9300_recv_ds.c >> -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c >> -#SRCS+= ar9300_power.c ar9300_timer.c >> + .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar9003 >> +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c >> +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c >> ar9300_stub.c >> +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c >> +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c >> ar9300_recv_ds.c >> +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c >> +SRCS+= ar9300_power.c ar9300_timer.c >> >> # NB: rate control is bound to the driver by symbol names so only pick >> one >> .if ${ATH_RATE} == "sample" > > > >> [jri:~/ATH/qcamain_open_hal_public] root# git status >> # On branch local/freebsd >> nothing to commit, working directory clean >> [jri:~/ATH/qcamain_open_hal_public] root# cat .git/config >> [core] >> repositoryformatversion = 0 >> filemode = true >> bare = false >> logallrefupdates = true >> [remote "origin"] >> url = https://github.com/erikarn/qcamain_open_hal_public.git >> fetch = +refs/heads/*:refs/remotes/origin/* >> [branch "master"] >> remote = origin >> merge = refs/heads/master >> [branch "local/freebsd"] >> remote = origin >> merge = refs/heads/local/freebsd > > >> [jri:ath/ath_hal/ar9003] root# pwd >> /root/ATH/head/sys/dev/ath/ath_hal/ar9003 >> [jri:ath/ath_hal/ar9003] root# ln -s >> /root/ATH/qcamain_open_hal_public/hal/ar9300/* . >> ln: ./ar9300_devid.h: File exists > > >> [jri:~/ATH/head] root# ls /usr/obj >> [jri:~/ATH/head] root# make -j 3 buildworld > ../buildworld.txt >> [jri:~/ATH/head] root# make -j 6 -k buildkernel > ../buildkernel.txt >> [jri:~/ATH/head] root# make -DNO_CLEAN -k buildkernel > >> ../buildkernel-next.txt >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c:83:27: >> error: unused variable 'ichan' [-Werror,-Wunused-variable] >> HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); >> ^ >> 1 error generated. >> >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: >> error: use of logical '&&' with constant operand >> [-Werror,-Wconstant-logical-operand] >> if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) >> && >> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: >> note: use '&' for a bitwise operation >> if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) >> && >> ^~ >> & >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: >> note: remove constant to silence this warning >> if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) >> && >> ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 1 error generated. >> >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:107:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -477 to 35 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2412, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:108:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -472 to 40 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2437, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:109:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -465 to 47 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2472, 1) >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:122:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -477 to 35 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2412, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:123:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -463 to 49 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2484, 1) >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:128:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -477 to 35 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2412, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:129:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -472 to 40 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2437, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:130:3: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -465 to 47 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2472, 1) >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:203:4: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> >> changes value from -476 to 36 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2417, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:204:4: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -468 to 44 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2457, 1), >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:205:4: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -467 to 45 [-Werror,-Wconstant-conversion] >> FREQ2FBIN(2462, 1)}, >> ^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> In file included from >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:207:4: >> error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') >> changes value from -477 to 35 [-Werror,-Wconstant-conversion] >> {FREQ2FBIN(2412, 1), >> ~^~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: >> note: expanded from macro 'FREQ2FBIN' >> (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) >> ~~~~~~~~~~~~~^~~ >> fatal error: too many errors emitted, stopping now [-ferror-limit=] >> 20 errors generated. >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c:1849:27: >> error: unused variable 'ichan' [-Werror,-Wunused-variable] >> HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); >> ^ >> 1 error generated. >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2809:52: >> error: variable 'modes_txgaintable_index' is uninitialized when used here >> [-Werror,-Wuninitialized] >> REG_WRITE_ARRAY(&ahp->ah_ini_modes_txgain, >> modes_txgaintable_index, >> ^~~~~~~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300.h:904:85: >> note: expanded from macro 'REG_WRITE_ARRAY' >> OS_REG_WRITE(ah, INI_RA((iniarray), (r), 0), >> INI_RA((iniarray), r, (column)));\ >> >> ^ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300.h:323:99: >> note: expanded from macro 'INI_RA' >> #define INI_RA(iniarray, row, column) (((iniarray)->ia_array)[(row) * >> ((iniarray)->ia_columns) + (column)]) >> >> ^ >> /root/ATH/head/sys/modules/ath/../../dev/ath/ah_osdep.h:127:49: note: >> expanded from macro 'OS_REG_WRITE' >> (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val)) >> ^ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2609:47: >> note: initialize the variable 'modes_txgaintable_index' to silence this >> warning >> u_int modes_index, modes_txgaintable_index, freq_index; >> ^ >> = 0 >> 1 error generated. >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:63:15: >> error: cast to 'volatile u_int32_t *' (aka 'volatile unsigned int *') from >> smaller >> integer type 'unsigned int' [-Werror,-Wint-to-pointer-cast] >> address = (volatile u_int32_t *)(AR9340_SOC_GPIO_FUN0 + (out_func*4)); >> ^ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:159:25: >> warning: comparison of constant 20 with expression of type >> 'HAL_GPIO_MUX_TYPE' is >> always true [-Wtautological-constant-out-of-range-compare] >> if (hal_signal_type < ARRAY_LENGTH(mux_signal_conversion_table)) >> ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:271:23: >> warning: comparison of constant 20 with expression of type >> 'HAL_GPIO_MUX_TYPE' is >> always true [-Wtautological-constant-out-of-range-compare] >> if (halSignalType < ARRAY_LENGTH(mux_signal_conversion_table)) >> ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 2 warnings and 1 error generated. >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:5: >> error: 'AH_DEBUG' is not defined, evaluates to 0 [-Werror,-Wundef] >> #if AH_DEBUG || AH_PRINT_FILTER >> ^ >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:17: >> error: 'AH_PRINT_FILTER' is not defined, evaluates to 0 [-Werror,-Wundef] >> #if AH_DEBUG || AH_PRINT_FILTER >> ^ >> 2 errors generated. >> objcopy: 'if_ath.ko.debug': No such file >> 1 error >> 1 error >> 1 error >> 1 error >> 1 error > > >> [jri:sys/modules/ath] root# pwd >> /root/ATH/head/sys/modules/ath >> [jri:sys/modules/ath] root# make -DAH_DEBUG -DAH_DEBUG_ALQ -k -j 8 > >> /dev/null >> 6 errors >> [jri:sys/modules/ath] root# make -DAH_DEBUG -DAH_DEBUG_ALQ -k >> Warning: Object directory not changed from original >> /root/ATH/head/sys/modules/ath >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ >> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -fno-omit-frame-pointer >> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions >> -Wmissing-include-dirs -fdiagnostics-show-option -c >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c >> cc1: warnings being treated as errors >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c: >> In function 'ar9300_set_channel': >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c:83: >> warning: unused variable 'ichan' [-Wunused-variable] >> *** [ar9300_radio.o] Error code 1 (continuing) >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ >> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -fno-omit-frame-pointer >> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions >> -Wmissing-include-dirs -fdiagnostics-show-option -c >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c >> cc1: warnings being treated as errors >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c: >> In function 'ar9300_eeprom_set_power_per_rate_table': >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:2297: >> warning: unused variable 'ichan' [-Wunused-variable] >> *** [ar9300_eeprom.o] Error code 1 (continuing) >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ >> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -fno-omit-frame-pointer >> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions >> -Wmissing-include-dirs -fdiagnostics-show-option -c >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c >> cc1: warnings being treated as errors >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c: >> In function 'ar9300_populate_paprd_single_table': >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c:1849: >> warning: unused variable 'ichan' [-Wunused-variable] >> *** [ar9300_paprd.o] Error code 1 (continuing) >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ >> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -fno-omit-frame-pointer >> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions >> -Wmissing-include-dirs -fdiagnostics-show-option -c >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c >> cc1: warnings being treated as errors >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c: >> In function 'ar9300_reset': >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2809: >> warning: 'modes_txgaintable_index' is used uninitialized in this function >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2609: >> note: 'modes_txgaintable_index' was declared here >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:3252: >> warning: 'cal_done' may be used uninitialized in this function >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:3252: >> note: 'cal_done' was declared here >> *** [ar9300_reset.o] Error code 1 (continuing) >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ >> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -fno-omit-frame-pointer >> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions >> -Wmissing-include-dirs -fdiagnostics-show-option -c >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c >> cc1: warnings being treated as errors >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c: >> In function 'ar9340_soc_gpio_cfg_output_mux': >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:63: >> warning: cast to pointer from integer of different size >> [-Wint-to-pointer-cast] >> *** [ar9300_gpio.o] Error code 1 (continuing) >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ >> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -fno-omit-frame-pointer >> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions >> -Wmissing-include-dirs -fdiagnostics-show-option -c >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:5: >> error: "AH_DEBUG" is not defined >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:17: >> error: "AH_PRINT_FILTER" is not defined >> *** [ar9300_power.o] Error code 1 (continuing) >> `all' not remade because of errors. >> 1 error > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 00:39:15 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D6FEC8B; Tue, 12 Mar 2013 00:39:15 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-oa0-f44.google.com (mail-oa0-f44.google.com [209.85.219.44]) by mx1.freebsd.org (Postfix) with ESMTP id A19ACCC1; Tue, 12 Mar 2013 00:39:14 +0000 (UTC) Received: by mail-oa0-f44.google.com with SMTP id h1so5242524oag.31 for ; Mon, 11 Mar 2013 17:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=mUTKa4fe/WGWjWOdCmgyQmXy8u2wZqTBzPy2INMJ/es=; b=VYIVB33FRVChE/F0pmMtASI/iCQMbd16P7y99CaZs0F7BYZu2D+cZAzJBdlofefxBC +yor6W7bvLZizP2TTP05H8Dq+wspGpNjxhMtbY39kQHDGoS/+QkrvWbablgPiFVQ/Hkb QbhVFd8mX1c0LznxvmT6KJT/hF++aTS/Dch9fNObZA8GxSnByvVq/GWkWzV0xNImiYt6 wQ9bmr024RNTuZjnUuLzK+Ex038yHSLL13B0ck2NF9qWLd6jeFX8HyUo1K8uhdKR9Mox U/Y63vQt0ux8eQTXCW4W52nzs+NNuThy6/VO9o+vlUXaq0WVGzN1NUxC3PeKuBYf85I7 aB1Q== X-Received: by 10.182.161.39 with SMTP id xp7mr10791469obb.71.1363048748724; Mon, 11 Mar 2013 17:39:08 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id d10sm20025147oeh.7.2013.03.11.17.39.06 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 17:39:07 -0700 (PDT) Message-ID: <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 19:39:00 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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, 12 Mar 2013 00:39:15 -0000 Still no luck, and some errors look like I'm missing more. /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AR_ENT_OTP_MIN_PKT_SIZE_DISABLE is defined in ar9300reg.h and hardcoded. At least you figured out an easy way to genuine check to see if someone tried your code. On 3/11/2013 6:41 PM, Adrian Chadd wrote: > Ooh.. add the debug options to your kernel, sorry! > > options ATH_DEBUG > options AH_DEBUG > options ATH_DIAGAPI > > I'm sorry, I've never tested it outside of a debug build before. > > > > > Adrian > From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 00:41:41 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 00275D66 for ; Tue, 12 Mar 2013 00:41:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-da0-x233.google.com (mail-da0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) by mx1.freebsd.org (Postfix) with ESMTP id CBB8CCE3 for ; Tue, 12 Mar 2013 00:41:40 +0000 (UTC) Received: by mail-da0-f51.google.com with SMTP id z17so1031587dal.24 for ; Mon, 11 Mar 2013 17:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=CVfYRLTuB65kt715rA6sLKu5Shpje0G+1y7ueVuM92A=; b=INlJnisIs2DtML1+9cc9z77v/Ux+yra6lG/uUqYnHuvLiP3pi/QLmtlcH5DmVZB+p3 ybDPdkcHXyHmwy2D/0XUsjTXE1wv9Lap559VDJWRFIQcfInZZc5NgIaZniVvCmspf7ie AU1EdAxViEGTkp/d3uSXDzO5kHs7wGRjkp5DxmkCsXyqc4v1j6n9S0twFY6NQL8T69yb j6UGksHpT6MMJ1JBv9fjev3YIL/Zdt7C2MHwBjv9qZa02SazhrxmP3PyZnw1gqFULF+1 xNCVpjnwaJNKnqAsdKC8uRlhRuPzNidEm8oxNtEaEIcGLIq7d4oeTQ2oR5erge+7nEZP 8ngg== MIME-Version: 1.0 X-Received: by 10.68.135.196 with SMTP id pu4mr25893990pbb.50.1363048899787; Mon, 11 Mar 2013 17:41:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.39.69 with HTTP; Mon, 11 Mar 2013 17:41:39 -0700 (PDT) In-Reply-To: <513E7924.3060302@gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 17:41:39 -0700 X-Google-Sender-Auth: FQF4Za9lsXpkGVzIeaPh7vSgnmQ Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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, 12 Mar 2013 00:41:41 -0000 Is this with clang? adrian On 11 March 2013 17:39, Joshua Isom wrote: > Still no luck, and some errors look like I'm missing more. > > > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: > error: use of logical '&&' with constant operand > [-Werror,-Wconstant-logical-operand] > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > AR_ENT_OTP_MIN_PKT_SIZE_DISABLE is defined in ar9300reg.h and hardcoded. > > At least you figured out an easy way to genuine check to see if someone > tried your code. > > > On 3/11/2013 6:41 PM, Adrian Chadd wrote: >> >> Ooh.. add the debug options to your kernel, sorry! >> >> options ATH_DEBUG >> options AH_DEBUG >> options ATH_DIAGAPI >> >> I'm sorry, I've never tested it outside of a debug build before. >> >> >> >> >> Adrian >> > From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 00:43:26 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 593CEE89 for ; Tue, 12 Mar 2013 00:43:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx1.freebsd.org (Postfix) with ESMTP id 1175ECFD for ; Tue, 12 Mar 2013 00:43:25 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id uo15so4370209pbc.19 for ; Mon, 11 Mar 2013 17:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=i/s/4js8uJGKmeQto/zpb9Hma2DRvNy/lB/0aUD/Nw8=; b=lqJ9zbVaJS+bdLKsZqagxToXo8o1Ghf7JJglwvbZiQ0iVd4X4DEmzGy5uHl7qy7p5I IhGgzyY7fXcTY9XsuBMNWdo65nBdCHS+YJEfICgrAtH6Ic9KWLaq2kMh+Ah9hSssJgqx h2L0rrlBUiw8Lp+akMLV23EcfZiLyG2GIkBlokzo+UsGhrLgpwqcouq0dSj6DjcW0Iv0 4yelfGDDg9zIlTaTxv4SiFSTVQ9tAuKouCoHXz9Dz36+D/NrLvMvgwTslUGBhKHEDOTP DW+2R+r2/t4gu0F/Yc9OWmn2sSK0oAN0jjyPd/BrNmCPaxru8+8hzZzYi+NFhsxMLP5w fLgg== MIME-Version: 1.0 X-Received: by 10.68.211.37 with SMTP id mz5mr26612576pbc.83.1363049004509; Mon, 11 Mar 2013 17:43:24 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.39.69 with HTTP; Mon, 11 Mar 2013 17:43:24 -0700 (PDT) In-Reply-To: References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 17:43:24 -0700 X-Google-Sender-Auth: ghObHtAV28Esc_3QYz4WJKLlUEA Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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, 12 Mar 2013 00:43:26 -0000 .. and yeah, that code is wrong. GCC doesn't complain; just change it to: if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && to: if ((ahp->ah_enterprise_mode & AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && Thanks, this is the first bug that I can file as having come from the FreeBSD community. :) Adrian On 11 March 2013 17:41, Adrian Chadd wrote: > Is this with clang? > > > > > adrian > > > On 11 March 2013 17:39, Joshua Isom wrote: >> Still no luck, and some errors look like I'm missing more. >> >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: >> error: use of logical '&&' with constant operand >> [-Werror,-Wconstant-logical-operand] >> if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && >> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> AR_ENT_OTP_MIN_PKT_SIZE_DISABLE is defined in ar9300reg.h and hardcoded. >> >> At least you figured out an easy way to genuine check to see if someone >> tried your code. >> >> >> On 3/11/2013 6:41 PM, Adrian Chadd wrote: >>> >>> Ooh.. add the debug options to your kernel, sorry! >>> >>> options ATH_DEBUG >>> options AH_DEBUG >>> options ATH_DIAGAPI >>> >>> I'm sorry, I've never tested it outside of a debug build before. >>> >>> >>> >>> >>> Adrian >>> >> From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 00:48:02 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7E652F58 for ; Tue, 12 Mar 2013 00:48:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx1.freebsd.org (Postfix) with ESMTP id 43369D26 for ; Tue, 12 Mar 2013 00:48:02 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id rp2so4357494pbb.20 for ; Mon, 11 Mar 2013 17:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=eqoBCU9cP7Pf5faslXG7uWpLsFbRAq8+xzxf/dRuV5Y=; b=Y7bTjxGFm3ZXTo2xXoHmaFlcYWtvZwc3MBcEgvHxhwYPVnuKnrDhSpbkD9SEayNAE1 ZHXDQJK3/a8TJADfY6fXlM4S8Xomx6VkItSLK9kKtr7vp1phpbQZuoq0uWU40P7bYEcd Qio47ja8pRZnW6ywzMMbRBm03k8bUFseIalf1AkoBapKVMs2iX3ABRKAo8NdnNeEZagh B61rbP59jUHZ1SrVteTBixfAtCwde3JdXFl1nHyTugWGvL3EOab4PRlqHqoNE+PrtZIR EA+60ICCNnB2V5jb6Sx+eLmX6u+4c+ypjyS11s+MLSbX6AZOZPvUmdN/o20ed9kRv0ZB eTkg== MIME-Version: 1.0 X-Received: by 10.68.211.37 with SMTP id mz5mr26638696pbc.83.1363049276171; Mon, 11 Mar 2013 17:47:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.39.69 with HTTP; Mon, 11 Mar 2013 17:47:56 -0700 (PDT) In-Reply-To: References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 17:47:56 -0700 X-Google-Sender-Auth: i6agTYb1yr1E3HMKcn69pIRrcSQ Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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, 12 Mar 2013 00:48:02 -0000 On 11 March 2013 17:43, Adrian Chadd wrote: > .. and yeah, that code is wrong. GCC doesn't complain; just change it to: > > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > > to: > > if ((ahp->ah_enterprise_mode & AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > > Thanks, this is the first bug that I can file as having come from the > FreeBSD community. :) Please file an issue regarding this problem: https://github.com/qca/qcamain_open_hal_public/issues and feel free to file another issue (this doesn't compile if ATH_DEBUG / AH_DEBUG isn't specified.) I can submit fixes for both of those in the upstream (internal) HAL. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 01:25:46 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9842E3F9; Tue, 12 Mar 2013 01:25:46 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 4FB79E51; Tue, 12 Mar 2013 01:25:46 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id 16so4009051obc.33 for ; Mon, 11 Mar 2013 18:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=2db0O/uDr6Tf3ssBck5/Ovmv5XMA3yW/sCM8olSht0Y=; b=01sR06vs1FL2wCg8NwiXaf0jZzx7Ut9b/rGf2zDp5KVwQf9K2Gf0h2KhY/SvL5efUu dU6IM4hBwb//Iq/oiTxWzCwWNIy5z+bIT5SSzCjdD0Yoqp2a3wORLA/w1vwWgSdPybnz 7v3SCmQsV05B2sm1D6hfk4HN70JKWEg0UjkFpsBaMA36C+NDhwcdRjGCADlWLWIPcn2i lYR/+ZYTNYzMQOeDxaQl4M2ZOdS/+/FkzSNiFEDeQx4u3GLv4bwrOQyyWIraTAltgsWP MPINwwj2JOiEXLXQRx2x3Fi3veQdFQCqGODqcofChKFFvGPeZLnDuNFigeuS1yjWpS2w 5whg== X-Received: by 10.60.18.136 with SMTP id w8mr10909302oed.84.1363051545630; Mon, 11 Mar 2013 18:25:45 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id j10sm19576468obg.4.2013.03.11.18.25.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 18:25:45 -0700 (PDT) Message-ID: <513E8412.8060405@gmail.com> Date: Mon, 11 Mar 2013 20:25:38 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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, 12 Mar 2013 01:25:46 -0000 I had tried the buildworld with -DWITHOUT_CLANG at one point, partially to speed up buildworld since building clang is slow without large amounts of memory. Most of the errors were the same, so my last buildworld was just stock. On 3/11/2013 7:41 PM, Adrian Chadd wrote: > Is this with clang? > > > > > adrian > > > On 11 March 2013 17:39, Joshua Isom wrote: >> Still no luck, and some errors look like I'm missing more. >> >> >> /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: >> error: use of logical '&&' with constant operand >> [-Werror,-Wconstant-logical-operand] >> if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && >> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> AR_ENT_OTP_MIN_PKT_SIZE_DISABLE is defined in ar9300reg.h and hardcoded. >> >> At least you figured out an easy way to genuine check to see if someone >> tried your code. >> >> >> On 3/11/2013 6:41 PM, Adrian Chadd wrote: >>> >>> Ooh.. add the debug options to your kernel, sorry! >>> >>> options ATH_DEBUG >>> options AH_DEBUG >>> options ATH_DIAGAPI >>> >>> I'm sorry, I've never tested it outside of a debug build before. >>> >>> >>> >>> >>> Adrian >>> >> From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 02:50:08 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AA6A917E for ; Tue, 12 Mar 2013 02:50:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by mx1.freebsd.org (Postfix) with ESMTP id 4470A186 for ; Tue, 12 Mar 2013 02:50:07 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id dr12so5674888wgb.35 for ; Mon, 11 Mar 2013 19:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=c6AE11328PreF0VrfazGZMzeor4DTyy3o74X1Rscc0Y=; b=oKZoNp28UiLEnBjf1HZKnbOY0oVKhOs5dThTyBzNV0qZ9iU3yFbI/zIes3nzgm4anE JHnWQRi2KEsXwDzzioFxN/5uEFllTL2jQjhmX2XQU7nUeHr+j/899xUU0pOovAsTdKX0 kHnnYY8iBAMspeqesGHn0+ur97EhgSsdieGG/52x9BglKvSHiTZGAQeWEb+SE1ZAdYSy A6RYUceJwQdzNVEjljQOvUHeMkFRiWBRSqqN5gl4pjQvPhw8aytuwDOiCgdd8aBAEp5D pZR2eO2JXA1Nh3Om5l1JiG3OmuRCBKyl9INZdhZRK4abPTeFZDmxX/m24tuA2J78XVB9 Yp+g== MIME-Version: 1.0 X-Received: by 10.194.133.98 with SMTP id pb2mr23311150wjb.20.1363056607047; Mon, 11 Mar 2013 19:50:07 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Mon, 11 Mar 2013 19:50:06 -0700 (PDT) In-Reply-To: References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 19:50:06 -0700 X-Google-Sender-Auth: 58gMHcagn4nJqORFXHw_JtW746E Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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, 12 Mar 2013 02:50:08 -0000 On 11 March 2013 17:43, Adrian Chadd wrote: > .. and yeah, that code is wrong. GCC doesn't complain; just change it to: > > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > > to: > > if ((ahp->ah_enterprise_mode & AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > > Thanks, this is the first bug that I can file as having come from the > FreeBSD community. :) I'll tinker with this a bit more, but cleaning things up to keep clang happy will take quite a bit of time. I'm about to push an update which changes the directory that I'm hiding this in, in (eventual) preparation for committing this to -HEAD. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 03:25:06 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2A379F2 for ; Tue, 12 Mar 2013 03:25:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD9237C for ; Tue, 12 Mar 2013 03:25:06 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id o45so4484396wer.9 for ; Mon, 11 Mar 2013 20:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Iy8CRAWKOavwf0fgpNRByAVgMABo9XiQ2KzuKJXClVg=; b=G8OZFbVPbaa5aOG7zJVAgMl1aQvDn9UAD09n2Cp+ikWY010FNfoT2p4qXMcPPEajdD khwhBUPkFRvEe6Lf0HMord0hIKejK2pRlBkohkxobDSwR0b6OD57PCwZRQNQMXFYowjN mY+Cdc1tcL3znDXeNHgvwh+qg8bpSDSPvvM84UWHoyA+zs7NTd/7Knm2NOn/HtyYq/uJ c5h9zu/3ssaNb+xPfA27Pzda73zVxm6baT/wrlWqCxHhnOxvq+AR6S6lYtQnhwXvur8s cVgnamKCW2kFKI0JKuzffm9bL6J/zPVfDrWWKyh217y99vR0AWYQEPMgUhXDzoOt05xW FpZw== MIME-Version: 1.0 X-Received: by 10.180.94.135 with SMTP id dc7mr16658248wib.11.1363058705363; Mon, 11 Mar 2013 20:25:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Mon, 11 Mar 2013 20:25:05 -0700 (PDT) In-Reply-To: References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 20:25:05 -0700 X-Google-Sender-Auth: 3_3xwLtI0J9dgOyU_KR5RzLhvgQ Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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, 12 Mar 2013 03:25:06 -0000 Ok, I see that clang is doing some odd expansion there. I've poked the clang nerds about it, I'll see what they say. Anyway - I've shifted its location - now please create a new directory - sys/contrib/dev/ath/ath_hal/ar9300/, and put your symlinks in there. Then uncomment in ath/Makefile like this: Index: ath/Makefile =================================================================== --- ath/Makefile (revision 248181) +++ ath/Makefile (working copy) @@ -124,13 +124,13 @@ SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c # + AR9300 HAL -# .PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c -#SRCS+= ar9300_power.c ar9300_timer.c +.PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c +SRCS+= ar9300_power.c ar9300_timer.c # NB: rate control is bound to the driver by symbol names so only pick one .if ${ATH_RATE} == "sample" @@ -149,7 +149,7 @@ SRCS+= dfs_null.c CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal -# CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ +CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ .if !defined(KERNBUILDDIR) opt_ah.h: From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 21:12:52 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 9E9B1D86; Tue, 12 Mar 2013 21:12:52 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 605F3886; Tue, 12 Mar 2013 21:12:52 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id k10so448397iea.19 for ; Tue, 12 Mar 2013 14:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=AKd8M2sM6Su8QrMPqTVwYzshbHHWZHWosyfvonde9gg=; b=Y+0DHMSmhKWNmBIAFrAcPp2OBuUwhL8fpbrT1ZvQcZPiBonRmTgGDjX4TBsCRya6X1 RpooEjL8KyOYMWfsO+F98w/u9vQd+VlbOC3ksASRkfAy/I0XHQx4KvTlY4PAE5GWOGnk WgkzFMIOncC6YdNs2XZcN9A/DuAaHDiHbAPsyWsNZRVTIh7JHbITn4UVEuXh1vfqn8aa 6X4nbowyGu8HjNf1tt8/zAi9+dSohyJLnW898ynM1uc2bADtaUQhyEjRYZ25h24m1TjL ZyDusG2QO0eWeoHSX4Nq2n3Hy+LDkrYF9qMSRbrqPL26JgVecF1ICMz+BOJHGo0VvFE0 d2Xg== X-Received: by 10.50.12.201 with SMTP id a9mr13477789igc.10.1363122771838; Tue, 12 Mar 2013 14:12:51 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id s8sm23629964igs.0.2013.03.12.14.12.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 14:12:51 -0700 (PDT) Message-ID: <513F9A4B.5030704@gmail.com> Date: Tue, 12 Mar 2013 16:12:43 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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, 12 Mar 2013 21:12:52 -0000 I had to remove the /sys/ from the PATH and CFLAGS to point to the right directory, it's still failing with warnings. I tried gcc and clang. I'll try to see how much I can patch myself without knowing the code at all. On 3/11/2013 10:25 PM, Adrian Chadd wrote: > Ok, I see that clang is doing some odd expansion there. I've poked the > clang nerds about it, I'll see what they say. > > Anyway - I've shifted its location - now please create a new directory > - sys/contrib/dev/ath/ath_hal/ar9300/, and put your symlinks in there. > > Then uncomment in ath/Makefile like this: > > Index: ath/Makefile > =================================================================== > --- ath/Makefile (revision 248181) > +++ ath/Makefile (working copy) > @@ -124,13 +124,13 @@ > SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c > > # + AR9300 HAL > -# .PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 > -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > -#SRCS+= ar9300_power.c ar9300_timer.c > +.PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 > +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > +SRCS+= ar9300_power.c ar9300_timer.c > > # NB: rate control is bound to the driver by symbol names so only pick one > .if ${ATH_RATE} == "sample" > @@ -149,7 +149,7 @@ > SRCS+= dfs_null.c > > CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal > -# CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ > +CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ > > .if !defined(KERNBUILDDIR) > opt_ah.h: > From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 21:14:21 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 58B80DB6 for ; Tue, 12 Mar 2013 21:14:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by mx1.freebsd.org (Postfix) with ESMTP id E5156893 for ; Tue, 12 Mar 2013 21:14:20 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id 16so311789wgi.27 for ; Tue, 12 Mar 2013 14:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=mgeRC2pvzb48JSYOn9l26SJPA1pWcM+Vo5FxwA/JHGw=; b=ZoOojT9UFksh66nrgQhMoAPtumrOnw85Bp8OB5JJMP7VWgx14bPCGZ0NmUiXP1GpKw STWnvdp0s3KPPoU+8QCKFQyc1XSGtG19XAv7t3AKAdSaKbWWDlV4JS6LYATShurAtJxR Y8JT3u5g2ENGZTLPVf0ZYSP88V7bIpgE2IZWlJ9UPQhI/AjUQqQltUUnrtoKlscTshff DWpjr7q7H3M+asl/CfV1WLeJQqjTW0r0SjXg0RGKlPL/+xaYIoyo21PdJ4kQF5L0Ijfr PAKyr97/CBS3ZwRl0W/tVUGzGcNJ9kMOxsu9ZT8Xb84vze38aWWQrasMXzmm0MAgu/OM qwPw== MIME-Version: 1.0 X-Received: by 10.194.133.98 with SMTP id pb2mr29773990wjb.20.1363122854114; Tue, 12 Mar 2013 14:14:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Tue, 12 Mar 2013 14:14:13 -0700 (PDT) In-Reply-To: <513F9A4B.5030704@gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> Date: Tue, 12 Mar 2013 14:14:13 -0700 X-Google-Sender-Auth: 9DJ-f4JYq0uUd5FahE15Y3l-vBg Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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, 12 Mar 2013 21:14:21 -0000 On 12 March 2013 14:12, Joshua Isom wrote: > I had to remove the /sys/ from the PATH and CFLAGS to point to the right > directory, it's still failing with warnings. I tried gcc and clang. I'll > try to see how much I can patch myself without knowing the code at all. Hi, Where's it failing with warnings with gcc? I do gcc builds all the time and I get no warnings. But my primary station/laptop testing atm is on 9-STABLE (my access points run -HEAD atm.) Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 21:31:22 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 46D88373; Tue, 12 Mar 2013 21:31:22 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ia0-x22c.google.com (mail-ia0-x22c.google.com [IPv6:2607:f8b0:4001:c02::22c]) by mx1.freebsd.org (Postfix) with ESMTP id ED97F95D; Tue, 12 Mar 2013 21:31:21 +0000 (UTC) Received: by mail-ia0-f172.google.com with SMTP id l29so313375iag.31 for ; Tue, 12 Mar 2013 14:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=0r5CVMDFjFIRuG9j1TcwCg8ENpUC8iMn0CsxHshMGKk=; b=Iek92DILQi5otGHCOIJHqgrF8XLZ5piRrc6x20/gBapNhaC8tD9PbfXqAFrv7b42no B6gawbaEd0FGF44jvnb0wflQ3cvVoh92dRBf/WFIwI8v6WUR7sMaVeUwCmkbBRNl0sM7 Oc6KWBItCGilbgIG0pgMv6PWkmbGwnSukmNw5NY0/410xGJol3M7ABuS4r55rW7ZtBhA r0k5iZQnzXeeXpX4Uw7RCzSAnw/EkVyPOSf4S/V8v8ZsaQnket/YDDF3OwiY83KyKTUl nnHYgIIeCcAkXZ2Omx+VBBekyrBTptGHIw6HzAS9nbh7D7zktyR8WxQN2rfsM8wtjWF8 Oi7A== X-Received: by 10.50.1.198 with SMTP id 6mr13195514igo.0.1363123881428; Tue, 12 Mar 2013 14:31:21 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id uy13sm23711221igb.7.2013.03.12.14.31.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 14:31:20 -0700 (PDT) Message-ID: <513F9EA1.2060101@gmail.com> Date: Tue, 12 Mar 2013 16:31:13 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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, 12 Mar 2013 21:31:22 -0000 On 3/12/2013 4:14 PM, Adrian Chadd wrote: > On 12 March 2013 14:12, Joshua Isom wrote: >> I had to remove the /sys/ from the PATH and CFLAGS to point to the right >> directory, it's still failing with warnings. I tried gcc and clang. I'll >> try to see how much I can patch myself without knowing the code at all. > > Hi, > > Where's it failing with warnings with gcc? > > I do gcc builds all the time and I get no warnings. But my primary > station/laptop testing atm is on 9-STABLE (my access points run -HEAD > atm.) > > Thanks, > > > Adrian > This I think is because I'm building on amd64, so it should be 64 bit type for portability. > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c: In function 'ar9340_soc_gpio_cfg_output_mux': > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] This is because of a debug def not being set I think, and the preprocessor optimizes away the actual use. > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c: In function 'ar9300_set_channel': > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c:83: warning: unused variable 'ichan' [-Wunused-variable] The first warning looks like it's because of an "#if 0" that blocks it from being set. The second looks genuine, it's only guaranteed to be set inside of one conditional. > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c: In function 'ar9300_reset': > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:2809: warning: 'modes_txgaintable_index' is used uninitialized in this function > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:2609: note: 'modes_txgaintable_index' was declared here > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:3252: warning: 'cal_done' may be used uninitialized in this function > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:3252: note: 'cal_done' was declared here From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 22:07:02 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 E9BFA3B8; Tue, 12 Mar 2013 22:07:02 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com [209.85.219.53]) by mx1.freebsd.org (Postfix) with ESMTP id A175AAF1; Tue, 12 Mar 2013 22:07:02 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id m1so406054oag.12 for ; Tue, 12 Mar 2013 15:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=iCa8f5W1l+68Dw+lQKL/c4jyEPac++BKkEvvb2/qzlE=; b=U8P48fZKfM26gR5WpI7BpPKyjEEoXa+uKHTBewLS00dk0xtvo/8oUIQRW08LwiUK+R b3KHbt6TidwNnOmJJ2BD3w9mbjTmfIjWuZd7UWgtJ0asRrBdLBa8w/43uxUjZxiumGcR RRKrlM9lVAQAz0MX7O8fS8DCVPLM4ovyLdIlMMWHrzsOtD38+X+0b/0cWU+23PBm74uw nHl/85fcQgnr3Q3LsMVbJFq9tAs5icpbcTPQY9Ycy+ZgplsG0/hNla6PPM4mU4FLmmli SUweNcZKVnW3/yUgbV28Fj42bMGFatQkcZJDFDD+Vz9kmY7v78EBB4bUefVAycmTBz+1 H0cA== X-Received: by 10.182.221.4 with SMTP id qa4mr13834521obc.100.1363126021951; Tue, 12 Mar 2013 15:07:01 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id d10sm23875745oeh.7.2013.03.12.15.06.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 15:07:01 -0700 (PDT) Message-ID: <513FA6FC.5040809@gmail.com> Date: Tue, 12 Mar 2013 17:06:52 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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, 12 Mar 2013 22:07:03 -0000 On 3/12/2013 4:14 PM, Adrian Chadd wrote: > On 12 March 2013 14:12, Joshua Isom wrote: >> I had to remove the /sys/ from the PATH and CFLAGS to point to the right >> directory, it's still failing with warnings. I tried gcc and clang. I'll >> try to see how much I can patch myself without knowing the code at all. > > Hi, > > Where's it failing with warnings with gcc? > > I do gcc builds all the time and I get no warnings. But my primary > station/laptop testing atm is on 9-STABLE (my access points run -HEAD > atm.) > > Thanks, > > > Adrian > Here's the build log from clang. The most obvious different things are ar9300_gpio.c's comparisons with a constant. > ===> ath (all) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I/root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/root/ATH/head/sys/ATH/opt_global.h -I. -I@ -I@/contrib/altq -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/ATH -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath _hal/ar9300/ar9300_radio.c > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I/root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/root/ATH/head/sys/ATH/opt_global.h -I. -I@ -I@/contrib/altq -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/ATH -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath _hal/ar9300/ar9300_reset.c > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c:83:27: error: unused variable 'ichan' [-Werror,-Wunused-variable] > HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); > ^ > 1 error generated. > *** [ar9300_radio.o] Error code 1 > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I/root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/root/ATH/head/sys/ATH/opt_global.h -I. -I@ -I@/contrib/altq -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/ATH -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath _hal/ar9300/ar9300_gpio.c > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:2809:52: error: variable 'modes_txgaintable_index' is uninitialized when used here [-Werror,-Wuninitialized] > REG_WRITE_ARRAY(&ahp->ah_ini_modes_txgain, modes_txgaintable_index, > ^~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300.h:904:85: note: expanded from macro 'REG_WRITE_ARRAY' > OS_REG_WRITE(ah, INI_RA((iniarray), (r), 0), INI_RA((iniarray), r, (column)));\ > ^ > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300.h:323:99: note: expanded from macro 'INI_RA' > #define INI_RA(iniarray, row, column) (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)]) > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ah_osdep.h:119:68: note: expanded from macro 'OS_REG_WRITE' > #define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write(_ah, _reg, _val) > ^ > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:2609:47: note: initialize the variable 'modes_txgaintable_index' to silence this warning > u_int modes_index, modes_txgaintable_index, freq_index; > ^ > = 0 > 1 error generated. > *** [ar9300_reset.o] Error code 1 > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:63:15: error: cast to 'volatile u_int32_t *' (aka 'volatile unsigned int *') from smaller integer type 'unsigned int' [-Werror,-Wint-to-pointer-cast] > address = (volatile u_int32_t *)(AR9340_SOC_GPIO_FUN0 + (out_func*4)); > ^ > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:159:25: warning: comparison of constant 20 with expression of type 'HAL_GPIO_MUX_TYPE' is always true [-Wtautological-constant-out-of-range-compare] > if (hal_signal_type < ARRAY_LENGTH(mux_signal_conversion_table)) > ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:271:23: warning: comparison of constant 20 with expression of type 'HAL_GPIO_MUX_TYPE' is always true [-Wtautological-constant-out-of-range-compare] > if (halSignalType < ARRAY_LENGTH(mux_signal_conversion_table)) > ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 2 warnings and 1 error generated. > *** [ar9300_gpio.o] Error code 1 > 3 errors > `all' not remade because of errors. > *** [all] Error code 2 > 1 error > *** [modules-all] Error code 2 > 1 error > `all' not remade because of errors. > *** [buildkernel] Error code 2 > 1 error > *** [buildkernel] Error code 2 > 1 error From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 00:30:21 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 248E09DE for ; Thu, 14 Mar 2013 00:30:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id A9B06711 for ; Thu, 14 Mar 2013 00:30:20 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id u54so1632968wey.16 for ; Wed, 13 Mar 2013 17:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=HliD0mKgHWNOw8oyjFUwG14qDHU5y+3HvS/g5MD6Vic=; b=PJgVOrD/jw4A1mTf8BbQEUB1yMvMZw1obcm52XrGWepOUmkFyqDXV+1Sc6ZlU1OsZ4 H5g207XvzNCho0Lcg8KUXojP7YRvWmVFDI3pDsSLzSGIsqA5w8Oz1FrIijSiJNGapvBd uNeDSbgetjDhp6oIMz9K7VJqmbJ+EnTNwFSPBOUW6NkZnHSVYxd/hTP+Id2Tnyn877zM za5O4NGrYWLSMsKihg9WlD9iyJ2NgUYbMGkWNvBY7MUHheuAm8NaoeVt4y7Ie9uEvZeL z1VFfmF9PXeU6bQH4GlnnFmmW3aQENK1+OxTRSPlNpMD0pUxgTBf/7ZZArbplH4DLQGf TeNA== MIME-Version: 1.0 X-Received: by 10.194.20.40 with SMTP id k8mr564138wje.16.1363221019879; Wed, 13 Mar 2013 17:30:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Wed, 13 Mar 2013 17:30:19 -0700 (PDT) In-Reply-To: <513FA6FC.5040809@gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> <513FA6FC.5040809@gmail.com> Date: Wed, 13 Mar 2013 17:30:19 -0700 X-Google-Sender-Auth: qV4PyrIkY7tU-Jng-CVP2Af6SCI Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 14 Mar 2013 00:30:21 -0000 Hi, I've fixed some warnings - please update the git repo youre using. I've also added some clang workarounds in the MAkefile (see the bottom of the file for the two lines to update) - so please svn update in sys/modules/ath/ Hopefully that works enough for you! Please let me know what other build errors you're seeing. Thanks, Adrian On 12 March 2013 15:06, Joshua Isom wrote: > On 3/12/2013 4:14 PM, Adrian Chadd wrote: >> >> On 12 March 2013 14:12, Joshua Isom wrote: >>> >>> I had to remove the /sys/ from the PATH and CFLAGS to point to the right >>> directory, it's still failing with warnings. I tried gcc and clang. I'll >>> try to see how much I can patch myself without knowing the code at all. >> >> >> Hi, >> >> Where's it failing with warnings with gcc? >> >> I do gcc builds all the time and I get no warnings. But my primary >> station/laptop testing atm is on 9-STABLE (my access points run -HEAD >> atm.) >> >> Thanks, >> >> >> Adrian >> > > Here's the build log from clang. The most obvious different things are > ar9300_gpio.c's comparisons with a constant. > >> ===> ath (all) >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. >> -I/root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ >> -DHAVE_KERNEL_OPTION_HEADERS -include >> /usr/obj/root/ATH/head/sys/ATH/opt_global.h -I. -I@ -I@/contrib/altq >> -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/ATH >> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector >> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef >> -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality -c >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ > > ath/ath > _hal/ar9300/ar9300_radio.c >> >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. >> -I/root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ >> -DHAVE_KERNEL_OPTION_HEADERS -include >> /usr/obj/root/ATH/head/sys/ATH/opt_global.h -I. -I@ -I@/contrib/altq >> -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/ATH >> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector >> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef >> -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality -c >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ > > ath/ath > _hal/ar9300/ar9300_reset.c >> >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c:83:27: >> error: unused variable 'ichan' [-Werror,-Wunused-variable] >> >> HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); >> ^ >> 1 error generated. >> *** [ar9300_radio.o] Error code 1 >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath >> -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. >> -I/root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ >> -DHAVE_KERNEL_OPTION_HEADERS -include >> /usr/obj/root/ATH/head/sys/ATH/opt_global.h -I. -I@ -I@/contrib/altq >> -fno-common -g -fno-omit-frame-pointer -I/usr/obj/root/ATH/head/sys/ATH >> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector >> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef >> -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality -c >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ > > ath/ath > _hal/ar9300/ar9300_gpio.c >> >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:2809:52: >> error: variable 'modes_txgaintable_index' is uninitialized when used here >> [-Werror,-Wuninitialized] >> REG_WRITE_ARRAY(&ahp->ah_ini_modes_txgain, >> modes_txgaintable_index, >> ^~~~~~~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300.h:904:85: >> note: expanded from macro 'REG_WRITE_ARRAY' >> >> OS_REG_WRITE(ah, INI_RA((iniarray), (r), 0), >> INI_RA((iniarray), r, (column)));\ >> >> ^ >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300.h:323:99: >> note: expanded from macro 'INI_RA' >> >> #define INI_RA(iniarray, row, column) (((iniarray)->ia_array)[(row) * >> ((iniarray)->ia_columns) + (column)]) >> >> ^ >> /root/ATH/head/sys/modules/ath/../../dev/ath/ah_osdep.h:119:68: note: >> expanded from macro 'OS_REG_WRITE' >> #define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write(_ah, _reg, _val) >> ^ >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:2609:47: >> note: initialize the variable 'modes_txgaintable_index' to silence this >> warning >> >> u_int modes_index, modes_txgaintable_index, freq_index; >> ^ >> = 0 >> 1 error generated. >> *** [ar9300_reset.o] Error code 1 >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:63:15: >> error: cast to 'volatile u_int32_t *' (aka 'volatile unsigned int *') from >> smaller integer type 'unsigned int' [-Werror,-Wint-to-pointer-cast] >> >> address = (volatile u_int32_t *)(AR9340_SOC_GPIO_FUN0 + (out_func*4)); >> ^ >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:159:25: >> warning: comparison of constant 20 with expression of type >> 'HAL_GPIO_MUX_TYPE' is always true >> [-Wtautological-constant-out-of-range-compare] >> >> if (hal_signal_type < ARRAY_LENGTH(mux_signal_conversion_table)) >> ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> /root/ATH/head/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:271:23: >> warning: comparison of constant 20 with expression of type >> 'HAL_GPIO_MUX_TYPE' is always true >> [-Wtautological-constant-out-of-range-compare] >> >> if (halSignalType < ARRAY_LENGTH(mux_signal_conversion_table)) >> ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 2 warnings and 1 error generated. >> *** [ar9300_gpio.o] Error code 1 >> 3 errors >> >> `all' not remade because of errors. >> *** [all] Error code 2 >> 1 error >> *** [modules-all] Error code 2 >> 1 error >> `all' not remade because of errors. >> *** [buildkernel] Error code 2 >> 1 error >> *** [buildkernel] Error code 2 >> 1 error > > From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 00:31:41 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1751EA30 for ; Thu, 14 Mar 2013 00:31:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by mx1.freebsd.org (Postfix) with ESMTP id 9A26B734 for ; Thu, 14 Mar 2013 00:31:40 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id ds1so559841wgb.28 for ; Wed, 13 Mar 2013 17:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=xMT+73WEg+pF6bl1gBMDIqfp2Xb5xjFoceKdrGG8EZ8=; b=K3/vCOBnHsi5gjxeV9/CyJLrvwhLdJ53P2jAYVRvJbBtm65clKFcnava8PM1wm6DPR AxuJZWrk0jwskWvVa4WnJtltXGawbbWMvJTJ8357oZswwqHXTkYvag4ix2eu7G14GmZs ifjJ0NAYT0B3Hno7CWu95/w25csh+6OzljDV3KPTOorXeJH56t9aQZ193ZSCPu3Fomen aVVZUHFdhDs0po0Q+uXqciAyrKA0XwgKogTFKnQb/lucPAUmm6MSn/f/WH2GNcZDLVG8 v+vvLksTqaL5ARYGTcLlvtCSR6bp5F8OfDZQNykERftpvT/Qa7g975w8M+xxDMbJ3Roe TMxw== MIME-Version: 1.0 X-Received: by 10.194.87.229 with SMTP id bb5mr504020wjb.32.1363221099044; Wed, 13 Mar 2013 17:31:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Wed, 13 Mar 2013 17:31:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 13 Mar 2013 17:31:38 -0700 X-Google-Sender-Auth: -KagsNA0Qsdew5iH5aSP8jWKxVk Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 14 Mar 2013 00:31:41 -0000 On 9 March 2013 10:54, Adrian Chadd wrote: > What's tested: > > * legacy, 1x1 and 2x2 HT20/HT40, STA mode > * AR9380 (1x1, 2x2 - 2/5ghz) > * AR9485 (1x1, 2ghz only) I can now add two more NICs to this list: * AR9390 (HB116) * AR9462 (WB225) Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 01:48:21 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 C70E31A5; Thu, 14 Mar 2013 01:48:21 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [IPv6:2607:f8b0:400c:c02::235]) by mx1.freebsd.org (Postfix) with ESMTP id 46C21D5; Thu, 14 Mar 2013 01:48:21 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id fj18so892748vbb.40 for ; Wed, 13 Mar 2013 18:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=WMUjaD6id03dkihk5WECbP/4m9qrJQq252biJ0uc/XY=; b=pPRCMD4rkornPLWxG0ZaiRG5d5j7j0lhP7Qg+kasm8NdgjXwCMOXKx3d6m7HMSx5J9 NkHFQD1jzvPuejlVq4Vg19V7xJA38P04Ay4HYy1BMvc5HRTTDT8rgX88oumESB+iZoHb PVZFilclhDLLi2BOdyKqrhCW5s5z1yCG4wd0rrS69Uq7XozKFp4sAtME9p1mLH9tPuN4 Zy4KEtTOp5MH/VB3P9PHax8/cHQuOLRjOkGdPjvIHUhvn5MxFeeHVog0X4jWDiyfQIvG tvEB1OUGjVfvYt7fJc9UzU5GMoRgYTQaVzew7gyOONh5No+qsCDI9UeIXy0wojhUVe4g OOqA== X-Received: by 10.52.24.205 with SMTP id w13mr222809vdf.61.1363225303221; Wed, 13 Mar 2013 18:41:43 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id d13sm319336vdj.8.2013.03.13.18.41.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Mar 2013 18:41:42 -0700 (PDT) Message-ID: <51412AD4.8040304@gmail.com> Date: Wed, 13 Mar 2013 20:41:40 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> <513FA6FC.5040809@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 14 Mar 2013 01:48:21 -0000 I added a cast to u_int64_t first on line 63 of ar9300_gpio.c to get it to compile. I imagine (void *) would be prefered, but I don't know what's actually correct. Unfortunately, I get a kernel panic on boot with scsi_cd, so I'll have to wait until that's dealt with before trying the ath driver. On 3/13/2013 7:30 PM, Adrian Chadd wrote: > Hi, > > I've fixed some warnings - please update the git repo youre using. > > I've also added some clang workarounds in the MAkefile (see the bottom > of the file for the two lines to update) - so please svn update in > sys/modules/ath/ > > Hopefully that works enough for you! Please let me know what other > build errors you're seeing. > > Thanks, > > > Adrian > From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 02:16:24 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D4522CC7 for ; Thu, 14 Mar 2013 02:16:24 +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 69FBC3E4 for ; Thu, 14 Mar 2013 02:16:24 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id z53so1738541wey.1 for ; Wed, 13 Mar 2013 19:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=pSfgopeLfpbaJMhajTaYuptMIZL/cG0EgF7DwXFyYNs=; b=fF78uEr1MNJaRa0TiNkTVwwBFkvhhvvxe+i7wXulDP7JIuRFkjNkBF7PA/KOHm0j46 2xU4kTqpqSZ5da4W8Op3aCZDLLVVkB74g0got8ysl5xZjz4xgiQC9UdeO9SxrOIvQxvl /rnNDKXaDBwfbxcBNuVAdQDmFxeobsWYwPyaa3sA9SIUAPdW2Fc3318uK0kze5Jtxfg8 1FRnrdEee/TcXagHMYVRBZJMJRQvDzqNoeo375/AC0kkNsSvt+IN78Ecm5aGtgnNWBB7 bMr/A11AF7kUni32Y8NO2YifQQkd+mSFMZ7b6r8fKccPt+B3c1h1DSq/8n/EUdTkj2z3 ju/g== MIME-Version: 1.0 X-Received: by 10.180.94.135 with SMTP id dc7mr30787609wib.11.1363227383590; Wed, 13 Mar 2013 19:16:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Wed, 13 Mar 2013 19:16:23 -0700 (PDT) In-Reply-To: <51412AD4.8040304@gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> <513FA6FC.5040809@gmail.com> <51412AD4.8040304@gmail.com> Date: Wed, 13 Mar 2013 19:16:23 -0700 X-Google-Sender-Auth: tbZP5CoifzcIvyzlO5Mt7HxyedY Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 14 Mar 2013 02:16:24 -0000 Can you please post the patch and the specific compile issue? adrian On 13 March 2013 18:41, Joshua Isom wrote: > I added a cast to u_int64_t first on line 63 of ar9300_gpio.c to get it to > compile. I imagine (void *) would be prefered, but I don't know what's > actually correct. Unfortunately, I get a kernel panic on boot with scsi_cd, > so I'll have to wait until that's dealt with before trying the ath driver. > > > On 3/13/2013 7:30 PM, Adrian Chadd wrote: >> >> Hi, >> >> I've fixed some warnings - please update the git repo youre using. >> >> I've also added some clang workarounds in the MAkefile (see the bottom >> of the file for the two lines to update) - so please svn update in >> sys/modules/ath/ >> >> Hopefully that works enough for you! Please let me know what other >> build errors you're seeing. >> >> Thanks, >> >> >> Adrian >> > From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 02:19:34 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 0E4F4EEA for ; Thu, 14 Mar 2013 02:19:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 9B849660 for ; Thu, 14 Mar 2013 02:19:33 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id s43so1683934wey.35 for ; Wed, 13 Mar 2013 19:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=f7KoNKAJu4tS2uTxuv+dCr0N0e2SAoUwWLb03NVafK0=; b=Z3NtJedDhiwiTQpz2Lr+5AxuP/Xw+LJ/9ingbuZvJncgIWklYBsuqHwWWWg6/EoMp/ 8gftQ0Iyc7t8X5IiQb16PgMhji9Y4X/1SCyajnehuPxFKavsP2oBsmJcNdM5soHr192O Oe6w6d4aTzo+IWxOruJ/aaijqDIp1q37EZ1cVTWQkEjNj8TyjdbSWLRpPzqy+guzNL5U GGuMItl22/zAqdbsFr9qi49sBcollALwNEEr3606WjUJx6yCV32YparP69RVU3QdS7qI Pe7V93QY2AmyN6ddjV0Ju0xv+SM9HUaUERlsnKeuz2T/N1EOlWuwenz2ZS96kH1ev5kP tqkA== MIME-Version: 1.0 X-Received: by 10.194.87.229 with SMTP id bb5mr858584wjb.32.1363227572794; Wed, 13 Mar 2013 19:19:32 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Wed, 13 Mar 2013 19:19:32 -0700 (PDT) In-Reply-To: References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> <513F9A4B.5030704@gmail.com> <513FA6FC.5040809@gmail.com> <51412AD4.8040304@gmail.com> Date: Wed, 13 Mar 2013 19:19:32 -0700 X-Google-Sender-Auth: C6a2UAHNYdglXTMjq65p4dl73UA Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 14 Mar 2013 02:19:34 -0000 ... oh, that's with the smartantenna support. Which I guess they've never actually _put_ on a 64 bit platform. so it's doing direct SOC GPIO port accesses from the HAL. That's .. ew. Anyway. I've just fixed it; so please update your git repo and the bad code will magically not compile in any longer. adrian On 13 March 2013 19:16, Adrian Chadd wrote: > Can you please post the patch and the specific compile issue? > > > > adrian > > > On 13 March 2013 18:41, Joshua Isom wrote: >> I added a cast to u_int64_t first on line 63 of ar9300_gpio.c to get it to >> compile. I imagine (void *) would be prefered, but I don't know what's >> actually correct. Unfortunately, I get a kernel panic on boot with scsi_cd, >> so I'll have to wait until that's dealt with before trying the ath driver. >> >> >> On 3/13/2013 7:30 PM, Adrian Chadd wrote: >>> >>> Hi, >>> >>> I've fixed some warnings - please update the git repo youre using. >>> >>> I've also added some clang workarounds in the MAkefile (see the bottom >>> of the file for the two lines to update) - so please svn update in >>> sys/modules/ath/ >>> >>> Hopefully that works enough for you! Please let me know what other >>> build errors you're seeing. >>> >>> Thanks, >>> >>> >>> Adrian >>> >> From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 23:24:33 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 05C929DA for ; Thu, 14 Mar 2013 23:24:33 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id C2B7D1CF for ; Thu, 14 Mar 2013 23:24:32 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:8cc6:ddbe:a5b:a8af]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 80D0F4AC57 for ; Fri, 15 Mar 2013 03:24:25 +0400 (MSK) Date: Fri, 15 Mar 2013 03:24:19 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1231231998.20130315032419@serebryakov.spb.ru> To: freebsd-wireless@FreeBSD.org Subject: Why FreeBSD AP announce rates over 18Mbit/s as "Extended"? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Thu, 14 Mar 2013 23:24:33 -0000 Hello, Freebsd-wireless. I've sniffed all WiFi networks in my apartments (a lot of them!) and compare data in beacons. I found one strangeness: Almost all networks (supported by SOHO soapbox-routers like TP-Link, Zyxel and D-Link) announce rates 1b, 2b, 5.5b, 11b, 16, 24, 26 and 54Mbit/s in "Supported rates" tag (tag #1) and only 6, 9, 12 and 48Mbit/s goes to tag "Extended supported rates" (tag #50). And my AP FreeBSD-based) announce is rather different: 1b, 2b, 5.5b, 11b, 16, 9, 12, 18Mbit/s goes to "Supported rates" (tag #1) and 24, 26, 48 and 54Mbit/s goes to "Extended supported rates" (tag #50). It is reason why simple WiFi monitoring tools shows my AP as capable only 18Mbit/s. :) What is reason why FreeBSD is different from all other WiFi stacks? -- // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 14 23:47:03 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1A347159; Thu, 14 Mar 2013 23:47:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by mx1.freebsd.org (Postfix) with ESMTP id 5DF7E280; Thu, 14 Mar 2013 23:47:02 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id ez12so15121wid.6 for ; Thu, 14 Mar 2013 16:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9x6R8kGMGhRUl2P8u6sLoJYOGyrURboKNm3kg/VyLpY=; b=Ws9yXCDfKxt19aDH+wNc2ma5ybpHEh/7pnf0yqZtjpL9+hlbnoM29lgRawSN5sey23 H8nvb1/kI8jiUIuoLEotpeoZOXICB+yY1IkY4RDeaJ5lXSuFRDDffnByrueRkNK5EAme GWSVG+wgZ7rb5zG+LQHWysElGhMsnplOEZUe1d7F3IHkgfhXHKpVbBklekHfvWYdu3UN 4ax2y72Z3uZsF4Hp1kd92jXx4cJnplmYtQ4uW9bcbFFYo6DlEsfqlIbLFR265VE63G3Y QGgXYbGOp2W9gnDIe6KrXJtkiFozCxezfGSlobRl31+diSrYasFKsxTg6xrqYVVnBl2u IZwg== MIME-Version: 1.0 X-Received: by 10.180.87.129 with SMTP id ay1mr7334315wib.1.1363304821517; Thu, 14 Mar 2013 16:47:01 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Thu, 14 Mar 2013 16:47:01 -0700 (PDT) In-Reply-To: <1231231998.20130315032419@serebryakov.spb.ru> References: <1231231998.20130315032419@serebryakov.spb.ru> Date: Thu, 14 Mar 2013 16:47:01 -0700 X-Google-Sender-Auth: e1cW7eLkB_BJww7hL-vvFNCG0-E Message-ID: Subject: Re: Why FreeBSD AP announce rates over 18Mbit/s as "Extended"? From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 14 Mar 2013 23:47:03 -0000 It's likely some hack done by the wifi vendors to "look good'. There's a split between basic (Required) and extended rates. You don't need to talk extended rates to associate. So your tool(s) are demonstrably broken. You should be able to get right up to 54mbit. :) Adrian On 14 March 2013 16:24, Lev Serebryakov wrote: > Hello, Freebsd-wireless. > > I've sniffed all WiFi networks in my apartments (a lot of them!) and > compare data in beacons. I found one strangeness: > > Almost all networks (supported by SOHO soapbox-routers like > TP-Link, Zyxel and D-Link) announce rates 1b, 2b, 5.5b, 11b, 16, 24, > 26 and 54Mbit/s in "Supported rates" tag (tag #1) and only 6, 9, 12 > and 48Mbit/s goes to tag "Extended supported rates" (tag #50). > > And my AP FreeBSD-based) announce is rather different: 1b, 2b, 5.5b, > 11b, 16, 9, 12, 18Mbit/s goes to "Supported rates" (tag #1) and 24, > 26, 48 and 54Mbit/s goes to "Extended supported rates" (tag #50). > > It is reason why simple WiFi monitoring tools shows my AP as > capable only 18Mbit/s. :) > > What is reason why FreeBSD is different from all other WiFi stacks? > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 01:31:16 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 4AA35362 for ; Fri, 15 Mar 2013 01:31:16 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [IPv6:2607:f8b0:400d:c01::229]) by mx1.freebsd.org (Postfix) with ESMTP id 10250846 for ; Fri, 15 Mar 2013 01:31:15 +0000 (UTC) Received: by mail-qc0-f169.google.com with SMTP id t2so1337072qcq.0 for ; Thu, 14 Mar 2013 18:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=u8ujzDuixT+zxYOWuQ3tO9fdm1jcQPosnlldVssTpak=; b=vb7UZmqSIVAwgQLytsEnV0xCj4W9+yJnTaowpspiW11jCJmnSF8jhzp+6xk8KwCa48 TW2ygybQO8v/Jw9drDnE8WpjW+MrsAE0vSZ2aK7GVdxQMxGW5Y1pOpErUaEIZplQlzhn s8TC6ratyq/BD50cZBoEyse+arqMRdRxe48lEtrdcYJ4xHrPzPogI3gBRLDkqF6f2Zhl QiWUItYELAa/v0jV36euBGExlvCU9XD5GWVdlo5qEYigPsrvg7NBJgz7dSevN6pZncXO N0JsTb3IL+LujGUwecchUA+RVBNJUpEFZn2EAqAkZrNpc4aau2B6qL3MSdmJv7eNfrFJ TgsQ== X-Received: by 10.49.59.67 with SMTP id x3mr4098619qeq.5.1363311075582; Thu, 14 Mar 2013 18:31:15 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id j6sm1035647qek.8.2013.03.14.18.31.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 18:31:14 -0700 (PDT) Message-ID: <514279DF.9010304@gmail.com> Date: Thu, 14 Mar 2013 20:31:11 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 15 Mar 2013 01:31:16 -0000 On 3/13/2013 7:31 PM, Adrian Chadd wrote: > On 9 March 2013 10:54, Adrian Chadd wrote: > >> What's tested: >> >> * legacy, 1x1 and 2x2 HT20/HT40, STA mode >> * AR9380 (1x1, 2x2 - 2/5ghz) >> * AR9485 (1x1, 2ghz only) > > I can now add two more NICs to this list: > > * AR9390 (HB116) > * AR9462 (WB225) > > Thanks, > > > Adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" > I've got it all compiled and booted, but the driver's not finding the card. Any ideas? > [jri:~] root# uname -a > FreeBSD jri.homeunix.com 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r248281M: Thu Mar 14 18:55:48 CDT 2013 root@jri.homeunix.com:/usr/obj/root/ATH/head/sys/ATH amd64 > [jri:~] root# pciconf -lv # Truncated > none3@pci0:2:0:0: class=0x028000 card=0x3112168c chip=0x0030168c rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR9300 Wireless LAN adaptor' > class = network > [jri:~] root# diff ATH/head/sys/amd64/conf/{ATH,GENERIC} > 27,30d26 > < options ATH_DEBUG > < options AH_DEBUG > < options ATH_DIAGAPI > < > 142c138 > < #device cd # CD > --- >> device cd # CD > [jri:~] root# ifconfig > nfe0: flags=8843 metric 0 mtu 1500 > options=82008 > ether 6c:f0:49:d5:6f:6a > inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=29 > media: Ethernet autoselect (1000baseT ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > [jri:~] root# kldload if_ath > kldload: can't load if_ath: File exists From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 02:02:45 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 DE6EC9D9 for ; Fri, 15 Mar 2013 02:02:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-f45.google.com (mail-qe0-f45.google.com [209.85.128.45]) by mx1.freebsd.org (Postfix) with ESMTP id 99BFA92B for ; Fri, 15 Mar 2013 02:02:45 +0000 (UTC) Received: by mail-qe0-f45.google.com with SMTP id b4so1660241qen.32 for ; Thu, 14 Mar 2013 19:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:to:reply-to:subject:in-reply-to :x-mailer:mime-version:content-type; bh=T6Lup0s8H0rZrzRvE3xom0638DOEyx3Iay2S+rnVQNM=; b=R0tmM7Q2yRJW9ENq2GkkrHvMyz/oA0MLuNRNkdly1aApysPcStyB0jOxmqRAA7WVAM rxBJUUOXvmZluOS2e9DHg4+PqnuKErq02x9Vi5yOqE1jFBt4AnEBetaMaFi4k9BzEzmk Jd8hCZOWKeilW9fQtRIn1l9ZBGS8XvTDS+ftNFZfCiU0z1sPoPzU4dbyT2muYAw49cg7 xFg9dIBaVAQZkBu/Ukd2HGZ6FUxgGWhq7hPlauiib3ej8pq/9WWUR8XJfG+ccEsWuWy9 W2QIsp109DQnBzLTuZf0doVjI6Uv2F0nWZbvAL+NfI91kQCFX1zi2pCUtJXcOCpvROXp jzQQ== X-Received: by 10.224.72.80 with SMTP id l16mr4123816qaj.76.1363312959013; Thu, 14 Mar 2013 19:02:39 -0700 (PDT) Received: from www.palm.com ([32.158.116.218]) by mx.google.com with ESMTPS id dy3sm1109254qab.13.2013.03.14.19.02.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Mar 2013 19:02:37 -0700 (PDT) Message-ID: <5142813d.83c2e00a.67a8.39d5@mx.google.com> Date: Thu, 14 Mar 2013 19:02:31 -0700 From: "Adrian Chadd" To: "Joshua Isom" , "freebsd-wireless@freebsd.org" Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support In-Reply-To: <514279DF.9010304@gmail.com> X-Mailer: Palm webOS v1.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Adrian Chadd 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, 15 Mar 2013 02:02:45 -0000 0x3112? What nic is that? I'll go and take a quick look at the reference driver. Can you google your= laptop model and see what you can find? Adrian Sent from my Palm Pre on AT&T On Mar 14, 2013 6:31 PM, Joshua Isom <jrisom@gmail.com> wrote:=20 On 3/13/2013 7:31 PM, Adrian Chadd wrote: > On 9 March 2013 10:54, Adrian Chadd <adrian@freebsd.org> wrote: > >> What's tested: >> >> * legacy, 1x1 and 2x2 HT20/HT40, STA mode >> * AR9380 (1x1, 2x2 - 2/5ghz) >> * AR9485 (1x1, 2ghz only) > > I can now add two more NICs to this list: > > * AR9390 (HB116) > * AR9462 (WB225) > > Thanks, > > > Adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd= =2Eorg" > I've got it all compiled and booted, but the driver's not finding the=20 card. Any ideas? > [jri:~] root# uname -a > FreeBSD jri.homeunix.com 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r248281M= : Thu Mar 14 18:55:48 CDT 2013 root@jri.homeunix.com:/usr/obj/root/ATH/= head/sys/ATH amd64 > [jri:~] root# pciconf -lv # Truncated > none3@pci0:2:0:0: class=3D0x028000 card=3D0x3112168c chip=3D0x00= 30168c rev=3D0x01 hdr=3D0x00 > vendor =3D 'Atheros Communications Inc.' > device =3D 'AR9300 Wireless LAN adaptor' > class =3D network > [jri:~] root# diff ATH/head/sys/amd64/conf/{ATH,GENERIC} > 27,30d26 > < options ATH_DEBUG > < options AH_DEBUG > < options ATH_DIAGAPI > < > 142c138 > < #device cd # CD > --- >> device cd # CD > [jri:~] root# ifconfig > nfe0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metri= c 0 mtu 1500 > options=3D82008<VLAN_MTU,WOL_MAGIC,LINKSTATE> > ether 6c:f0:49:d5:6f:6a > inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > media: Ethernet autoselect (1000baseT <full-duplex>) > status: active > lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16= 384 > options=3D600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> > [jri:~] root# kldload if_ath > kldload: can't load if_ath: File exists _______________________________________________ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 02:18:17 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 7E0BBB85 for ; Fri, 15 Mar 2013 02:18:17 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ia0-x229.google.com (mail-ia0-x229.google.com [IPv6:2607:f8b0:4001:c02::229]) by mx1.freebsd.org (Postfix) with ESMTP id 37DF1988 for ; Fri, 15 Mar 2013 02:18:17 +0000 (UTC) Received: by mail-ia0-f169.google.com with SMTP id j5so2813416iaf.28 for ; Thu, 14 Mar 2013 19:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=8P014U3AZ3NU2YJw6HfLhUz4oWx0cQS+8kkbmei1E4o=; b=AJuno1ls/D9TmVKvxMhB5RsNzxa2bqNUb5Vj5DsEHoEWQtdu1qKfS/OW2BWiofeA5T EDIsdN+1FP3RSKbOzj26cgSoFpa01kjX+nQsy2ehY+r5SfRt/htthIp4AETxV9/kOpUg J9GQZfB8uSIhpu1DgIWsCtewHSp4Cm9+1r38tUqVuehpPbkm8L02vcfEreRtDaLVFO3L 72VsyMQuyr0hDL6Z0u3q/p9Ru8rFh8MddsRxZ/qy5vOP0CqYYvtnZkyx3gdvhgQL5ipR tTr+ZEuTmLgcrzthGiDkKjVCiwxERDeYrJkE38tL9CCF2MeAN0ju/W42NFEzRp4uBdIY 3Dnw== X-Received: by 10.50.212.74 with SMTP id ni10mr165902igc.60.1363313896547; Thu, 14 Mar 2013 19:18:16 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id ip2sm307066igc.5.2013.03.14.19.18.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 19:18:15 -0700 (PDT) Message-ID: <514284E5.9060303@gmail.com> Date: Thu, 14 Mar 2013 21:18:13 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> In-Reply-To: <5142813d.83c2e00a.67a8.39d5@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 15 Mar 2013 02:18:17 -0000 Not a laptop, but here's the vendor's website. http://www.tp-link.com/en/products/details/?model=TL-WDN4800 On 3/14/2013 9:02 PM, Adrian Chadd wrote: > 0x3112? What nic is that? > > I'll go and take a quick look at the reference driver. Can you google > your laptop model and see what you can find? > > > Adrian > > > Sent from my Palm Pre on AT&T > > ------------------------------------------------------------------------ > On Mar 14, 2013 6:31 PM, Joshua Isom wrote: > > On 3/13/2013 7:31 PM, Adrian Chadd wrote: >> On 9 March 2013 10:54, Adrian Chadd wrote: >> >>> What's tested: >>> >>> * legacy, 1x1 and 2x2 HT20/HT40, STA mode >>> * AR9380 (1x1, 2x2 - 2/5ghz) >>> * AR9485 (1x1, 2ghz only) >> >> I can now add two more NICs to this list: >> >> * AR9390 (HB116) >> * AR9462 (WB225) >> >> Thanks, >> >> >> Adrian >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" >> > > > I've got it all compiled and booted, but the driver's not finding the > card. Any ideas? > >> [jri:~] root# uname -a >> FreeBSD jri.homeunix.com 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r248281M: Thu Mar 14 18:55:48 CDT 2013 root@jri.homeunix.com:/usr/obj/root/ATH/head/sys/ATH amd64 >> [jri:~] root# pciconf -lv # Truncated >> none3@pci0:2:0:0: class=0x028000 card=0x3112168c chip=0x0030168c rev=0x01 hdr=0x00 >> vendor = 'Atheros Communications Inc.' >> device = 'AR9300 Wireless LAN adaptor' >> class = network >> [jri:~] root# diff ATH/head/sys/amd64/conf/{ATH,GENERIC} >> 27,30d26 >> < options ATH_DEBUG >> < options AH_DEBUG >> < options ATH_DIAGAPI >> < >> 142c138 >> < #device cd # CD >> --- >>> device cd # CD >> [jri:~] root# ifconfig >> nfe0: flags=8843 metric 0 mtu 1500 >> options=82008 >> ether 6c:f0:49:d5:6f:6a >> inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255 >> inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 >> nd6 options=29 >> media: Ethernet autoselect (1000baseT ) >> status: active >> lo0: flags=8049 metric 0 mtu 16384 >> options=600003 >> inet6 ::1 prefixlen 128 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >> inet 127.0.0.1 netmask 0xff000000 >> nd6 options=21 >> [jri:~] root# kldload if_ath >> kldload: can't load if_ath: File exists > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 02:20:50 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 9981ACBE for ; Fri, 15 Mar 2013 02:20:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC2D997 for ; Fri, 15 Mar 2013 02:20:50 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id 12so126768wgh.1 for ; Thu, 14 Mar 2013 19:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=y0JCmB2ZcIJPTjbY7wgoQKxCu7eOeIQspTtjYHKTa3Y=; b=dyR3/un3V59/QyEtQ2gObQ/ZxyWVA6iMEQFA0ziCYHO9wwAbyu9rg+jlUZOE0ZGnqB zeuEx9aDAoLXMy88VQ1ys9OtUTrxtJIrNFUQTBBxW1cYnIBOxPXN+8JH52azcT56ejXQ yjyGwA6rIruft625f2jk5yNQy2qtDRcJkSA9BJvD2f9Gk3ol4vha2O6iupJGLNrEYTcO IJmYuDy4z8IEbBtOqrr54h58bR1o/qvj9AFMtmaPeE7m6/DXj/OvrX2zM2OQ+Rlalmu9 g0Z1hIWbMgeBes3g8FFZNY3qxQtoSnLSeJl5kiENThSyB9N2D8SSI34rp4S05caJwLCg jMZA== MIME-Version: 1.0 X-Received: by 10.194.237.129 with SMTP id vc1mr7630749wjc.20.1363314048630; Thu, 14 Mar 2013 19:20:48 -0700 (PDT) Received: by 10.216.111.201 with HTTP; Thu, 14 Mar 2013 19:20:48 -0700 (PDT) In-Reply-To: <514284E5.9060303@gmail.com> References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> Date: Thu, 14 Mar 2013 19:20:48 -0700 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 15 Mar 2013 02:20:50 -0000 Oh! http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 Silly me, I was reading the wrong number on my phone. Yes, 0x0030 is Osprey (AR9380.) kldload if_ath_pci too. :-) Adrian On 14 March 2013 19:18, Joshua Isom wrote: > Not a laptop, but here's the vendor's website. > http://www.tp-link.com/en/products/details/?model=TL-WDN4800 > > > On 3/14/2013 9:02 PM, Adrian Chadd wrote: >> >> 0x3112? What nic is that? >> >> I'll go and take a quick look at the reference driver. Can you google >> your laptop model and see what you can find? >> >> >> Adrian >> >> >> Sent from my Palm Pre on AT&T >> >> ------------------------------------------------------------------------ >> >> On Mar 14, 2013 6:31 PM, Joshua Isom wrote: >> >> On 3/13/2013 7:31 PM, Adrian Chadd wrote: >>> >>> On 9 March 2013 10:54, Adrian Chadd wrote: >>> >>>> What's tested: >>>> >>>> * legacy, 1x1 and 2x2 HT20/HT40, STA mode >>>> * AR9380 (1x1, 2x2 - 2/5ghz) >>>> * AR9485 (1x1, 2ghz only) >>> >>> >>> I can now add two more NICs to this list: >>> >>> * AR9390 (HB116) >>> * AR9462 (WB225) >>> >>> Thanks, >>> >>> >>> Adrian >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to >>> "freebsd-wireless-unsubscribe@freebsd.org" >>> >> >> >> I've got it all compiled and booted, but the driver's not finding the >> card. Any ideas? >> >>> [jri:~] root# uname -a >>> FreeBSD jri.homeunix.com 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r248281M: >>> Thu Mar 14 18:55:48 CDT 2013 >>> root@jri.homeunix.com:/usr/obj/root/ATH/head/sys/ATH amd64 >>> [jri:~] root# pciconf -lv # Truncated >>> none3@pci0:2:0:0: class=0x028000 card=0x3112168c chip=0x0030168c >>> rev=0x01 hdr=0x00 >>> vendor = 'Atheros Communications Inc.' >>> device = 'AR9300 Wireless LAN adaptor' >>> class = network >>> [jri:~] root# diff ATH/head/sys/amd64/conf/{ATH,GENERIC} >>> 27,30d26 >>> < options ATH_DEBUG >>> < options AH_DEBUG >>> < options ATH_DIAGAPI >>> < >>> 142c138 >>> < #device cd # CD >>> --- >>>> >>>> device cd # CD >>> >>> [jri:~] root# ifconfig >>> nfe0: flags=8843 metric 0 mtu >>> 1500 >>> options=82008 >>> ether 6c:f0:49:d5:6f:6a >>> inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255 >>> inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 >>> nd6 options=29 >>> media: Ethernet autoselect (1000baseT ) >>> status: active >>> lo0: flags=8049 metric 0 mtu 16384 >>> options=600003 >>> inet6 ::1 prefixlen 128 >>> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >>> inet 127.0.0.1 netmask 0xff000000 >>> nd6 options=21 >>> [jri:~] root# kldload if_ath >>> kldload: can't load if_ath: File exists >> >> >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" > > From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 02:24:05 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 77B41BC for ; Fri, 15 Mar 2013 02:24:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0EC1E9BD for ; Fri, 15 Mar 2013 02:24:04 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id fm10so2721170wgb.9 for ; Thu, 14 Mar 2013 19:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=LlEPtglfClYKiRITrP79UgVcPgsXPDr5LtFTpqxjsTI=; b=SjLRtlNsYR/uemZPULfHKU1juW2vcX2S047OrA/HyNqRF33aTxiYyEjAT7u1VTSXXL 060apk2RbavlynwLTY4c8R8RH7CP8pCsOyrPT9gy5bzz6scUvjt8TtiwuMvTe/J30Ohf yOFPjYlW2avxYKrusF2u+kpzImObyPADrfrI5hkWehbeO8Zlzp5HBFQQltdGWS2xrie4 MzT0zkBAJDU0KfZvzhVmbCR6kXLmafQkFyEEh/uDFIf51IM917Ll9RA3ZhRV1iDsUYwk bRcv7oLOvhrRlW9yTEfoNxyTJTfGaSeCKQW5GoP1TyYwRGhZ+LaCA+KRdOFDU6cQOeCF vaHQ== MIME-Version: 1.0 X-Received: by 10.180.86.1 with SMTP id l1mr326901wiz.32.1363314243859; Thu, 14 Mar 2013 19:24:03 -0700 (PDT) Received: by 10.216.111.201 with HTTP; Thu, 14 Mar 2013 19:24:03 -0700 (PDT) In-Reply-To: References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> Date: Thu, 14 Mar 2013 19:24:03 -0700 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 15 Mar 2013 02:24:05 -0000 .. and here I am, hoping you're user #1 (with me being user #0) of this HAL. :) Adrian On 14 March 2013 19:20, Adrian Chadd wrote: > Oh! > > http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 > > Silly me, I was reading the wrong number on my phone. > > Yes, 0x0030 is Osprey (AR9380.) > > kldload if_ath_pci too. :-) > > > > Adrian > > On 14 March 2013 19:18, Joshua Isom wrote: >> Not a laptop, but here's the vendor's website. >> http://www.tp-link.com/en/products/details/?model=TL-WDN4800 >> >> >> On 3/14/2013 9:02 PM, Adrian Chadd wrote: >>> >>> 0x3112? What nic is that? >>> >>> I'll go and take a quick look at the reference driver. Can you google >>> your laptop model and see what you can find? >>> >>> >>> Adrian >>> >>> >>> Sent from my Palm Pre on AT&T >>> >>> ------------------------------------------------------------------------ >>> >>> On Mar 14, 2013 6:31 PM, Joshua Isom wrote: >>> >>> On 3/13/2013 7:31 PM, Adrian Chadd wrote: >>>> >>>> On 9 March 2013 10:54, Adrian Chadd wrote: >>>> >>>>> What's tested: >>>>> >>>>> * legacy, 1x1 and 2x2 HT20/HT40, STA mode >>>>> * AR9380 (1x1, 2x2 - 2/5ghz) >>>>> * AR9485 (1x1, 2ghz only) >>>> >>>> >>>> I can now add two more NICs to this list: >>>> >>>> * AR9390 (HB116) >>>> * AR9462 (WB225) >>>> >>>> Thanks, >>>> >>>> >>>> Adrian >>>> _______________________________________________ >>>> freebsd-wireless@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>> To unsubscribe, send any mail to >>>> "freebsd-wireless-unsubscribe@freebsd.org" >>>> >>> >>> >>> I've got it all compiled and booted, but the driver's not finding the >>> card. Any ideas? >>> >>>> [jri:~] root# uname -a >>>> FreeBSD jri.homeunix.com 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r248281M: >>>> Thu Mar 14 18:55:48 CDT 2013 >>>> root@jri.homeunix.com:/usr/obj/root/ATH/head/sys/ATH amd64 >>>> [jri:~] root# pciconf -lv # Truncated >>>> none3@pci0:2:0:0: class=0x028000 card=0x3112168c chip=0x0030168c >>>> rev=0x01 hdr=0x00 >>>> vendor = 'Atheros Communications Inc.' >>>> device = 'AR9300 Wireless LAN adaptor' >>>> class = network >>>> [jri:~] root# diff ATH/head/sys/amd64/conf/{ATH,GENERIC} >>>> 27,30d26 >>>> < options ATH_DEBUG >>>> < options AH_DEBUG >>>> < options ATH_DIAGAPI >>>> < >>>> 142c138 >>>> < #device cd # CD >>>> --- >>>>> >>>>> device cd # CD >>>> >>>> [jri:~] root# ifconfig >>>> nfe0: flags=8843 metric 0 mtu >>>> 1500 >>>> options=82008 >>>> ether 6c:f0:49:d5:6f:6a >>>> inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255 >>>> inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 >>>> nd6 options=29 >>>> media: Ethernet autoselect (1000baseT ) >>>> status: active >>>> lo0: flags=8049 metric 0 mtu 16384 >>>> options=600003 >>>> inet6 ::1 prefixlen 128 >>>> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >>>> inet 127.0.0.1 netmask 0xff000000 >>>> nd6 options=21 >>>> [jri:~] root# kldload if_ath >>>> kldload: can't load if_ath: File exists >>> >>> >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to >>> "freebsd-wireless-unsubscribe@freebsd.org" >> >> From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 02:57:24 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 277827C0 for ; Fri, 15 Mar 2013 02:57:24 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id CBA50AE7 for ; Fri, 15 Mar 2013 02:57:23 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id hg5so61822qab.20 for ; Thu, 14 Mar 2013 19:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=NkTqt72wrcpyKDP1FJNM0ZtZ+7c09aGVvUR4Qqmvz2o=; b=r9NAkKcCyGM08mmQzaBMUBltNLMZHvvGEzyh7Shq/OqUutaEKQkUrJie7YELx06HWG vPJFJxHH2ZB4rblDvCwGxrrW3IKOoNI7NfcI0LgJndDkXaC9vUymflUHuUT3q46dEZdy zyKeRnd5JI2mqKnnUCs8wlD7hSqlA6jJghCUdhJyJL6+oCa4fCTy8osrDoklgZJN6VY7 35+S4XVf29wHvCli64NekS0cnXRBfSr5a57HUkzocfImA1qYhx9BKo4B7r6Z4+JNMFbf iuZdXRmDls0YYCuQoRC4NuD576jG4dkN1t8NvI4xjg/zGL6NeHJhmLWK2gVArXeuMbPz fIPw== X-Received: by 10.49.24.194 with SMTP id w2mr3983001qef.24.1363316242795; Thu, 14 Mar 2013 19:57:22 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id gw9sm1266701qab.10.2013.03.14.19.57.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 19:57:22 -0700 (PDT) Message-ID: <51428E10.1000801@gmail.com> Date: Thu, 14 Mar 2013 21:57:20 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 15 Mar 2013 02:57:24 -0000 On 3/14/2013 9:20 PM, Adrian Chadd wrote: > Oh! > > http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 > > Silly me, I was reading the wrong number on my phone. > > Yes, 0x0030 is Osprey (AR9380.) > > kldload if_ath_pci too. :-) > > > > Adrian > Something weird happened. My config has ath_pci listed, but then I get this. > [jri:~] root# kldload if_ath_pci > kldload: can't load if_ath_pci: Exec format error > [jri:~] root# file /boot/kernel/if_ath_pci.ko > /boot/kernel/if_ath_pci.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped Other modules like ath return the standard "already loaded" message. From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 03:34:18 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 8633BF5D for ; Fri, 15 Mar 2013 03:34:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx1.freebsd.org (Postfix) with ESMTP id 144B4D75 for ; Fri, 15 Mar 2013 03:34:17 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id fg15so2610231wgb.1 for ; Thu, 14 Mar 2013 20:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=McV7p4MgF9ocMZoHPwZuhm5R5a+EZjRnKyvAKynZBPw=; b=ppunQg3NsBOZ5B3I3zu3CyL/eTTmGAk82aKAIHcwp13a6m2g7FRk6HR1F4moR11pzr 1FxZuaim32o8xd/fnTckrHxQd9mqNBFtnPQ+S4t5RYGaLg3Druh/Y1lFQD97KXu/Ziu6 XgIOYuhcr0n/WdyBTRb0EKyO9PBou9txXnaWYiG5SfinGySI+UzKDTfHXNlvAaKZlYlS wq9ztg50gdZZ60WIU+z4NMPD3yh3pGbhNW+siOiVYL/Yd48KS8ZruZoj4lrYQJPzSRd8 YI0oSOzVz0dPugs7wok0hMvi00c0t86luJ6DjPkZs4kmduQnJW1KI2utmcObvJb/H8Uq rGIQ== MIME-Version: 1.0 X-Received: by 10.180.86.1 with SMTP id l1mr507396wiz.32.1363318456527; Thu, 14 Mar 2013 20:34:16 -0700 (PDT) Received: by 10.216.111.201 with HTTP; Thu, 14 Mar 2013 20:34:16 -0700 (PDT) In-Reply-To: <51428E10.1000801@gmail.com> References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> <51428E10.1000801@gmail.com> Date: Thu, 14 Mar 2013 20:34:16 -0700 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 15 Mar 2013 03:34:18 -0000 Did you remove ath/ath_hal/ath_rate_sample from your kernel config file when you rebuilt? The default system ships with ath/ath_hal/ath_rate_sample compiled into the kernel rather than as modules. Thanks, Adrian On 14 March 2013 19:57, Joshua Isom wrote: > On 3/14/2013 9:20 PM, Adrian Chadd wrote: >> >> Oh! >> >> http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 >> >> Silly me, I was reading the wrong number on my phone. >> >> Yes, 0x0030 is Osprey (AR9380.) >> >> kldload if_ath_pci too. :-) >> >> >> >> Adrian >> > > Something weird happened. My config has ath_pci listed, but then I get > this. > >> [jri:~] root# kldload if_ath_pci >> kldload: can't load if_ath_pci: Exec format error >> [jri:~] root# file /boot/kernel/if_ath_pci.ko >> /boot/kernel/if_ath_pci.ko: ELF 64-bit LSB relocatable, x86-64, version 1 >> (FreeBSD), not stripped > > > Other modules like ath return the standard "already loaded" message. From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 04:32:09 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 7EE0B496 for ; Fri, 15 Mar 2013 04:32:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by mx1.freebsd.org (Postfix) with ESMTP id F2F6FEED for ; Fri, 15 Mar 2013 04:32:08 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id hi18so124506wib.15 for ; Thu, 14 Mar 2013 21:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=fgFP1HDmtBz8kdOnaN6XSRBbsgBA4PDaEnqh9zpwIfI=; b=nIJHqa3VN2Qrg6nyX3+UDAqc+nJtv7EjD/BTmpkEFH3it1kSNyVZREDQ4aHkTinjxm vWREee4kNSjg4ZfVhVy+un5Es76jS5smSm5J7IURsvz9aGwRuAUXH0FCpjeP5ujUorzP Hl9TMV9g5gtYWQuDx8m85yUQdCN132e2DazShoiDPxOwUjE4ExRwhVXxD4TWGWIW8uuR YOgOgvR81JeN2vPVMV4D9TXCwroOf0geOpgXjZ3e2Dmuo/FypRQY5q5+ILjYiQqmzjMU ntp6071qPJqUve+8Ik11I793oOcKoD17pSsTr+1GqNxCmN3tiTj0UXbGXmNoccEhRuIc 0MkQ== MIME-Version: 1.0 X-Received: by 10.180.73.212 with SMTP id n20mr516665wiv.11.1363321927457; Thu, 14 Mar 2013 21:32:07 -0700 (PDT) Received: by 10.216.111.201 with HTTP; Thu, 14 Mar 2013 21:32:07 -0700 (PDT) In-Reply-To: References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> <51428E10.1000801@gmail.com> Date: Thu, 14 Mar 2013 21:32:07 -0700 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 15 Mar 2013 04:32:09 -0000 .. as a side note, if someone has a laptop with an AR9565 (WB335) in it, please test my HAL out and let me know how it goes. I don't yet have one to test with but the HAL should "just work". Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 13:53:02 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 008A5CF3 for ; Fri, 15 Mar 2013 13:53:01 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id BBD3F1C6 for ; Fri, 15 Mar 2013 13:53:01 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id tb18so3250814obb.3 for ; Fri, 15 Mar 2013 06:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:user-agent:in-reply-to:references:mime-version :content-type:subject:from:date:to:cc:message-id; bh=TL+9E+t8/AnmI/7p5zkPdocc85y89Um+9DxrABQNVj0=; b=RCWslUIUYnW9fxXf+hOMXiDqf4DjxUhc2aMjTcFAu3e33xFgJmpBOPUPKlXLw8zCLy R3YNuNPNnE3+YfSuuLJz3t7oXtKux/XIrOwce6NcLVxYnigLqTBdgl0hP9erTtvSZv+G /+Az3mrSkR7WzsIhKhkQelnVSrlesbMlkO4Zeh+o2ZHwhSXnmXL5iSeRAwjCh+ZKAbNT 87rJyTKZ9lg3rMr2o9jBY0N9yVZThGbjevPV4jxa7WcHcoNbJ42f4yO7l3eMUHaAU+Uo roSzTyF1+cYhHzUya7kRs2bDh9npWBl1oTup11NhO0YhOtxcHB0ru9/tfy5v3uNOex76 /Ehw== X-Received: by 10.60.13.1 with SMTP id d1mr3019496oec.55.1363355581393; Fri, 15 Mar 2013 06:53:01 -0700 (PDT) Received: from [10.182.56.109] (86.sub-70-194-80.myvzw.com. [70.194.80.86]) by mx.google.com with ESMTPS id 4sm1654337obj.7.2013.03.15.06.52.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Mar 2013 06:53:00 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> <51428E10.1000801@gmail.com> MIME-Version: 1.0 Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Joshua Isom Date: Fri, 15 Mar 2013 08:52:55 -0500 To: Adrian Chadd Message-ID: <78975985-a190-4915-82b5-b1810d6115b2@email.android.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Fri, 15 Mar 2013 13:53:02 -0000 I got it all working after removing the driver from the kernelconfig and a few other tweaks. I'll post an ugly diff later when I can. I was able to get the network working only after I forced the wired down and commented out the rc.conf references. DHCP worked but no routing, not even the router. I don't know if it's a FreeBSD issue or not. Adrian Chadd wrote: >Did you remove ath/ath_hal/ath_rate_sample from your kernel config >file when you rebuilt? > >The default system ships with ath/ath_hal/ath_rate_sample compiled >into the kernel rather than as modules. > >Thanks, > > > >Adrian > > >On 14 March 2013 19:57, Joshua Isom wrote: >> On 3/14/2013 9:20 PM, Adrian Chadd wrote: >>> >>> Oh! >>> >>> http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 >>> >>> Silly me, I was reading the wrong number on my phone. >>> >>> Yes, 0x0030 is Osprey (AR9380.) >>> >>> kldload if_ath_pci too. :-) >>> >>> >>> >>> Adrian >>> >> >> Something weird happened. My config has ath_pci listed, but then I >get >> this. >> >>> [jri:~] root# kldload if_ath_pci >>> kldload: can't load if_ath_pci: Exec format error >>> [jri:~] root# file /boot/kernel/if_ath_pci.ko >>> /boot/kernel/if_ath_pci.ko: ELF 64-bit LSB relocatable, x86-64, >version 1 >>> (FreeBSD), not stripped >> >> >> Other modules like ath return the standard "already loaded" message. From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 16:00:50 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E2B91B3A for ; Fri, 15 Mar 2013 16:00:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 80E66A4D for ; Fri, 15 Mar 2013 16:00:50 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id t57so3348416wey.41 for ; Fri, 15 Mar 2013 09:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/6mFAszuHkHuVvSR7sZ36ptU0Spp0QmJ02f/ByC0Cy8=; b=Ce4LGm3tJfRpDI8UpdVmEqlCxu5b/QnLhafYc/49++0t93RndG80wXRpstyowvZZzX LPuV7RZfdKas3u04vPSMrCOD7C5WCtcQHKipjL77vS+5yZ4MIU9LZbbB38MnrQyuYlX3 Vy1+tUR2zgNZJlHhRQcpZ+kAsD1IuvZj6y26J+dSNcgJkZg2RrcNmKjEoTjNoYaqPuGc c2YjxvzvUhqyvb6wRxid0Wb7ImYmOVx0fsaTVl6a9nfAfzwgpKR/pdKfnkqGAj6cEMeP 7FIejCx+ufLaCdGX4bHx4EnPKDD8xKcLin0bDG0xLX44z2MOXwGI5A7M+UmgX6cJn3zS gvcw== MIME-Version: 1.0 X-Received: by 10.194.87.229 with SMTP id bb5mr11882501wjb.32.1363363249589; Fri, 15 Mar 2013 09:00:49 -0700 (PDT) Received: by 10.216.111.201 with HTTP; Fri, 15 Mar 2013 09:00:49 -0700 (PDT) In-Reply-To: <78975985-a190-4915-82b5-b1810d6115b2@email.android.com> References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> <51428E10.1000801@gmail.com> <78975985-a190-4915-82b5-b1810d6115b2@email.android.com> Date: Fri, 15 Mar 2013 09:00:49 -0700 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 15 Mar 2013 16:00:50 -0000 Yes, you can't have both ethernet and wireless up on the same L2 network like that; things will get confused. Does it all work fine if you don't have ethernet configured? adrian On 15 March 2013 06:52, Joshua Isom wrote: > I got it all working after removing the driver from the kernelconfig and a > few other tweaks. I'll post an ugly diff later when I can. I was able to get > the network working only after I forced the wired down and commented out the > rc.conf references. DHCP worked but no routing, not even the router. I don't > know if it's a FreeBSD issue or not. > > > Adrian Chadd wrote: >> >> Did you remove ath/ath_hal/ath_rate_sample from your kernel config >> file when you rebuilt? >> >> The default system ships with ath/ath_hal/ath_rate_sample compiled >> into the kernel rather than as modules. >> >> Thanks, >> >> >> >> Adrian >> >> >> On 14 March 2013 19:57, Joshua Isom wrote: >>> >>> On 3/14/2013 9:20 PM, Adrian Chadd wrote: >>> >>>> Oh! >>>> >>>> http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 >>>> >>>> Silly me, I was reading the wrong number on my phone. >>>> >>>> Yes, 0x0030 is Osprey (AR9380.) >>>> >>>> kldload >>>> if_ath_pci too. :-) >>>> >>>> >>>> >>>> Adrian >>> >>> >>> >>> Something weird happened. My config has ath_pci listed, but then I get >>> this. >>> >>>> [jri:~] root# kldload if_ath_pci >>>> kldload: can't load if_ath_pci: Exec format error >>>> [jri:~] root# file /boot/kernel/if_ath_pci.ko >>>> /boot/kernel/if_ath_pci.ko: ELF 64-bit LSB relocatable, x86-64, version >>>> 1 >>>> (FreeBSD), not stripped >>> >>> >>> >>> Other modules like ath return the standard "already loaded" message. From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 20:20:23 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3D3902B0 for ; Fri, 15 Mar 2013 20:20:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id A23E8FA9 for ; Fri, 15 Mar 2013 20:20:20 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id s43so3629974wey.35 for ; Fri, 15 Mar 2013 13:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=ks+UdVOYOybaOfYlnOTNoXiNf+Ol45CVCU39MT3SoTs=; b=nkT6Golh5G4hBToN5lgUINWTL9GdGWxmR5XfAbw1hcHidCNa5LQ2q2K9ohDZcsnE0P //B4Q66vySsBfVRSSsd5UWThDb9FAr3pFfxlu7LP1YeNflFUAQnoU16Q+7pdeVqhcSGC Qc2yZ6XuktqGbsvnIktQHB787BZbWFph0Lsr3UuQcdwGhTGX+3pOou3d+uYtcwXuRV9q 5D+HL1nJK3e1cTyvUeDZgBwajIWGTcLc2W4zjhq2RsbCwp/gFL+mCy7k13mpsM2UpNcY +R1J3NYCKN0PJKmVu8ERMiVkkEuEkPnykHv2l7ieoo6YsHBC2V/tqHdv5IzWEwvkG5vh 0MkA== MIME-Version: 1.0 X-Received: by 10.180.86.1 with SMTP id l1mr5471433wiz.32.1363378819240; Fri, 15 Mar 2013 13:20:19 -0700 (PDT) Received: by 10.216.111.201 with HTTP; Fri, 15 Mar 2013 13:20:19 -0700 (PDT) In-Reply-To: References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> <51428E10.1000801@gmail.com> <78975985-a190-4915-82b5-b1810d6115b2@email.android.com> Date: Fri, 15 Mar 2013 13:20:19 -0700 Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 15 Mar 2013 20:20:23 -0000 ... and can you please post a dmesg output, so I can see it actually attaching right? :) Adrian On 15 March 2013 09:00, Adrian Chadd wrote: > Yes, you can't have both ethernet and wireless up on the same L2 > network like that; things will get confused. > > Does it all work fine if you don't have ethernet configured? > > > adrian > > On 15 March 2013 06:52, Joshua Isom wrote: >> I got it all working after removing the driver from the kernelconfig and a >> few other tweaks. I'll post an ugly diff later when I can. I was able to get >> the network working only after I forced the wired down and commented out the >> rc.conf references. DHCP worked but no routing, not even the router. I don't >> know if it's a FreeBSD issue or not. >> >> >> Adrian Chadd wrote: >>> >>> Did you remove ath/ath_hal/ath_rate_sample from your kernel config >>> file when you rebuilt? >>> >>> The default system ships with ath/ath_hal/ath_rate_sample compiled >>> into the kernel rather than as modules. >>> >>> Thanks, >>> >>> >>> >>> Adrian >>> >>> >>> On 14 March 2013 19:57, Joshua Isom wrote: >>>> >>>> On 3/14/2013 9:20 PM, Adrian Chadd wrote: >>>> >>>>> Oh! >>>>> >>>>> http://wikidevi.com/wiki/TP-LINK_TL-WDN4800 >>>>> >>>>> Silly me, I was reading the wrong number on my phone. >>>>> >>>>> Yes, 0x0030 is Osprey (AR9380.) >>>>> >>>>> kldload >>>>> if_ath_pci too. :-) >>>>> >>>>> >>>>> >>>>> Adrian >>>> >>>> >>>> >>>> Something weird happened. My config has ath_pci listed, but then I get >>>> this. >>>> >>>>> [jri:~] root# kldload if_ath_pci >>>>> kldload: can't load if_ath_pci: Exec format error >>>>> [jri:~] root# file /boot/kernel/if_ath_pci.ko >>>>> /boot/kernel/if_ath_pci.ko: ELF 64-bit LSB relocatable, x86-64, version >>>>> 1 >>>>> (FreeBSD), not stripped >>>> >>>> >>>> >>>> Other modules like ath return the standard "already loaded" message. From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 15 22:33:44 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 E2F0A63D for ; Fri, 15 Mar 2013 22:33:44 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id B38B1E13 for ; Fri, 15 Mar 2013 22:33:44 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id k11so4995274iea.24 for ; Fri, 15 Mar 2013 15:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=e99uyR44JNnLQq5Xa+tfr2q4wf0iSCoAYS+JZPSmPuA=; b=Z9JjVE42rA9Nbs27n5PjJLqTtc0zFl3wQAoHovgWUkljzJUK+yioR3z8PXNCoRUXTh gy/VMUUqmfd+aDOfjTck3x7lICOq4p3abWiTECljDWdLioSgUcjtR9dAyWXG+LfYw70z vRCxii6+lBdhiVc16J72m7gIrrp0oWVw4UqHG+5nvOrdchhwPHQW0CMq4hFaPQyrkhSu tTs325gBYRN/I+IL9Vd3h9U0EqCycnlqMhna/9FxU8+XAhsZxCdgViZyST2/0KC/vTxr c701971/BmM5XJoX5LmMTt84o5vUb8RTOs4D6kKZAgN/2WAUjCcLRBaQIZuSWR1APjUj xXkQ== X-Received: by 10.43.125.199 with SMTP id gt7mr5655953icc.48.1363386823949; Fri, 15 Mar 2013 15:33:43 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id in10sm869333igc.1.2013.03.15.15.33.42 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Mar 2013 15:33:43 -0700 (PDT) Message-ID: <5143A1C3.7010304@gmail.com> Date: Fri, 15 Mar 2013 17:33:39 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <5142813d.83c2e00a.67a8.39d5@mx.google.com> <514284E5.9060303@gmail.com> <51428E10.1000801@gmail.com> <78975985-a190-4915-82b5-b1810d6115b2@email.android.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 15 Mar 2013 22:33:44 -0000 On 3/15/2013 11:00 AM, Adrian Chadd wrote: > Yes, you can't have both ethernet and wireless up on the same L2 > network like that; things will get confused. > > Does it all work fine if you don't have ethernet configured? > > > adrian > Removing the DHCP variable for the ethernet wasn't enough, I also had an alias for a jail that was preventing it from working. I wish it were possible for jails to use a default interface instead of explicit interface. Below are two diffs for what it took to compile for me, with gcc on amd64, 9-STABLE host but with the kernel-toolchain. After that's the dmesg. > diff --git a/hal/ar9300/ar9300_radio.c b/hal/ar9300/ar9300_radio.c > index 0f63dea..aa2a413 100644 > --- a/hal/ar9300/ar9300_radio.c > +++ b/hal/ar9300/ar9300_radio.c > @@ -80,9 +80,11 @@ ar9300_set_channel(struct ath_hal *ah, struct ieee80211_channel *chan) > u_int8_t clk_25mhz = AH9300(ah)->clk_25mhz; > CHAN_CENTERS centers; > int load_synth_channel; > + /* > HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); > > OS_MARK(ah, AH_MARK_SETCHANNEL, ichan->channel); > + */ > > ar9300_get_channel_centers(ah, chan, ¢ers); > freq = centers.synth_center; > diff --git a/hal/ar9300/ar9300_reset.c b/hal/ar9300/ar9300_reset.c > index 4bec7e5..4b1b467 100644 > --- a/hal/ar9300/ar9300_reset.c > +++ b/hal/ar9300/ar9300_reset.c > @@ -2606,7 +2606,8 @@ ar9300_process_ini(struct ath_hal *ah, struct ieee80211_channel *chan, > { > int reg_writes = 0; > struct ath_hal_9300 *ahp = AH9300(ah); > - u_int modes_index, modes_txgaintable_index, freq_index; > + u_int modes_index, freq_index; > + u_int modes_txgaintable_index = 0; > int i; > HAL_STATUS status; > struct ath_hal_private *ahpriv = AH_PRIVATE(ah); > Index: sys/modules/ath/Makefile > =================================================================== > --- sys/modules/ath/Makefile (revision 248318) > +++ sys/modules/ath/Makefile (working copy) > @@ -124,13 +124,13 @@ > SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c > > # + AR9300 HAL > -# .PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 > -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > -#SRCS+= ar9300_power.c ar9300_timer.c > +.PATH: ${.CURDIR}/../../contrib/dev/ath/ath_hal/ar9300 > +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > +SRCS+= ar9300_power.c ar9300_timer.c > > # NB: rate control is bound to the driver by symbol names so only pick one > .if ${ATH_RATE} == "sample" > @@ -149,7 +149,7 @@ > SRCS+= dfs_null.c > > CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal > -# CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ > +CFLAGS+= -I. -I${.CURDIR}/../../contrib/dev/ath/ath_hal/ > > .if !defined(KERNBUILDDIR) > opt_ah.h: > @@ -164,5 +164,5 @@ > CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} > > # AR9300 HAL build overrides, as there's still some code to tidy up > -#CWARNFLAGS.ar9300_eeprom.c= ${NO_WCONSTANT_CONVERSION} > -#CWARNFLAGS.ar9300_reset.c= ${NO_WSOMETIMES_UNINITIALIZED} > +CWARNFLAGS.ar9300_eeprom.c= ${NO_WCONSTANT_CONVERSION} > +CWARNFLAGS.ar9300_reset.c= ${NO_WSOMETIMES_UNINITIALIZED} > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #6 r248318M: Fri Mar 15 06:09:33 CDT 2013 > root@jri.homeunix.com:/usr/obj/root/ATH/head/sys/ATH amd64 > gcc version 4.2.1 20070831 patched [FreeBSD] > WARNING: WITNESS option enabled, expect reduced performance. > CPU: AMD Athlon(tm) II X4 635 Processor (2913.32-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x100f53 Family = 0x10 Model = 0x5 Stepping = 3 > Features=0x178bfbff > Features2=0x802009 > AMD Features=0xee500800 > AMD Features2=0x37ff > TSC: P-state invariant > real memory = 2147483648 (2048 MB) > avail memory = 1781571584 (1699 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 3 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 6fde0000 (3) failed > cpu0: on acpi0 > cpu1: on acpi0 > cpu2: on acpi0 > cpu3: on acpi0 > attimer0: port 0x40-0x43 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > hpet0: iomem 0xfeff0000-0xfeff03ff irq 0,8 on acpi0 > Timecounter "HPET" frequency 25000000 Hz quality 950 > atrtc0: port 0x70-0x73 on acpi0 > Event timer "RTC" frequency 32768 Hz quality 0 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pci0: at device 0.0 (no driver attached) > isab0: at device 1.0 on pci0 > isa0: on isab0 > pci0: at device 1.1 (no driver attached) > pci0: at device 1.2 (no driver attached) > ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 2.0 on pci0 > usbus0 on ohci0 > ehci0: mem 0xfe02e000-0xfe02e0ff irq 22 at device 2.1 on pci0 > usbus1: EHCI version 1.0 > usbus1 on ehci0 > pcib1: at device 4.0 on pci0 > pci1: on pcib1 > hdac0: mem 0xfe024000-0xfe027fff irq 23 at device 5.0 on pci0 > atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 > ata0: at channel 0 on atapci0 > ata1: at channel 1 on atapci0 > nfe0: port 0xec00-0xec07 mem 0xfe02d000-0xfe02dfff irq 20 at device 7.0 on pci0 > miibus0: on nfe0 > rgephy0: PHY 3 on miibus0 > rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow > nfe0: Ethernet address: 6c:f0:49:d5:6f:6a > atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xfe02c000-0xfe02cfff irq 21 at device 8.0 on pci0 > ata2: at channel 0 on atapci1 > ata3: at channel 1 on atapci1 > atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xfe02b000-0xfe02bfff irq 22 at device 8.1 on pci0 > ata4: at channel 0 on atapci2 > ata5: at channel 1 on atapci2 > pcib2: at device 9.0 on pci0 > pci2: on pcib2 > ath0: mem 0xfdec0000-0xfdedffff irq 16 at device 0.0 on pci2 > ar9300_set_stub_functions: setting stub functions > ar9300_set_stub_functions: setting stub functions > ar9300_attach: calling ar9300_hw_attach > ar9300_hw_attach: calling ar9300_eeprom_attach > ar9300_flash_map: unimplemented for now > Restoring Cal data from DRAM > Restoring Cal data from EEPROM > ar9300_hw_attach: ar9300_eeprom_attach returned 0 > ath0: RX status length: 48 > ath0: RX buffer size: 4096 > ath0: TX descriptor length: 128 > ath0: TX status length: 36 > ath0: TX buffers per descriptor: 4 > ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0 > ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries > ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries > ath0: [HT] enabling HT modes > ath0: [HT] enabling short-GI in 20MHz mode > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 3 RX streams; 3 TX streams > ath0: AR9380 mac 448.3 RF5110 phy 0.0 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 > pcib3: at device 11.0 on pci0 > pci3: on pcib3 > ahci0: port 0x9c00-0x9c07,0x9800-0x9803,0x9400-0x9407,0x9000-0x9003,0x8c00-0x8c0f mem 0xfdcff000-0xfdcff7ff irq 16 at device 0.0 on pci3 > ahci0: AHCI v1.20 with 8 6Gbps ports, Port Multiplier not supported > ahcich0: at channel 0 on ahci0 > ahcich1: at channel 1 on ahci0 > ahcich2: at channel 2 on ahci0 > ahcich3: at channel 3 on ahci0 > ahcich4: at channel 4 on ahci0 > ahcich5: at channel 5 on ahci0 > ahcich6: at channel 6 on ahci0 > ahcich7: at channel 7 on ahci0 > atapci3: port 0x8800-0x8807,0x8400-0x8403,0x8000-0x8007,0x7c00-0x7c03,0x7800-0x780f mem 0xfdcfe000-0xfdcfe00f irq 16 at device 0.1 on pci3 > vgapci0: mem 0xfb000000-0xfbffffff,0xd0000000-0xdfffffff,0xfc000000-0xfcffffff irq 23 at device 13.0 on pci0 > amdtemp0: on hostb3 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > ppc0: port 0x378-0x37f irq 7 on acpi0 > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > ppbus0: on ppc0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > orm0: at iomem 0xd0000-0xd2fff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > acpi_throttle0: on cpu0 > hwpstate0: on cpu0 > acpi_throttle1: on cpu1 > acpi_throttle1: failed to attach P_CNT > device_attach: acpi_throttle1 attach returned 6 > acpi_throttle2: on cpu2 > acpi_throttle2: failed to attach P_CNT > device_attach: acpi_throttle2 attach returned 6 > acpi_throttle3: on cpu3 > acpi_throttle3: failed to attach P_CNT > device_attach: acpi_throttle3 attach returned 6 > ZFS filesystem version: 5 > ZFS storage pool version: features support (5000) > Timecounters tick every 1.000 msec > hdacc0: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > pcm0: at nid 20 and 24,26 on hdaa0 > pcm1: at nid 27 and 25 on hdaa0 > pcm2: at nid 30 and 31 on hdaa0 > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen1.1: at usbus1 > uhub0: on usbus1 > ugen0.1: at usbus0 > uhub1: on usbus0 > uhub1: 10 ports with 10 removable, self powered > uhub0: 10 ports with 10 removable, self powered > ugen0.2: at usbus0 > ukbd0: on usbus0 > kbd2 at ukbd0 > ahcich7: Poll timeout on slot 0 port 0 > ahcich7: is 00000000 cs 00000001 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 10000016 > (aprobe1:ahcich7:0:0:0): NOP. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 > (aprobe1:ahcich7:0:0:0): CAM status: Command timeout > (aprobe1:ahcich7:0:0:0): Error 5, Retries exhausted > ada0 at ata2 bus 0 scbus2 target 0 lun 0 > ada0: ATA-8 SATA 1.x device > ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) > ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) > ada1 at ata3 bus 0 scbus3 target 0 lun 0 > ada1: ATA-7 SATA 1.x device > ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) > ada1: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) > ada2 at ata4 bus 0 scbus4 target 0 lun 0 > ada2: ATA-8 SATA 3.x device > ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada3 at ata5 bus 0 scbus5 target 0 lun 0 > ada3: ATA-8 SATA 3.x device > ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > pass0 at ata0 bus 0 scbus0 target 0 lun 0 > pass0: Removable CD-ROM SCSI-0 device > pass0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) > pass5 at ahcich1 bus 0 scbus7 target 0 lun 0 > pass5: Removable CD-ROM SCSI-0 device > pass5: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) > SMP: AP CPU #1 Launched! > SMP: AP CPU #2 Launched! > SMP: AP CPU #3 Launched! > Timecounter "TSC-low" frequency 1456658327 Hz quality 800 > WARNING: WITNESS option enabled, expect reduced performance. > GEOM_MIRROR: Device mirror/swap launched (2/2). > Trying to mount root from zfs:zroot []... > ar9300_Stub_GetSlotTime: called > ar9300_Stub_GetSlotTime: called > ar9300_Stub_GetCTSTimeout: called > ar9300_Stub_GetCTSTimeout: called > ar9300_Stub_GetAntennaSwitch: called > ar9300_Stub_GetAntennaSwitch: called > wlan0: Ethernet address: 64:70:02:18:6d:95 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 > ums0: on usbus0 > ums0: 16 buttons and [XYZT] coordinates ID=2 > uhid0: on usbus0 > ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to deny, logging disabled > ar9300_reset[4254]: ar9300_stop_dma_receive failed > ath0: ath_edma_recv_proc_queue: handled npkts 0 ngood 0 From owner-freebsd-wireless@FreeBSD.ORG Sat Mar 16 11:41:38 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C2778FD0 for ; Sat, 16 Mar 2013 11:41:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx1.freebsd.org (Postfix) with ESMTP id 81BA5B0D for ; Sat, 16 Mar 2013 11:41:38 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id wy12so4891990pbc.21 for ; Sat, 16 Mar 2013 04:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=2Y9tz0BD3m8siBHKu3qUpd5FZyuxViht6klKaqYmhsA=; b=SrPGG+qHm518Sg6LQ1NE4+hn+Sa1jUwgKKfKbl1yCCaVG6P3GUNXOlllxmU/227VEE RpOr9yhe48sz/5Zq6DTJEMHgMGJHErG4GUqB5Fa2sXubWqvX/I4NCEUgS8qcgCzN0MMS +F/8K/uqO5whUm5xVJEYaMmDvv29HvZS+SXb0I3zb1NxdKfwyPMN3eE+1Iag6mmrWBAf U1ywFzDgy9HtgH5go+xYK06AEjcDvhdqTcP/oTm+r7r6VdF3AZ9UEanfK6KnB5sZ7DGm WAWK/QfaoEoQkoc5QWqFhptDTIRxfa6n3JWNmJAbXE8KUQDHP3IkWiqoTCehqFMXA4i1 Tcbw== MIME-Version: 1.0 X-Received: by 10.68.47.39 with SMTP id a7mr23811188pbn.155.1363434098021; Sat, 16 Mar 2013 04:41:38 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.39.69 with HTTP; Sat, 16 Mar 2013 04:41:37 -0700 (PDT) Date: Sat, 16 Mar 2013 04:41:37 -0700 X-Google-Sender-Auth: IuQaWlkKLpc7xAae-t00ZCCAl94 Message-ID: Subject: [ath] If you're running -HEAD, please update From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 16 Mar 2013 11:41:38 -0000 Hi all, If you're running -HEAD and ath(4) devices, then please update. I've fixed a handful of corner case bugs recently: * The pre-EDMA chips require keeping the last TX descriptor processed around until the next is processed - and it needs to be done per-QCU, not globally. This fixes some traffic stalls. * The EDMA chips likely require the above too in special cases (read CABQ processing) but as I don't yet support AR9380 in hostap mode, I'm not yet worried about this. * .. and I then implemented missing locking for the above. Tsk me. * I fixed a TX buffer leak in the aggregation cleanup path (ie, when a TID that's currently doing aggregation is downgraded to non-aggregation.) * I fixed a TID traffic queue depth bug, again in the aggregation cleanup path. Thanks to Rui for being really patient with me whilst I've been tracking down these issues and providing me with lots of debug logs There's still a few odd corner cases to do with BAR handling and queue pause/unpause but now that I've fixed the above issues (which were causing hangs as well :) it shouldn't be difficult to track down the root cause. Adrian