1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 22:38:26 +02:00

wireless-tools: re-enable support for enabling/disabling powersave

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18378 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-11-11 16:59:31 +00:00
parent 9afd422632
commit 26b8a4b21c

View File

@ -103,22 +103,6 @@
/* Display encryption information */ /* Display encryption information */
/* Note : we display only the "current" key, use iwlist to list all keys */ /* Note : we display only the "current" key, use iwlist to list all keys */
@@ -995,6 +995,7 @@ set_enc_info(int skfd,
return(i);
}
+#ifndef WE_ESSENTIAL
/*------------------------------------------------------------------*/
/*
* Set Power Management
@@ -1111,7 +1112,6 @@ set_power_info(int skfd,
return(i);
}
-#ifndef WE_ESSENTIAL
/*------------------------------------------------------------------*/
/*
* Set Nickname
@@ -1196,6 +1196,7 @@ set_nwid_info(int skfd, @@ -1196,6 +1196,7 @@ set_nwid_info(int skfd,
/* 1 arg */ /* 1 arg */
return(1); return(1);
@ -151,15 +135,7 @@
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* /*
* Set Modulation * Set Modulation
@@ -1712,28 +1716,28 @@ static const struct iwconfig_entry iwcon @@ -1719,21 +1723,21 @@ static const struct iwconfig_entry iwcon
"Set Encode", "{NNNN-NNNN|off}" },
{ "key", set_enc_info, 1, SIOCSIWENCODE,
"Set Encode", "{NNNN-NNNN|off}" },
+#ifndef WE_ESSENTIAL
{ "power", set_power_info, 1, SIOCSIWPOWER,
"Set Power Management", "{period N|timeout N|saving N|off}" },
-#ifndef WE_ESSENTIAL
{ "nickname", set_nick_info, 1, SIOCSIWNICKN,
"Set Nickname", "NNN" }, "Set Nickname", "NNN" },
{ "nwid", set_nwid_info, 1, SIOCSIWNWID, { "nwid", set_nwid_info, 1, SIOCSIWNWID,
"Set NWID", "{NN|on|off}" }, "Set NWID", "{NN|on|off}" },