2008-09-18 10:17:49

by YanBo

[permalink] [raw]
Subject: [PATCH] mac80211: Enable mesh point handle action packet

This patch enable vif in mesh_point mode can handle the action packet.

Signed-off-by: Li YanBo <[email protected]>
---
net/mac80211/rx.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 92d898b..763c7ea 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1537,7 +1537,8 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
* of these frames in other modes as well!
*/
if (sdata->vif.type != NL80211_IFTYPE_STATION &&
- sdata->vif.type != NL80211_IFTYPE_ADHOC)
+ sdata->vif.type != NL80211_IFTYPE_ADHOC &&
+ sdata->vif.type != NL80211_IFTYPE_MESH_POINT)
return RX_DROP_MONITOR;

switch (mgmt->u.action.category) {


2008-09-18 10:22:03

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: Enable mesh point handle action packet

On Thu, 2008-09-18 at 18:09 +0800, YanBo wrote:
> This patch enable vif in mesh_point mode can handle the action packet.
>
> Signed-off-by: Li YanBo <[email protected]>
> ---
> net/mac80211/rx.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
> index 92d898b..763c7ea 100644
> --- a/net/mac80211/rx.c
> +++ b/net/mac80211/rx.c
> @@ -1537,7 +1537,8 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
> * of these frames in other modes as well!
> */
> if (sdata->vif.type != NL80211_IFTYPE_STATION &&
> - sdata->vif.type != NL80211_IFTYPE_ADHOC)
> + sdata->vif.type != NL80211_IFTYPE_ADHOC &&
> + sdata->vif.type != NL80211_IFTYPE_MESH_POINT)
> return RX_DROP_MONITOR;

My mistake, but the fix would be to return RX_CONTINUE here, I'll send a
fix.

johannes


Attachments:
signature.asc (836.00 B)
This is a digitally signed message part