packages/bsp/common: use iw instead of iwconfig (#3995)

Use iw to handle wifi power management instead of legacy iwconfig.

Also fix udev rule to use kernel name (%k) instead of hardcoded name.
This commit is contained in:
alive4ever
2022-07-14 15:12:13 +07:00
committed by GitHub
parent 1b9be236a8
commit c83b11cf14

View File

@@ -1 +1 @@
KERNEL=="wlan*", ACTION=="add", RUN+="/sbin/iwconfig wlan0 power off"
KERNEL=="wlan*", ACTION=="add", RUN+="/sbin/iw dev %k set power_save off"