Bug 2229350

Summary: Incorrect wired network status when wireless disabled
Product: [Fedora] Fedora Reporter: afshin.tek
Component: NetworkManagerAssignee: Lubomir Rintel <lkundrak>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: bgalvani, dcbw, ferferna, gnome-sig, liangwen12year, lkundrak, mclasen, rstrode, vbubela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description afshin.tek 2023-08-05 07:51:16 UTC
On Fedora version 38, when wireless connection is turned off, NetworkManager incorrectly shows the system as connected to a wired connection instead. This causes the wired network icon to display in the top bar even with no physical wired connection.

This happens whether WiFi is disabled via GUI toggle or using 'nmcli radio wifi off'. No actual wired connection profiles exist. Already tried removing any wired profiles from NetworkManager which did not resolve.

Steps to Reproduce:

    Connect to WiFi network normally
    Disable WiFi using GUI toggle or 'nmcli radio wifi off'
    Wired network icon appears in top bar

Expected behavior:

Wired network should not show as connected when wireless is disabled.

Additional details:

    NetworkManager version: 1.42.8-1.fc38
    Kernel version: 6.4.7-200.fc38.x86_64

update: when i run: "$nmcli networking off && nmcli networking on" when wifi is on,it solves the problem till next reboot.

Comment 1 Beniamino Galvani 2023-08-07 07:19:18 UTC
Please show the output of "nmcli connection; nmcli device; ip a" when the issue happens.

Comment 2 afshin.tek 2023-08-07 09:03:22 UTC
(In reply to Beniamino Galvani from comment #1)
> Please show the output of "nmcli connection; nmcli device; ip a" when the
> issue happens.

this is the output of the command after i turn off wifi and "wired icon" appears:
nmcli connection; nmcli device; ip a
NAME     UUID                                  TYPE      DEVICE  
lo       732e51db-197d-4e7d-b9a2-ca232c8cc34e  loopback  lo      
docker0  c11f4a14-c1a7-451d-bd46-bedafafe4570  bridge    docker0
afshin   ce105ffa-4cbd-4102-9763-86d38d5e5d8a  wifi      --           
Q        10b028e0-b1ba-4926-8cd5-36aad5dc8145  wifi      --      
Qa       69dac76f-6d4e-4546-a328-864914b42edb  wifi      --      
DEVICE   TYPE      STATE                   CONNECTION
lo       loopback  connected (externally)  lo        
docker0  bridge    connected (externally)  docker0    
wlo1     wifi      unavailable             --        
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 3a:67:3c:4e:cb:9b brd ff:ff:ff:ff:ff:ff permaddr 2c:3b:70:07:15:09
    altname wlp1s0
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:32:b2:4e:77 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever