接口不支持扫描

接口不支持扫描

我使用的是 debian,重启后 wifi 无法工作。

uname -a
    Linux debian-v**** 5.10.0-0.bps.7-amd64 #1 SMP Debian 5.10.40-1-bpo10+1 (2021-06-04)x86_64 GNU/Linux

当我尝试执行扫描时,我有以下输出

sudo iwlist wlp59s0 scan 
    wlp59s0 Interface doesn't support scanning: Network is down

iwconfig 有以下输出

sudo iwconfig
    

lo    no wireless extensions.
    
wlp59s0    IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Powersoff
    
    Retry short Limit:7 RTS thr:off
    
    Fragnent thr:off
    
    Encryption key:off
    
    Power Management:on
    
    decker no wireless extensions.
    
    br-378afab39a77 no wireless extensions.
    
    th4050480 no wireless extensions.
    
    eth096c453 no wireless extensions.
    
    weth362b042 no wireless extensions

。我在 demsg 里什么也没有

sudo dmesg | grep wifi

intuifi-cc-a0-59.ucode

***@debian-***

4.958688] inlifi 0000:3b:00.0: enabling device (0000 0002)

4.970953] intiri 0000:3b:00.0: firmware: direct-loading firmware intuifi-cc-a0-59.

4.970960] ilifi 0000:3b:00.0: api flags index 2 larger than supported by driver

4.970963] istifi 0000:3b:00.0: TLV FR FSEQ VERSION: FSEQ Version: 89.3.35.22

4.971159] istifi 0000:3b:00.0: Loaded firmware version 59.601f3a66.0 cc-a0-59.ucode op node int 5.1532083 ilifi 0000:3b:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340

5.346213) istifi 0000:3b:00.0: base H address: 5c:80:b6:73:20:00

5.364087] ilifi 0000:3b:00.0 wlp59s0: renamed from wlan0

499.501561) (NULL device ): firmware: direct-loading firmware intsifi-cc-a0-59.ucode

答案1

使用 nmcli 可能会更好。列出范围内可用的 wifi 接入点(也称为路由器):

nmcli dev wifi

要首次连接到网络,请按照 man nmcli 中的示例操作:

nmcli dev wifi con "Cafe Hotspot 1" password caffeine name "My cafe"

要检查您是否已连接,请使用nmcli device statusor nmcli dev list(14.04) ,或者nmcli dev show对于 15.04

如果您已建立连接,请使用 nmcli con list(14.04)或 nmcli con show(15.04)。

如果您想连接到 列出的连接之一nmcli con lsit,请执行nmcli con up id "My Network Name"

答案2

下面我就来介绍一下快速解决这个问题的方法。

使用 Raspberry Pi5 在“Debian GNU/Linux 12(书虫)”上进行了验证。

iwlist wlan0 scan
wlan0     Interface doesn't support scanning.

dmesg | grep brcmfmac
[    5.126350] brcmfmac: F1 signature read @0x18000000=0x15264345
[    5.134616] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.134895] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.bin failed with error -2
[    5.134948] usbcore: registered new interface driver brcmfmac
[    5.135002] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.bin failed with error -2
[    6.144231] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
  1. 克隆 Wi-Fi 固件存储库

    git clone --depth=1 https://github.com/RPi-Distro/firmware-nonfree.git
    
  2. 树莓派5的wifi模式是brcmfmc43455,只需复制brcmfmc43455的文件即可。

    cp firmware-nonfree/debian/config/brcm80211/cypress/cyfmac43455-sdio-standard.bin /lib/firmware/brcm/brcmfmac43455-sdio.bin
    cp firmware-nonfree/debian/config/brcm80211/cypress/cyfmac43455-sdio.clm_blob /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob
    cp firmware-nonfree/debian/config/brcm80211/brcm/brcmfmac43455-sdio.txt /lib/firmware/brcm/
    
  3. 为固件文件创建符号链接,确保您具有以下符号链接。

    ln -s /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.bin /lib/firmware/brcm/brcmfmac43455-sdio.bin
    ln -s /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.clm_blob /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.bin
    ln -s /lib/firmware/brcm/brcmfmac43455-sdio.txt /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.txt
    
  4. 重新启动您的系统

    reboot
    
  5. 现在,您可以验证 wlan0 恢复工作。

    rfkill
        ID TYPE      DEVICE      SOFT      HARD
         0 bluetooth hci0   unblocked unblocked
         1 wlan      phy0   unblocked unblocked
    
    iwlist wlan0 scan
    

相关内容