[SOLVED] Wifi is disabled or possibly hard blocked on Lenovo - RHEL 7

Latest response

I've spent days on trying to get my wireless to work on my Lenovo Legion Y720. I am unable to understand why it's not working when the drivers are detected at boot using dmesg:

[   16.089403] iwlwifi 0000:02:00.0: loaded firmware version 21.302800.0 op_mode iwlmvm
[   16.105606] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[   16.107786] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[   16.108187] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled

iwconfig lists:

wlp2s0    IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

lo        no wireless extensions.

virbr0-nic  no wireless extensions.

virbr0    no wireless extensions.

enp7s0    no wireless extensions.

I am also running the latest NetworkManager and NetworkManager-wifi:

NetworkManager-1.4.0-20.el7_3.x86_64
NetworkManager-wifi-1.4.0-20.el7_3.x86_64
lspci | grep Network :
02:00.0 Network controller: Intel Corporation Device 24fd (rev 78)

The rfkill list all command shows:

0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: yes
2: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
3: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

lshw -C network for the disabled wireless shows the following:

  *-network DISABLED        
       description: Wireless interface
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 78
       serial: 86:2e:60:12:1b:1c
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=3.10.0-514.21.1.el7.x86_64 firmware=21.302800.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:136 memory:94000000-94001fff

cat /var/lib/NetworkManager/NetworkManager.state gives me:

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

The contents of my /etc/NetworkManager/NetworkManager.conf file are:

[main]
plugins=ifcfg-rh

Any help would be much appreciated,

thx

EDIT: SOLUTION:

Had to blacklist ideapad_laptop kernel module and reboot:

sudo tee /etc/modprobe.d/blacklist-ideapad.conf <<< "blacklist ideapad_laptop"

I guess a hard block can be caused by multiple modules and/or firmware trying to use the same device.

Original forum where I found the solution: https://askubuntu.com/questions/893384/wifi-doesnt-work-on-fresh-ubuntu-16-04

Responses

I'd guess Hard blocked: yes means the physical WiFi switch on the laptop is set to disable WiFi.

Some laptops have an actual hardware toggle switch or button. Some laptops make you press the Fn key and another keyboard key. The button might look like some radio signals or a satellite dish or whatever the vendor thinks looks like radio or wireless.

Looking at a picture of the keyboard, how about Fn+F7 which looks to be Airplane Mode?

Fn+F7 is to toggle Airplane Mode but the hotkey doesn't work in redhat. I can however manually turn airplane mode on/off from the network settings. I believe there is no physical switch or hotkey to disable wifi for the Lenovo Legion y720. I am dual booting RHEL 7 with windows 10 and wifi is working fine on Windows.

Do you mean the "Enable Networking" when you right click on the NetworkManager icon? I expect that's a different thing to the physical Airplane Mode switch.

Support for 8265 wireless was added in RHEL 7.3 and tested okay by Red Hat QE and the OEM partner who made the driver update request, so make sure you've got kernel-3.10.0-514.el7 or later and the most recent iwl7265-firmware-22.0.7.0-49.el7 package. The firmware needs to be -46.el7 or later, earlier firmware packages won't work.

If you have no luck there, I'd try either the latest ELRepo kernel-ml package or a Fedora 26 beta LiveUSB, just to see if the later kernel allows that Airplane Mode switch to change something.

I've uploaded a screenshot of my desktop so you can see that the wifi option is disabled (greyed-out)

I went ahead and updated my kernel to version 4.11.5-1.el7.elrepo.x86_64 and reinstalled the package iwl7265-firmware-22.0.7.0-49.el7 and wifi still remains disabled. Last kernel version was 3.10.0-514.21.1.el7.x86_64.

The wifi is detected by the kernel but still disabled. Dmesg gives me:

 dmesg | grep -i iw
[   19.172587] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8265-28.ucode failed with error -2
[   19.172612] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8265-27.ucode failed with error -2
[   19.172864] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8265-26.ucode failed with error -2
[   19.172883] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8265-25.ucode failed with error -2
[   19.172899] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8265-24.ucode failed with error -2
[   19.172915] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8265-23.ucode failed with error -2
[   19.506777] iwlwifi 0000:02:00.0: loaded firmware version 22.361476.0 op_mode iwlmvm
[   19.517242] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[   19.519508] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[   19.519990] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[   19.651333] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[   19.753128] iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0

thanks for your help, I found the solution by blacklisting ideapad_laptop kernel module.