Giter Site home page Giter Site logo

mt7921's Introduction

Backport MT7921 driver

Install MT7921 driver from kernel 5.18.19 in older kernels.

How to install

$ sudo apt install build-essential
$ make
$ sudo make install

How to uninstall

$ sudo make uninstall

Note: Firmware for MT7621 will not be uninstalled.

Tested kernels

  1. Kernel 5.15.0-56-generic (Linux Mint 20.3 Una)
  2. Kernel 5.16.17-sun50iw6 (Orange Pi 3.0.8 Orangepi3-lts Ubuntu 22.04)

mt7921's People

Contributors

astsam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

32boy my-360

mt7921's Issues

Build fails on Orange pi 5 / armbian

make -C /lib/modules/5.10.110-rockchip-rk3588//build/ M=/home/dmarkey/mt7921
  CC [M]  /home/dmarkey/mt7921/mt76/mt76x0/usb.o
In file included from /home/dmarkey/mt7921/mt76/mt76x0/../mt76x02.h:12,
                 from /home/dmarkey/mt7921/mt76/mt76x0/mt76x0.h:20,
                 from /home/dmarkey/mt7921/mt76/mt76x0/usb.c:10:
/home/dmarkey/mt7921/mt76/mt76x0/../mt76.h:1192:38: warning: 'struct cfg80211_sar_specs' declared inside parameter list will not be visible outside of this definition or declaration
error, forbidden warning:mt76.h:1192
 1192 |                         const struct cfg80211_sar_specs *sar);
      |                                      ^~~~~~~~~~~~~~~~~~
In file included from /home/dmarkey/mt7921/mt76/mt76x0/usb.c:10:
/home/dmarkey/mt7921/mt76/mt76x0/mt76x0.h:53:39: warning: 'struct cfg80211_sar_specs' declared inside parameter list will not be visible outside of this definition or declaration
error, forbidden warning:mt76x0.h:53
   53 |                          const struct cfg80211_sar_specs *sar);
      |                                       ^~~~~~~~~~~~~~~~~~
/home/dmarkey/mt7921/mt76/mt76x0/usb.c:144:10: error: 'const struct ieee80211_ops' has no member named 'set_sar_specs'
  144 |         .set_sar_specs = mt76x0_set_sar_specs,
      |          ^~~~~~~~~~~~~
/home/dmarkey/mt7921/mt76/mt76x0/usb.c:144:26: error: initialization of 'int (*)(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_channel *, int,  enum ieee80211_roc_type)' from incompatible pointer type 'int (*)(struct ieee80211_hw *, const struct cfg80211_sar_specs *)' [-Werror=incompatible-pointer-types]
  144 |         .set_sar_specs = mt76x0_set_sar_specs,
      |                          ^~~~~~~~~~~~~~~~~~~~
/home/dmarkey/mt7921/mt76/mt76x0/usb.c:144:26: note: (near initialization for 'mt76x0u_ops.remain_on_channel')
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:273: /home/dmarkey/mt7921/mt76/mt76x0/usb.o] Error 1
make[3]: *** [scripts/Makefile.build:516: /home/dmarkey/mt7921/mt76/mt76x0] Error 2
make[2]: *** [scripts/Makefile.build:516: /home/dmarkey/mt7921/mt76] Error 2
make[1]: *** [Makefile:1920: /home/dmarkey/mt7921] Error 2
make: *** [Makefile:35: default] Error 2

5.10.110-rockchip-rk3588

Any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.