nmcli centos 的 General.type 错误

nmcli centos 的 General.type 错误

我正在尝试将 centos 机器配置为通过 USB wifi 适配器使用 wifi。我已经插上电源并让驱动程序工作了

# iwconfig
ra0       Ralink STA  ESSID:""  Nickname:"MT7610U_STA"
          Mode:Auto  Frequency=2.412 GHz  Bit Rate=1 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

然而,nmcli 认为这是一个以太网连接

# nmcli device show ra0
GENERAL.DEVICE:                         ra0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         84:16:F9:1F:6A:92  
GENERAL.MTU:                            1500
GENERAL.STATE:                          30 (disconnected)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               on

这导致

# nmcli device wifi connect WirelessNetwork ifname ra0
Error: Device 'ra0' is not a Wi-Fi device.

我该如何解决?

相关内容