From e6250644be2b94bd8be657464030e699e5d87f18 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 28 May 2013 11:10:41 +0000 Subject: mac80211: add support for "active" monitor interfaces which allow userspace tools to connect to APs via injection Signed-off-by: Felix Fietkau SVN-Revision: 36743 --- .../utils/iw/patches/001-nl80211_h_sync.patch | 8 ++++++++ .../utils/iw/patches/130-monitor_active.patch | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 package/network/utils/iw/patches/130-monitor_active.patch (limited to 'package/network/utils/iw') diff --git a/package/network/utils/iw/patches/001-nl80211_h_sync.patch b/package/network/utils/iw/patches/001-nl80211_h_sync.patch index e20484a..e025a67 100644 --- a/package/network/utils/iw/patches/001-nl80211_h_sync.patch +++ b/package/network/utils/iw/patches/001-nl80211_h_sync.patch @@ -30,3 +30,11 @@ /* keep last */ __NL80211_STA_INFO_AFTER_LAST, +@@ -2424,6 +2429,7 @@ enum nl80211_mntr_flags { + NL80211_MNTR_FLAG_CONTROL, + NL80211_MNTR_FLAG_OTHER_BSS, + NL80211_MNTR_FLAG_COOK_FRAMES, ++ NL80211_MNTR_FLAG_ACTIVE, + + /* keep last */ + __NL80211_MNTR_FLAG_AFTER_LAST, diff --git a/package/network/utils/iw/patches/130-monitor_active.patch b/package/network/utils/iw/patches/130-monitor_active.patch new file mode 100644 index 0000000..9d19ae9 --- /dev/null +++ b/package/network/utils/iw/patches/130-monitor_active.patch @@ -0,0 +1,20 @@ +--- a/interface.c ++++ b/interface.c +@@ -16,7 +16,8 @@ + "fcsfail: show frames with FCS errors\n"\ + "control: show control frames\n"\ + "otherbss: show frames from other BSSes\n"\ +- "cook: use cooked mode" ++ "cook: use cooked mode\n"\ ++ "active: use active mode (ACK incoming unicast packets)" + + SECTION(interface); + +@@ -27,6 +28,7 @@ static char *mntr_flags[NL80211_MNTR_FLA + "control", + "otherbss", + "cook", ++ "active", + }; + + static int parse_mntr_flags(int *_argc, char ***_argv, -- cgit v1.1