aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-wireless
diff options
context:
space:
mode:
authorEduardo Minguez <eminguez@redhat.com>2014-06-05 15:49:06 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-06-05 15:49:06 +0200
commitd45b3ee0766b1474d12f0833720dccce0f54c9d9 (patch)
treed59fcab2c77713a3abe1c591f307b2fdf68ddd41 /sysconfig/network-scripts/ifup-wireless
parent6144c43cfaca24e48b63746ab35e45b73835a8ec (diff)
downloadinitscripts-d45b3ee0766b1474d12f0833720dccce0f54c9d9.tar
initscripts-d45b3ee0766b1474d12f0833720dccce0f54c9d9.tar.gz
initscripts-d45b3ee0766b1474d12f0833720dccce0f54c9d9.tar.bz2
initscripts-d45b3ee0766b1474d12f0833720dccce0f54c9d9.tar.xz
initscripts-d45b3ee0766b1474d12f0833720dccce0f54c9d9.zip
ifup-wireless: add support for wowlan
Diffstat (limited to 'sysconfig/network-scripts/ifup-wireless')
-rwxr-xr-xsysconfig/network-scripts/ifup-wireless5
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