Bug 256092 - run(4): Add support for DLINK DWA-130 rev F1
Summary: run(4): Add support for DLINK DWA-130 rev F1
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Chagin
URL:
Keywords: easy, feature
Depends on:
Blocks:
 
Reported: 2021-05-23 00:56 UTC by Francois Briere
Modified: 2021-06-06 11:27 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback? (dchagin)
koobs: mfc-stable13?
koobs: mfc-stable12?
koobs: mfc-stable11?


Attachments
diff (972 bytes, patch)
2021-05-23 00:56 UTC, Francois Briere
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Briere 2021-05-23 00:56:57 UTC
Created attachment 225184 [details]
diff

Add support for the D-LINK N300 (DWA-130 Rev. F1)

run0 on uhub3
run0: <1.0> on usbus1
run0: MAC/BBP RT5392 (rev 0x0223), RF RT5372 (MIMO 2T2R), address 28:3b:82:20:db:98
run0: [HT] Enabling 802.11n


 ~/ ifconfig wlan0
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 28:3b:82:20:db:98
        groups: wlan
        ssid "" channel 1 (2412 MHz 11b)
        regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
        scanvalid 60 wme bintval 0
        parent interface: run0
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Best regards.
fb
Comment 1 Dmitry Chagin freebsd_committer 2021-05-23 09:51:52 UTC
(In reply to Francois Briere from comment #0)

 ~/ ifconfig wlan0
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 28:3b:82:20:db:98
        groups: wlan
        ssid "" channel 1 (2412 MHz 11b)
        regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
        scanvalid 60 wme bintval 0
        parent interface: run0
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier

^^^^^^^^^^ seems that it doesn't works
Comment 2 Francois Briere 2021-05-23 17:05:43 UTC
(In reply to Dmitry Chagin from comment #1)


 Sorry, I was not connected to any network but it's working.

--
Created wlan(4) interfaces: wlan0.
Starting wpa_supplicant.
Starting dhclient.
wlan0: no link ..... got link
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 192.168.2.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.2.1
bound to 192.168.2.248 -- renewal in 129600 seconds.
--

wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 28:3b:82:20:db:98
        inet 192.168.2.248 netmask 0xffffff00 broadcast 192.168.2.255
        groups: wlan
        ssid BELLXXX channel 11 (2462 MHz 11g ht/20) bssid 3c:17:10:22:2a:dc
        regdomain FCC country US authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
        protmode CTS ht20 ampdulimit 64k ampdudensity 4 -stbc -ldpc -uapsd wme
        roaming MANUAL
        parent interface: run0
        media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Comment 3 commit-hook freebsd_committer 2021-05-23 18:33:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8746bc91873430d977b09bcc3fbd4d1b417a5a57

commit 8746bc91873430d977b09bcc3fbd4d1b417a5a57
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-05-23 18:31:51 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-05-23 18:31:51 +0000

    run(4): add support for DLINK DWA-130 rev F1 wireless adaptor.

    PR:             256092
    Submitted by:   Francois Briere <purplefiasco at gmail.com>
    MFC After:      2 weeks

 share/man/man4/run.4      | 1 +
 sys/dev/usb/usbdevs       | 1 +
 sys/dev/usb/wlan/if_run.c | 1 +
 3 files changed, 3 insertions(+)
Comment 4 commit-hook freebsd_committer 2021-06-06 11:23:17 UTC
A commit in branch stable/12 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b86230e64a837edbc07b033197365fab92bce9a0

commit b86230e64a837edbc07b033197365fab92bce9a0
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-05-23 18:31:51 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-06-06 11:21:10 +0000

    run(4): add support for DLINK DWA-130 rev F1 wireless adaptor.

    PR:             256092
    Submitted by:   Francois Briere <purplefiasco at gmail.com>

    (cherry picked from commit 8746bc91873430d977b09bcc3fbd4d1b417a5a57)

 share/man/man4/run.4      | 1 +
 sys/dev/usb/usbdevs       | 1 +
 sys/dev/usb/wlan/if_run.c | 1 +
 3 files changed, 3 insertions(+)
Comment 5 commit-hook freebsd_committer 2021-06-06 11:24:17 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=195f47fdb6c8fc6592b0b324e3891ba03ad58a5d

commit 195f47fdb6c8fc6592b0b324e3891ba03ad58a5d
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-05-23 18:31:51 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-06-06 11:23:43 +0000

    run(4): add support for DLINK DWA-130 rev F1 wireless adaptor.

    PR:             256092
    Submitted by:   Francois Briere <purplefiasco at gmail.com>

    (cherry picked from commit 8746bc91873430d977b09bcc3fbd4d1b417a5a57)

 share/man/man4/run.4      | 1 +
 sys/dev/usb/usbdevs       | 1 +
 sys/dev/usb/wlan/if_run.c | 1 +
 3 files changed, 3 insertions(+)
Comment 6 Dmitry Chagin freebsd_committer 2021-06-06 11:27:19 UTC
Merged, Thanks!