On Mon, 21 Aug 2006 17:38:04 -0700, Mohamed Abbas wrote:
> This a small patch allow IBSS network to recieve management frame.
> Thanks
> Mohamed
>
> diff --git a/net/d80211/ieee80211_sta.c b/net/d80211/ieee80211_sta.c
> index 8caf352..1153932 100644
> --- a/net/d80211/ieee80211_sta.c
> +++ b/net/d80211/ieee80211_sta.c
> @@ -1716,7 +1710,8 @@ void ieee80211_sta_rx_mgmt(struct net_de
> goto fail;
>
> sdata = IEEE80211_DEV_TO_SUB_IF(dev);
> - if (sdata->type != IEEE80211_IF_TYPE_STA) {
> + if ((sdata->type != IEEE80211_IF_TYPE_STA) &&
> + (sdata->type != IEEE80211_IF_TYPE_IBSS)) {
> printk(KERN_DEBUG "%s: ieee80211_sta_rx_mgmt: non-STA "
> "interface (type=%d)\n", dev->name, sdata->type);
> goto fail;
The check for the interface type can be removed completely here - it is
already checked by ieee80211_rx_h_mgmt. I'll take care of that.
Thanks,
Jiri
--
Jiri Benc
SUSE Labs
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html