Search Linux Wireless

RE: [RFC] mac80211: implement HS2.0 gratuitous ARP/unsolicited NA dropping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johannes,

> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> Taking the gratuitous ARP/unsolicited NA detection code from
> mwifiex (but fixing it up to not have read-after-skb-end bugs),
> implement the ability for userspace to request the behaviour
> required by HS2.0 to drop gratuitous ARP and unsolicited NA
> frames when proxy ARP service is enabled on the AP. Since this
> behaviour is only mandatory for HS2.0 and may not always be
> desired, make it optional - modify cfg80211/nl80211 for that.
> 
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>

[...]

> diff --git a/drivers/net/wireless/mwifiex/decl.h b/drivers/net/wireless/mwifiex/decl.h
> index 5c85d78..1887629 100644
> --- a/drivers/net/wireless/mwifiex/decl.h
> +++ b/drivers/net/wireless/mwifiex/decl.h
> @@ -153,12 +153,4 @@ struct mwifiex_types_wmm_info {
>  	u8 reserved;
>  	struct ieee_types_wmm_ac_parameters ac_params[IEEE80211_NUM_ACS];
>  } __packed;
> -
> -struct mwifiex_arp_eth_header {
> -	struct arphdr hdr;
> -	u8 ar_sha[ETH_ALEN];
> -	u8 ar_sip[4];
> -	u8 ar_tha[ETH_ALEN];
> -	u8 ar_tip[4];
> -} __packed;

"#include <uapi/linux/if_arp.h" in this file can be removed too.

@@ -26,7 +26,6 @@
 #include <linux/wait.h>
 #include <linux/timer.h>
 #include <linux/ieee80211.h>
-#include <uapi/linux/if_arp.h>
 #include <net/mac80211.h>


Acked-by: Bing Zhao <bzhao@xxxxxxxxxxx> [mwifiex]

Thanks,
Bing

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux