[PATCH] ath(4) -- AR2413 and AR5413

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] ath(4) -- AR2413 and AR5413

Dmitri Alenitchev
Please, test.
D-Link DWL-G630 (H/W Ver.: D1, F/W Ver.: 4.10) work.

Index: dev/pci/pcidevs
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1143
diff -u -p -r1.1143 pcidevs
--- dev/pci/pcidevs 18 Sep 2006 05:48:33 -0000 1.1143
+++ dev/pci/pcidevs 18 Sep 2006 19:12:38 -0000
@@ -973,6 +973,8 @@ product ATHEROS AR5210 0x0007 AR5210
 product ATHEROS AR5311 0x0011 AR5211
 product ATHEROS AR5211 0x0012 AR5211
 product ATHEROS AR5212 0x0013 AR5212
+product ATHEROS AR2413 0x001a AR2413
+product ATHEROS AR5413 0x001b  AR5413
 product ATHEROS AR5424 0x001c AR5424
 product ATHEROS AR5210_AP 0x0207 AR5210 (Early)
 product ATHEROS AR5212_IBM 0x1014 AR5212 (IBM MiniPCI)
Index: dev/pci/pcidevs.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1143
diff -u -p -r1.1143 pcidevs.h
--- dev/pci/pcidevs.h 18 Sep 2006 05:51:54 -0000 1.1143
+++ dev/pci/pcidevs.h 18 Sep 2006 19:13:13 -0000
@@ -978,6 +978,8 @@
 #define PCI_PRODUCT_ATHEROS_AR5311 0x0011 /* AR5211 */
 #define PCI_PRODUCT_ATHEROS_AR5211 0x0012 /* AR5211 */
 #define PCI_PRODUCT_ATHEROS_AR5212 0x0013 /* AR5212 */
+#define PCI_PRODUCT_ATHEROS_AR2413 0x001a /* AR2413 */
+#define PCI_PRODUCT_ATHEROS_AR5413 0x001b /* AR5413 */
 #define PCI_PRODUCT_ATHEROS_AR5424 0x001c /* AR5424 */
 #define PCI_PRODUCT_ATHEROS_AR5210_AP 0x0207 /* AR5210 (Early) */
 #define PCI_PRODUCT_ATHEROS_AR5212_IBM 0x1014 /* AR5212 (IBM MiniPCI) */
Index: dev/pci/pcidevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1140
diff -u -p -r1.1140 pcidevs_data.h
--- dev/pci/pcidevs_data.h 18 Sep 2006 05:51:54 -0000 1.1140
+++ dev/pci/pcidevs_data.h 18 Sep 2006 19:13:50 -0000
@@ -2391,6 +2391,14 @@ static const struct pci_known_product pc
     "AR5212",
  },
  {
+    PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2413,
+    "AR2413",
+ },
+ {
+    PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5413,
+    "AR5413",
+ },
+ {
     PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5424,
     "AR5424",
  },
Index: dev/ic/ar5xxx.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/ar5xxx.c,v
retrieving revision 1.33
diff -u -p -r1.33 ar5xxx.c
--- dev/ic/ar5xxx.c 5 Jun 2006 15:21:43 -0000 1.33
+++ dev/ic/ar5xxx.c 18 Sep 2006 19:13:55 -0000
@@ -55,6 +55,10 @@ static const struct {
     ar5k_ar5211_attach },
  { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212,
     ar5k_ar5212_attach },
+ { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2413,
+    ar5k_ar5212_attach },
+ { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5413,
+    ar5k_ar5212_attach },
  { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212_DEFAULT,
     ar5k_ar5212_attach },
  { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212_FPGA,
Index: dev/ic/ar5xxx.h
===================================================================
RCS file: /cvs/src/sys/dev/ic/ar5xxx.h,v
retrieving revision 1.32
diff -u -p -r1.32 ar5xxx.h
--- dev/ic/ar5xxx.h 23 Jun 2006 21:53:01 -0000 1.32
+++ dev/ic/ar5xxx.h 18 Sep 2006 19:14:06 -0000
@@ -1224,8 +1224,8 @@ struct ar5k_srev_name {
 #define AR5K_SREV_RAD_5112 0x30
 #define AR5K_SREV_RAD_5112A 0x35
 #define AR5K_SREV_RAD_2112 0x40
-#define AR5K_SREV_RAD_2112A 0x45
-#define AR5K_SREV_RAD_UNSUPP 0x50
+#define AR5K_SREV_RAD_2112A 0x50
+#define AR5K_SREV_RAD_UNSUPP 0x60
 
 /*
  * Misc defines

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] ath(4) -- AR2413 and AR5413

Reyk Floeter-2
hi,

i'm currently working on support for some newer chipsets. did you also
test the 11a patch i sent to tech@ some days ago?

On Mon, Sep 18, 2006 at 11:25:24PM +0400, Dmitri Alenitchev wrote:
> Please, test.
> D-Link DWL-G630 (H/W Ver.: D1, F/W Ver.: 4.10) work.
>

please also send a dmesg (or just the ath line).

reyk

> Index: dev/pci/pcidevs
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/pcidevs,v
> retrieving revision 1.1143
> diff -u -p -r1.1143 pcidevs
> --- dev/pci/pcidevs 18 Sep 2006 05:48:33 -0000 1.1143
> +++ dev/pci/pcidevs 18 Sep 2006 19:12:38 -0000
> @@ -973,6 +973,8 @@ product ATHEROS AR5210 0x0007 AR5210
>  product ATHEROS AR5311 0x0011 AR5211
>  product ATHEROS AR5211 0x0012 AR5211
>  product ATHEROS AR5212 0x0013 AR5212
> +product ATHEROS AR2413 0x001a AR2413
> +product ATHEROS AR5413 0x001b  AR5413
>  product ATHEROS AR5424 0x001c AR5424
>  product ATHEROS AR5210_AP 0x0207 AR5210 (Early)
>  product ATHEROS AR5212_IBM 0x1014 AR5212 (IBM MiniPCI)
> Index: dev/pci/pcidevs.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
> retrieving revision 1.1143
> diff -u -p -r1.1143 pcidevs.h
> --- dev/pci/pcidevs.h 18 Sep 2006 05:51:54 -0000 1.1143
> +++ dev/pci/pcidevs.h 18 Sep 2006 19:13:13 -0000
> @@ -978,6 +978,8 @@
>  #define PCI_PRODUCT_ATHEROS_AR5311 0x0011 /* AR5211 */
>  #define PCI_PRODUCT_ATHEROS_AR5211 0x0012 /* AR5211 */
>  #define PCI_PRODUCT_ATHEROS_AR5212 0x0013 /* AR5212 */
> +#define PCI_PRODUCT_ATHEROS_AR2413 0x001a /* AR2413 */
> +#define PCI_PRODUCT_ATHEROS_AR5413 0x001b /* AR5413 */
>  #define PCI_PRODUCT_ATHEROS_AR5424 0x001c /* AR5424 */
>  #define PCI_PRODUCT_ATHEROS_AR5210_AP 0x0207 /* AR5210 (Early) */
>  #define PCI_PRODUCT_ATHEROS_AR5212_IBM 0x1014 /* AR5212 (IBM MiniPCI) */
> Index: dev/pci/pcidevs_data.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
> retrieving revision 1.1140
> diff -u -p -r1.1140 pcidevs_data.h
> --- dev/pci/pcidevs_data.h 18 Sep 2006 05:51:54 -0000 1.1140
> +++ dev/pci/pcidevs_data.h 18 Sep 2006 19:13:50 -0000
> @@ -2391,6 +2391,14 @@ static const struct pci_known_product pc
>      "AR5212",
>   },
>   {
> +    PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2413,
> +    "AR2413",
> + },
> + {
> +    PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5413,
> +    "AR5413",
> + },
> + {
>      PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5424,
>      "AR5424",
>   },
> Index: dev/ic/ar5xxx.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/ar5xxx.c,v
> retrieving revision 1.33
> diff -u -p -r1.33 ar5xxx.c
> --- dev/ic/ar5xxx.c 5 Jun 2006 15:21:43 -0000 1.33
> +++ dev/ic/ar5xxx.c 18 Sep 2006 19:13:55 -0000
> @@ -55,6 +55,10 @@ static const struct {
>      ar5k_ar5211_attach },
>   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212,
>      ar5k_ar5212_attach },
> + { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2413,
> +    ar5k_ar5212_attach },
> + { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5413,
> +    ar5k_ar5212_attach },
>   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212_DEFAULT,
>      ar5k_ar5212_attach },
>   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212_FPGA,
> Index: dev/ic/ar5xxx.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/ar5xxx.h,v
> retrieving revision 1.32
> diff -u -p -r1.32 ar5xxx.h
> --- dev/ic/ar5xxx.h 23 Jun 2006 21:53:01 -0000 1.32
> +++ dev/ic/ar5xxx.h 18 Sep 2006 19:14:06 -0000
> @@ -1224,8 +1224,8 @@ struct ar5k_srev_name {
>  #define AR5K_SREV_RAD_5112 0x30
>  #define AR5K_SREV_RAD_5112A 0x35
>  #define AR5K_SREV_RAD_2112 0x40
> -#define AR5K_SREV_RAD_2112A 0x45
> -#define AR5K_SREV_RAD_UNSUPP 0x50
> +#define AR5K_SREV_RAD_2112A 0x50
> +#define AR5K_SREV_RAD_UNSUPP 0x60
>  
>  /*
>   * Misc defines

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] ath(4) -- AR2413 and AR5413

Reyk Floeter-2
ok, i just commited the 11a bits, but please send me your dmesg, like

ath0 at pci2 dev 2 function 0 "Atheros AR5212 (IBM MiniPCI)" rev 0x01: irq 11
ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR1W, address 00:05:4e:45:d3:b8

On Tue, Sep 19, 2006 at 09:53:04AM +0200, Reyk Floeter wrote:

> i'm currently working on support for some newer chipsets. did you also
> test the 11a patch i sent to tech@ some days ago?
>
> On Mon, Sep 18, 2006 at 11:25:24PM +0400, Dmitri Alenitchev wrote:
> > Please, test.
> > D-Link DWL-G630 (H/W Ver.: D1, F/W Ver.: 4.10) work.
> >
>
> please also send a dmesg (or just the ath line).
>
> reyk
>
> > Index: dev/pci/pcidevs
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/pci/pcidevs,v
> > retrieving revision 1.1143
> > diff -u -p -r1.1143 pcidevs
> > --- dev/pci/pcidevs 18 Sep 2006 05:48:33 -0000 1.1143
> > +++ dev/pci/pcidevs 18 Sep 2006 19:12:38 -0000
> > @@ -973,6 +973,8 @@ product ATHEROS AR5210 0x0007 AR5210
> >  product ATHEROS AR5311 0x0011 AR5211
> >  product ATHEROS AR5211 0x0012 AR5211
> >  product ATHEROS AR5212 0x0013 AR5212
> > +product ATHEROS AR2413 0x001a AR2413
> > +product ATHEROS AR5413 0x001b  AR5413
> >  product ATHEROS AR5424 0x001c AR5424
> >  product ATHEROS AR5210_AP 0x0207 AR5210 (Early)
> >  product ATHEROS AR5212_IBM 0x1014 AR5212 (IBM MiniPCI)
> > Index: dev/pci/pcidevs.h
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
> > retrieving revision 1.1143
> > diff -u -p -r1.1143 pcidevs.h
> > --- dev/pci/pcidevs.h 18 Sep 2006 05:51:54 -0000 1.1143
> > +++ dev/pci/pcidevs.h 18 Sep 2006 19:13:13 -0000
> > @@ -978,6 +978,8 @@
> >  #define PCI_PRODUCT_ATHEROS_AR5311 0x0011 /* AR5211 */
> >  #define PCI_PRODUCT_ATHEROS_AR5211 0x0012 /* AR5211 */
> >  #define PCI_PRODUCT_ATHEROS_AR5212 0x0013 /* AR5212 */
> > +#define PCI_PRODUCT_ATHEROS_AR2413 0x001a /* AR2413 */
> > +#define PCI_PRODUCT_ATHEROS_AR5413 0x001b /* AR5413 */
> >  #define PCI_PRODUCT_ATHEROS_AR5424 0x001c /* AR5424 */
> >  #define PCI_PRODUCT_ATHEROS_AR5210_AP 0x0207 /* AR5210 (Early) */
> >  #define PCI_PRODUCT_ATHEROS_AR5212_IBM 0x1014 /* AR5212 (IBM MiniPCI) */
> > Index: dev/pci/pcidevs_data.h
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
> > retrieving revision 1.1140
> > diff -u -p -r1.1140 pcidevs_data.h
> > --- dev/pci/pcidevs_data.h 18 Sep 2006 05:51:54 -0000 1.1140
> > +++ dev/pci/pcidevs_data.h 18 Sep 2006 19:13:50 -0000
> > @@ -2391,6 +2391,14 @@ static const struct pci_known_product pc
> >      "AR5212",
> >   },
> >   {
> > +    PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2413,
> > +    "AR2413",
> > + },
> > + {
> > +    PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5413,
> > +    "AR5413",
> > + },
> > + {
> >      PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5424,
> >      "AR5424",
> >   },
> > Index: dev/ic/ar5xxx.c
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/ic/ar5xxx.c,v
> > retrieving revision 1.33
> > diff -u -p -r1.33 ar5xxx.c
> > --- dev/ic/ar5xxx.c 5 Jun 2006 15:21:43 -0000 1.33
> > +++ dev/ic/ar5xxx.c 18 Sep 2006 19:13:55 -0000
> > @@ -55,6 +55,10 @@ static const struct {
> >      ar5k_ar5211_attach },
> >   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212,
> >      ar5k_ar5212_attach },
> > + { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2413,
> > +    ar5k_ar5212_attach },
> > + { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5413,
> > +    ar5k_ar5212_attach },
> >   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212_DEFAULT,
> >      ar5k_ar5212_attach },
> >   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR5212_FPGA,
> > Index: dev/ic/ar5xxx.h
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/ic/ar5xxx.h,v
> > retrieving revision 1.32
> > diff -u -p -r1.32 ar5xxx.h
> > --- dev/ic/ar5xxx.h 23 Jun 2006 21:53:01 -0000 1.32
> > +++ dev/ic/ar5xxx.h 18 Sep 2006 19:14:06 -0000
> > @@ -1224,8 +1224,8 @@ struct ar5k_srev_name {
> >  #define AR5K_SREV_RAD_5112 0x30
> >  #define AR5K_SREV_RAD_5112A 0x35
> >  #define AR5K_SREV_RAD_2112 0x40
> > -#define AR5K_SREV_RAD_2112A 0x45
> > -#define AR5K_SREV_RAD_UNSUPP 0x50
> > +#define AR5K_SREV_RAD_2112A 0x50
> > +#define AR5K_SREV_RAD_UNSUPP 0x60
> >  
> >  /*
> >   * Misc defines

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] ath(4) -- AR2413 and AR5413

Dmitri Alenitchev
In reply to this post by Reyk Floeter-2
Hello.

Reyk Floeter wrote:
> hi,
>
> i'm currently working on support for some newer chipsets. did you also
> test the 11a patch i sent to tech@ some days ago?

I'm recompile kernel right now. I have some IDs for AR5212 compatible                                                                                          
devices, but only one card for testing.                                                                                                                        
                                                                                                                                                               
> On Mon, Sep 18, 2006 at 11:25:24PM +0400, Dmitri Alenitchev wrote:
> > Please, test.
> > D-Link DWL-G630 (H/W Ver.: D1, F/W Ver.: 4.10) work.
> >
>
> please also send a dmesg (or just the ath line).

ath0 at cardbus0 dev 0 function 0 "Atheros Communications, Inc., AR5001-0000-0000, Wireless LAN Reference Card": irq 10
ath0: AR5213 7.8 phy 4.5 rf2112a 5.6, FCC2A*, address 00:13:46:6e:a4:ef