更改无线设备的 phy# 索引

更改无线设备的 phy# 索引

我想知道是否可以更改无线设备的 phy# 索引。目前我有两个无线设备,信息如下:

elans@elans-TravelMate-P446-M:~$ iw dev
phy#1
    Unnamed/non-netdev interface
        wdev 0x100000002
        addr X:X:X:X:X:X
        type P2P-device
        txpower 0.00 dBm
    Interface wlp4s0
        ifindex 4
        wdev 0x100000001
        addr X:X:X:X:X:X
        ssid EGR Wi-Fi
        type managed
        channel 40 (5200 MHz), width: 80 MHz, center1: 5210 MHz
        txpower 30.00 dBm
phy#0
    Interface wlp2s0
        ifindex 3
        wdev 0x1
        addr X:X:X:X:X:X
        type managed

我想将 的设备phy#0重命名为phy#2。可以这样做吗?我已经尝试过了,sudo iw phy#0 set name phy#2但这个命令似乎更改了名称,而不是索引。

这是输出sudo lshw -class network

  *-network DISABLED      
       description: Wireless interface
       product: Wil6200 802.11ad Wireless Network Adapter
       vendor: Wilocity Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 02
       serial: X:X:X:X:X:X
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=wil6210 driverversion=4.17.0 firmware=5.2.0.18 latency=0 multicast=yes wireless=IEEE 802.11
       resources: irq:53 memory:c1200000-c13fffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0.1
       bus info: pci@0000:03:00.1
       logical name: enp3s0f1
       version: 14
       serial: X:X:X:X:X:X
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8411-2_0.0.1 07/08/13 ip=192.168.4.3 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:18 ioport:3000(size=256) memory:c1404000-c1404fff memory:c1400000-c1403fff
  *-network
       description: Wireless interface
       product: QCA6174 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: wlp4s0
       version: 32
       serial: X:X:X:X:X:X
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.17.0 firmware=RM.4.4.1.c2-00057-QCARMSWP-1 ip=35.12.211.177 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:55 memory:c1000000-c11fffff

相关内容