diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-03-15 01:34:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-03-15 01:34:16 +0000 |
commit | c39a42b2f190298aba9f5d9e0c6e27d4d82dbb69 (patch) | |
tree | 62764e89a429a5ee3150bedc46e5c1e1ea62eb98 | |
parent | 88722434e57573058a7d8eaab94bcb59cf89bafb (diff) | |
download | mtk-20170518-c39a42b2f190298aba9f5d9e0c6e27d4d82dbb69.zip mtk-20170518-c39a42b2f190298aba9f5d9e0c6e27d4d82dbb69.tar.gz mtk-20170518-c39a42b2f190298aba9f5d9e0c6e27d4d82dbb69.tar.bz2 |
add passive mode to wlioctl.h and wlc
SVN-Revision: 374
-rw-r--r-- | openwrt/package/openwrt/include/wlioctl.h | 2 | ||||
-rw-r--r-- | openwrt/package/openwrt/wlc/wlc.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/openwrt/package/openwrt/include/wlioctl.h b/openwrt/package/openwrt/include/wlioctl.h index 90f49e2..8688503 100644 --- a/openwrt/package/openwrt/include/wlioctl.h +++ b/openwrt/package/openwrt/include/wlioctl.h @@ -562,6 +562,8 @@ typedef struct wlc_rev_info { #define WLC_SET_WEP 43 #define WLC_GET_KEY 44 #define WLC_SET_KEY 45 +#define WLC_GET_PASSIVE 48 /* added by nbd */ +#define WLC_SET_PASSIVE 49 /* added by nbd */ #define WLC_SCAN 50 #define WLC_SCAN_RESULTS 51 #define WLC_DISASSOC 52 diff --git a/openwrt/package/openwrt/wlc/wlc.c b/openwrt/package/openwrt/wlc/wlc.c index 464310c..651cdfc 100644 --- a/openwrt/package/openwrt/wlc/wlc.c +++ b/openwrt/package/openwrt/wlc/wlc.c @@ -39,7 +39,8 @@ struct wl_config { struct wl_config commands[] = { {"txpwr", "transmit power (in mW)", INT, WLC_GET_TXPWR, WLC_SET_TXPWR, 0, 255, NULL}, {"promisc", "promiscuous mode", BOOL, WLC_GET_PROMISC, WLC_SET_PROMISC, 0, 0, NULL}, - {"monitor", "monitor mode", BOOL, WLC_GET_AP, WLC_SET_AP, 0, 0, NULL}, + {"monitor", "monitor mode", BOOL, WLC_GET_MONITOR, WLC_SET_MONITOR, 0, 0, NULL}, + {"passive", "passive mode", BOOL, WLC_GET_PASSIVE, WLC_SET_PASSIVE, 0, 0, NULL}, {"ap", "access point mode (0 = STA, 1 = AP)", BOOL, WLC_GET_AP, WLC_SET_AP, 0, 0, NULL}, {"infra", "infrastructure mode (0 = IBSS, 1 = Infra BSS)", BOOL, WLC_GET_INFRA, WLC_SET_INFRA, 0, 0, NULL}, {"antdiv", "rx antenna diversity (0 = antenna 0, 1 = antenna 1, 3 = auto select)", INT, WLC_GET_ANTDIV, WLC_SET_ANTDIV, 0, 3, NULL}, |