From d45b3ee0766b1474d12f0833720dccce0f54c9d9 Mon Sep 17 00:00:00 2001 From: Eduardo Minguez Date: Thu, 5 Jun 2014 15:49:06 +0200 Subject: ifup-wireless: add support for wowlan --- sysconfig/network-scripts/ifup-wireless | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1