summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl12xx/wl12xx_80211.h
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2010-12-09 11:31:27 +0200
committerLuciano Coelho <luciano.coelho@nokia.com>2010-12-15 15:04:56 +0200
commitc5312772156bb5f9b2e95e4c91526d578426a069 (patch)
treee79bf5435e4b084230a02cb3ae07b6ac25d3baf3 /drivers/net/wireless/wl12xx/wl12xx_80211.h
parentb69eb80bf7a6922fef8056d42b06124a7de31501 (diff)
wl12xx: add auto-arp support
The auto-arp feature of wl12xx allows the firmware to automatically response to arp requests asking for its ip. in order to use it, we configure the arp response template and enable the corresponding bit in wl1271_acx_arp_filter (along with passing its ip) Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl12xx_80211.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl12xx_80211.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl12xx_80211.h b/drivers/net/wireless/wl12xx/wl12xx_80211.h
index 18462802721..8ee0d3a8fa6 100644
--- a/drivers/net/wireless/wl12xx/wl12xx_80211.h
+++ b/drivers/net/wireless/wl12xx/wl12xx_80211.h
@@ -2,6 +2,7 @@
#define __WL12XX_80211_H__
#include <linux/if_ether.h> /* ETH_ALEN */
+#include <linux/if_arp.h>
/* RATES */
#define IEEE80211_CCK_RATE_1MB 0x02
@@ -140,6 +141,19 @@ struct wl12xx_probe_req_template {
struct wl12xx_ie_rates ext_rates;
} __packed;
+struct wl12xx_arp_rsp_template {
+ struct ieee80211_hdr_3addr hdr;
+
+ u8 llc_hdr[sizeof(rfc1042_header)];
+ u16 llc_type;
+
+ struct arphdr arp_hdr;
+ u8 sender_hw[ETH_ALEN];
+ u32 sender_ip;
+ u8 target_hw[ETH_ALEN];
+ u32 target_ip;
+} __packed;
+
struct wl12xx_probe_resp_template {
struct ieee80211_header header;