aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@cozybit.com>2013-02-14 14:20:14 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-15 03:41:40 -0500
commit9fb04b501a57ad29fa989ab3cd2123482e7eac5f (patch)
treecc25ab0a26dbaa56117728abeb9fc8bedece2a85 /net/mac80211/rx.c
parent2b5e19677592c167d012c2d129407f39d2bdeb8d (diff)
mac80211: generate mesh probe responses
Mesh interfaces will now respond to any broadcast (or matching directed mesh) probe requests with a probe response. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 30f1ba6de8f3..296a4aeadedc 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2718,8 +2718,9 @@ ieee80211_rx_h_mgmt(struct ieee80211_rx_data *rx)
2718 return RX_DROP_MONITOR; 2718 return RX_DROP_MONITOR;
2719 break; 2719 break;
2720 case cpu_to_le16(IEEE80211_STYPE_PROBE_REQ): 2720 case cpu_to_le16(IEEE80211_STYPE_PROBE_REQ):
2721 /* process only for ibss */ 2721 /* process only for ibss and mesh */
2722 if (sdata->vif.type != NL80211_IFTYPE_ADHOC) 2722 if (sdata->vif.type != NL80211_IFTYPE_ADHOC &&
2723 sdata->vif.type != NL80211_IFTYPE_MESH_POINT)
2723 return RX_DROP_MONITOR; 2724 return RX_DROP_MONITOR;
2724 break; 2725 break;
2725 default: 2726 default: