You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

TL-WN821N无线网卡设置monitor mode时出现Set Mode错误求助

Fixing "Error for wireless request 'Set Mode' (8B06)" on TL-WN821N Wireless Adapter

Frustrated by those pesky "Set Mode" errors when trying to get your TL-WN821N into monitor mode? I’ve walked through this issue countless times—let’s break down the solutions step by step. These errors almost always come down to driver limitations, the network manager hogging the adapter, or using outdated commands.

First, Confirm Your Adapter’s Identity

Different TL-WN821N versions use different chipsets (most commonly RTL8192CU or RTL8192EU), and the fix depends on which one you have:

  • Run iw dev to find your wireless interface name (look for the device marked type managed—this is your TL-WN821N, e.g., wlan0).
  • Run lsusb to check the chipset: look for a line like Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter or similar.

Basic Fix (If Your Driver Already Supports Monitor Mode)

9 times out of 10, the network manager is locking the adapter and preventing mode changes. Let’s free it up:

  1. Stop the network manager to release the adapter:
    sudo systemctl stop NetworkManager
    # For non-systemd systems (e.g., older Ubuntu): sudo service network-manager stop
    
  2. Bring the interface down to prepare for the mode switch:
    sudo ip link set wlan0 down
    
  3. Use the modern iw command (preferred over the outdated iwconfig) to set monitor mode:
    sudo iw wlan0 set type monitor
    
  4. Bring the interface back up:
    sudo ip link set wlan0 up
    
  5. Verify the mode change worked:
    iw dev wlan0 info
    
    If you see type monitor in the output, you’re all set!

Fix for RTL8192CU Chipsets (Most Common TL-WN821N Variant)

The stock RTL8192CU driver doesn’t support monitor mode—you’ll need a community-maintained fixed driver:

  1. Install the tools needed to compile the driver:
    sudo apt install git build-essential linux-headers-$(uname -r)
    
  2. Clone a trusted community RTL8192CU fixes repository (look for projects specifically built to add monitor mode support):
    git clone [community RTL8192CU fixes repo]
    
  3. Compile and install the driver:
    cd rtl8192cu-fixes
    sudo make install
    sudo modprobe 8192cu
    
  4. Repeat the basic fix steps above—this time the mode switch should complete without errors.

Notes for RTL8192EU Chipsets

If your adapter uses the RTL8192EU chipset, the stock driver might support monitor mode, but you still need to stop the network manager first. If you run into issues, look for updated RTL8192EU drivers that explicitly mention monitor mode compatibility.

If you’re still seeing errors after trying these steps, check if any other processes are using the adapter with lsof | grep wlan0 and kill those processes. You might also need to update your kernel to ensure compatibility with the driver.

内容的提问来源于stack exchange,提问作者André Milke

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:36:06