Title: Using MediaTek MT7902 Wi-Fi Card with Linux
The MediaTek MT7902 Wi-Fi card is a popular choice for Linux users who want to enhance their wireless connectivity. This article will guide you on how to make the MT7902 card work with Linux, assuming you're currently using a USB adapter (TP-Link AC600 wireless Archer T2U Nano) that works well with the rtl8821au module.
Introduction
The MediaTek MT7902 Wi-Fi card is a low-cost, high-performance wireless solution. It supports 802.11b/g/n standards and operates in the 2.4 GHz band. This article will provide a step-by-step guide on how to get your MT7902 card working with Linux.
Prerequisites
Before we begin, ensure your Linux distribution is up-to-date. You can do this by running the following commands:
sudo apt-get update
sudo apt-get upgrade
Installing the Required Packages
To use the MT7902 card, you'll need the rtl8821au driver. If it's not already installed, you can install it using the following command:
sudo apt-get install linux-firmware-nonfree rtl8821au
Identifying the Card
To identify the Wi-Fi card, run the following command:
lsmod | grep rtl
If the rtl8821au module is loaded, you should see it in the output.
Configuring the Card
To configure the card, edit the /etc/modprobe.d/rtl8821au.conf file:
sudo nano /etc/modprobe.d/rtl8821au.conf
Add the following lines to the file:
options rtl8821au rtw_power_mgnt=1 rtw_enusbss=1
Save and close the file.
Loading the Driver
To load the driver, run the following command:
sudo modprobe rtl8821au
Checking the Connection
To check if the connection is established, run the following command:
iwconfig
You should see the Wi-Fi card's name (e.g., wlan0) and its status (e.g., Not-Associated).
Connecting to a Network
To connect to a network, use the iwlwifi command:
iwctl station wlan0 connect <SSID> key <PASSWORD>
Replace <SSID> with your network's name and <PASSWORD> with your network's password.
Summary
- Install the
rtl8821audriver and firmware. - Identify the Wi-Fi card.
- Configure the card by editing the
/etc/modprobe.d/rtl8821au.conffile. - Load the driver using
sudo modprobe rtl8821au. - Check the connection using
iwconfig. - Connect to a network using the
iwctlcommand.