I have a HP Elitebook 8540w with Ubuntu 16.04. I am trying to share my wireless through ethernet but every time that I connect the ethernet cable the wireless gets disabled.
I searched the web for solutions but this doesn't seem to be network manager's default behavior.
This is what rfkill shows when the ethernet is connected:
$ sudo rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: yes
2: hp-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: yes
And after unblock:
$ sudo rfkill unblock all
$ sudo rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no