Skip to contentSkip to conversation

ath10k: sync WMI interface to FW 636

PATCH New Michal Kazior 2 participants 2 messages May 22, 2013 – May 28, 2013 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath10k: sync WMI interface to FW 636

---
 drivers/net/wireless/ath/ath10k/wmi.h |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
drivers/net/wireless/ath/ath10k/wmi.h +32 -0
index f08dbb2..9555f5a 100644
@@ -104,6 +104,7 @@ enum wmi_service_id {
 	WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM, /* Modulated DTIM support */
 	WMI_STA_UAPSD_BASIC_AUTO_TRIG,    /* UAPSD AC Trigger Generation  */
 	WMI_STA_UAPSD_VAR_AUTO_TRIG,      /* -do- */
+	WMI_SERVICE_STA_KEEP_ALIVE,       /* STA keep alive mechanism support */
 	WMI_SERVICE_TX_ENCAP,             /* Packet type for TX encapsulation */
 
 	WMI_SERVICE_LAST,
@@ -173,6 +174,8 @@ static inline char *wmi_service_name(int service_id)
 		return "BASIC UAPSD";
 	case WMI_STA_UAPSD_VAR_AUTO_TRIG:
 		return "VAR UAPSD";
+	case WMI_SERVICE_STA_KEEP_ALIVE:
+		return "STA KEEP ALIVE";
 	case WMI_SERVICE_TX_ENCAP:
 		return "TX ENCAP";
 	default:
@@ -401,6 +404,10 @@ enum wmi_cmd_id {
 	/* Configure the Station UAPSD AC Auto Trigger Parameters */
 	WMI_STA_UAPSD_AUTO_TRIG_CMDID,
 
+	/* STA Keep alive parameter configuration,
+	   Requires WMI_SERVICE_STA_KEEP_ALIVE */
+	WMI_STA_KEEPALIVE_CMD,
+
 	/* misc command group */
 	WMI_ECHO_CMDID = WMI_CMD_GRP(WMI_GRP_MISC),
 	WMI_PDEV_UTF_CMDID,
@@ -1161,6 +1168,11 @@ struct wmi_start_scan_arg {
 #define WMI_SCAN_CHAN_STAT_EVENT 0x10
 /* Filter Probe request frames  */
 #define WMI_SCAN_FILTER_PROBE_REQ 0x20
+/* When set, DFS channels will not be scanned */
+#define WMI_SCAN_BYPASS_DFS_CHN 0x40
+/* Different FW scan engine may choose to bail out on errors.
+ * Allow the driver to have influence over that. */
+#define WMI_SCAN_CONTINUE_ON_ERROR 0x80
 
 /* WMI_SCAN_CLASS_MASK must be the same value as IEEE80211_SCAN_CLASS_MASK */
 #define WMI_SCAN_CLASS_MASK 0xFF000000
@@ -2940,6 +2952,26 @@ struct wmi_add_bcn_filter_cmd {
 	u32 ie_map[BCN_FLT_MAX_ELEMS_IE_LIST];
 } __packed;
 
+enum wmi_sta_keepalive_method {
+	WMI_STA_KEEPALIVE_METHOD_NULL_FRAME = 1,
+	WMI_STA_KEEPALIVE_METHOD_UNSOLICITATED_ARP_RESPONSE = 2,
+};
+
+/* note: ip4 addresses are in network byte order, i.e. big endian */
+struct wmi_sta_keepalive_arp_resp {
+	__be32 src_ip4_addr;
+	__be32 dest_ip4_addr;
+	struct wmi_mac_addr dest_mac_addr;
+} __packed;
+
+struct wmi_sta_keepalive_cmd {
+	__le32 vdev_id;
+	__le32 enabled;
+	__le32 method; /* WMI_STA_KEEPALIVE_METHOD_ */
+	__le32 interval; /* in seconds */
+	struct wmi_sta_keepalive_arp_resp arp_resp;
+} __packed;
+
 #define ATH10K_RTS_MAX		2347
 #define ATH10K_FRAGMT_THRESHOLD_MIN	540
 #define ATH10K_FRAGMT_THRESHOLD_MAX	2346
Signature · 1 line
1.7.9.5
Applied
#1 lore raw

PATCH 1/1 ath10k: sync WMI interface to FW 636

Quoted 1 line · Michal Kazior

Thanks, applied.

But a small commit log is always good to have.

Signature · 1 line
Kalle Valo