On Mon, May 22, 2017 at 01:13:34PM +0800, Kevin Lo wrote:
> Hi,
>
> The diff below adds D-Link DWA-525 rev A2 to ral(4) which works fine on amd64
> and update ral(4) manpage.
This could also add other missing ids.
RALINK
0x3390 (RT33XX)
0x359f (RT35XX)
0x5362 (RT53XX)
EDIMAX
0x7711 (RT35XX)
0x7722 (RT35XX)
You don't need to change $Mdocdate$, that gets expanded automatically.
>
> # dmesg |grep ral0
> ral0 at pci3 dev 1 function 0 "Ralink RT5360" rev 0x00: apic 2 int 16,
> address f8:e9:03:ae:08:c4
> ral0: MAC/BBP RT5392 (rev 0x0223), RF RT5360 (MIMO 1T1R)
>
> # ifconfig ral0
> ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr f8:e9:03:ae:08:c4
> index 4 priority 4 llprio 3
> groups: wlan egress
> media: IEEE802.11 autoselect (DS2 mode 11g)
> status: active
> ieee80211: nwid wsl chan 6 bssid 00:0e:8e:75:14:98 -7dBm wpakey
> 0xa59c2e8f35d4276057224f20c93b023a87c53ed619005772ff1636311b3bfca3 wpaprotos
> wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
> inet 10.0.1.3 netmask 0xffffff00 broadcast 10.0.1.255
>
> Index: share/man/man4/ral.4
> ===================================================================
> RCS file: /cvs/src/share/man/man4/ral.4,v
> retrieving revision 1.110
> diff -u -p -u -p -r1.110 ral.4
> --- share/man/man4/ral.4 17 Aug 2016 11:52:29 -0000 1.110
> +++ share/man/man4/ral.4 22 May 2017 05:10:41 -0000
> @@ -14,7 +14,7 @@
> .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
> .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
> .\"
> -.Dd $Mdocdate: August 17 2016 $
> +.Dd $Mdocdate: May 22 2017 $
> .Dt RAL 4
> .Os
> .Sh NAME
> @@ -160,6 +160,7 @@ CNet CWP-854.
> Compex WLP54G.
> Conceptronic C54Ri.
> Corega CG-WLPCI54GL.
> +D-Link DWA-525 rev A2.
> Digitus DN-7006G-RA.
> Dynalink WLG25PCI.
> E-Tech WGPI02.
> Index: sys/dev/ic/rt2860.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/rt2860.c,v
> retrieving revision 1.92
> diff -u -p -u -p -r1.92 rt2860.c
> --- sys/dev/ic/rt2860.c 22 Jan 2017 10:17:38 -0000 1.92
> +++ sys/dev/ic/rt2860.c 22 May 2017 05:10:43 -0000
> @@ -3106,6 +3106,7 @@ rt2860_get_rf(uint16_t rev)
> case RT3070_RF_3052: return "RT3052";
> case RT3070_RF_3320: return "RT3320";
> case RT3070_RF_3053: return "RT3053";
> + case RT5390_RF_5360: return "RT5360";
> case RT5390_RF_5390: return "RT5390";
> case RT5390_RF_5392: return "RT5392";
> default: return "unknown";
> Index: sys/dev/ic/rt2860reg.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/rt2860reg.h,v
> retrieving revision 1.33
> diff -u -p -u -p -r1.33 rt2860reg.h
> --- sys/dev/ic/rt2860reg.h 17 Aug 2016 11:50:52 -0000 1.33
> +++ sys/dev/ic/rt2860reg.h 22 May 2017 05:10:44 -0000
> @@ -925,6 +925,7 @@ struct rt2860_rxwi {
> #define RT3070_RF_3320 0x000b /* 1T1R */
> #define RT3070_RF_3053 0x000d /* dual-band 3T3R */
> #define RT5592_RF_5592 0x000f /* dual-band 2T2R */
> +#define RT5390_RF_5360 0x5360 /* 1T1R */
> #define RT5390_RF_5370 0x5370 /* 1T1R */
> #define RT5390_RF_5372 0x5372 /* 2T2R */
> #define RT5390_RF_5390 0x5390 /* 1T1R */
> Index: sys/dev/pci/if_ral_pci.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/if_ral_pci.c,v
> retrieving revision 1.25
> diff -u -p -u -p -r1.25 if_ral_pci.c
> --- sys/dev/pci/if_ral_pci.c 17 Aug 2016 11:50:52 -0000 1.25
> +++ sys/dev/pci/if_ral_pci.c 22 May 2017 05:10:44 -0000
> @@ -136,6 +136,7 @@ const struct pci_matchid ral_pci_devices
> { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT3562 },
> { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT3592 },
> { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT3593 },
> + { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT5360 },
> { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT5390 },
> { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT5392 },
> { PCI_VENDOR_RALINK, PCI_PRODUCT_RALINK_RT5390_1 },
> Index: sys/dev/pci/pcidevs
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/pcidevs,v
> retrieving revision 1.1818
> diff -u -p -u -p -r1.1818 pcidevs
> --- sys/dev/pci/pcidevs 17 May 2017 05:00:17 -0000 1.1818
> +++ sys/dev/pci/pcidevs 22 May 2017 05:10:46 -0000
> @@ -6560,6 +6560,7 @@ product RALINK RT3298 0x3298 Bluetooth
> product RALINK RT3562 0x3562 RT3562
> product RALINK RT3592 0x3592 RT3592
> product RALINK RT3593 0x3593 RT3593
> +product RALINK RT5360 0x5360 RT5360
> product RALINK RT5390 0x5390 RT5390
> product RALINK RT5392 0x5392 RT5392
> product RALINK RT5390_1 0x539a RT5390
>