Giter Club home page Giter Club logo

lwfinger-rtlwifi_new's Introduction

rtlwifi_new

A repo for the newest Realtek rtlwifi codes.

This code will build on any kernel 4.2 and newer as long as the distro has not modified any of the kernel APIs. IF YOU RUN UBUNTU, YOU CAN BE ASSURED THAT THE APIs HAVE CHANGED. NO, I WILL NOT MODIFY THE SOURCE FOR YOU. YOU ARE ON YOUR OWN!!!!!

Note: If your kernel is 4.17 or newer, AND your card is not an RTL8723DE, then you should NOT be using the external driver. The built-in one is the same.

It includes the following drivers:

rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, rtl8821ae, rtl8822be and rtl8723de.

Installation instruction

You can find YOUR WIRELESS DRIVER CODE using lspci | grep Wireless or lspci | grep Network. Afterwards, execute the following lines of codes in your shell:

You will need to install "make", "gcc", "kernel headers", "kernel build essentials", and "git".

If you are running Ubuntu, then

sudo apt-get install linux-headers-generic build-essential git

Please note the first paragraph above.

For all distros:

git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new

Note : if your kernal version is 5.2.0 / Kernel modules: rtwpci and driver is RTL8822BE then checkout rtw88 branch else skip this step

git checkout origin/rtw88 -b rtw88
make
sudo make install
sudo modprobe -r <<YOUR WIRELESS DRIVER CODE>>
sudo modprobe <<YOUR WIRELESS DRIVER CODE>>

Optional configuration

If it turns out that your system needs one of the configuration options, then do the following:

sudo vim /etc/modprobe.d/<<YOUR WIRELESS DRIVER CODE>>.conf

There, enter the line below:

`options <<YOUR WIRELESS DRIVER CODE>> <<driver_option_name>>=<value>`
  • The ONLY option you are likely to need is "ant_sel". The penny-pinchers at some laptop vendors, mostly HP, decided to save a few cents to install only one antenna. That would not have been a problem as the driver contains the logic necessary to handle this case; however, the idiots failed to correrctly encode that information in the devices ROM. Accordingly, the driver follow the ROM setting and uses the WRONG antenna. Effectively, the device has NO usable antennas. To test if this is the case on your system, please run the following commands (set 1):
DEVICE=$(iw dev | grep Interface | cut -d " " -f2)
sudo iw dev $DEVICE scan | egrep "SSID|signal|\(on"
  • If the signal for the AP to which you wish to connect is -60 or less, then you have this problem. The fix is to supply the ant_sel option. Run the following commands (set 2):
sudo su -
echo "options rtl8723be ant_sel=2" > /etc/modprobe.d/50-rtl8723be.conf
exit
  • If you have an RTL8723DE, make the appropriate adjustments to the above command.

At this point, do a complete shutdown! The device may retain the old setting with a warm reboot. To be safe, do a power off. After the system come back up, rerun the set 1 comamands again. If The signals are now a lot stronger, you are done. If not, repeat command set 2 with ant_sel=1. If that does not help, I have no idea what is wrong.

lwfinger-rtlwifi_new's People

Contributors

benallard avatar hanipouspilot avatar henu avatar jefferymiller avatar joeperches avatar lwfinger avatar rkrp avatar rtlwifi-linux avatar scud3r1a avatar t-nelson avatar troy-tan avatar vatral avatar vrkansagara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lwfinger-rtlwifi_new's Issues

make error

image

I want to use the RTL8821AE driver.
after cd into the folder and 'make' the error above is returned

README.md update required

From existing README.md:

git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new

This should read:

git clone https://github.com/santoshchaurasiyacs/lwfinger-rtlwifi_new.git
cd lwfinger-rtlwifi_new/

make fail

Running make I get the following at the end of the output:

  LD [M]  /home/geode/src/lwfinger-rtlwifi_new/rtl8822be/rtl8822be.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/base.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/cam.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/core.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/debug.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/efuse.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/ps.o
  CC [M]  /home/geode/src/lwfinger-rtlwifi_new/rc.o
/home/geode/src/lwfinger-rtlwifi_new/rc.c:336:11: error: initialization of ‘void * (*)(struct ieee80211_hw *)’ from incompatible pointer type ‘void * (*)(struct ieee80211_hw *, struct dentry *)’ [-Werror=incompatible-pointer-types]
  336 |  .alloc = rtl_rate_alloc,
      |           ^~~~~~~~~~~~~~
/home/geode/src/lwfinger-rtlwifi_new/rc.c:336:11: note: (near initialization for ‘rtl_rate_ops.alloc’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.7.0-1-common/scripts/Makefile.build:272: /home/geode/src/lwfinger-rtlwifi_new/rc.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.7.0-1-common/Makefile:1745: /home/geode/src/lwfinger-rtlwifi_new] Error 2
make[1]: *** [/usr/src/linux-headers-5.7.0-1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-1-amd64'
make: *** [Makefile:85: all] Error 2
uname -a
Linux geodebox 5.7.0-1-amd64 #1 SMP Debian 5.7.6-1 (2020-06-24) x86_64 GNU/Linux
lspci | grep Network
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723DE 802.11b/g/n PCIe Adapter

Happy to provide any other info required.

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.