diff options
-rwxr-xr-x | sysconfig/network-scripts/ifup-wireless | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless index 3f2759c4..41b642a6 100755 --- a/sysconfig/network-scripts/ifup-wireless +++ b/sysconfig/network-scripts/ifup-wireless @@ -33,6 +33,7 @@ # IWCONFIG: Extra parameters to pass directly to IWCONFIG # SECURITYMODE: Security mode, e.g: 'open' or 'restricted' # IWPRIV: Extra parameters to pass directly to IWPRIV +# WOWLAN: Enable wowlan (any, disconnect, magic-packet,...) # Only meant to be called from ifup. @@ -97,6 +98,10 @@ fi if [ -n "$IWPRIV" ] ; then iwpriv $DEVICE $IWPRIV fi +if [ -n "$WOWLAN" ] ; then + PHYDEVICE=phy_wireless_device $DEVICE + iw phy $PHYDEVICE wowlan enable ${WOWLAN} +fi # ESSID need to be last : most device re-perform the scanning/discovery # when this is set, and things like encryption keys are better be |