Skip to contentSkip to conversation

ath6kl: consolidate WoW pattern length

PATCH Applied Thomas Pedersen 2 participants 2 messages Aug 20, 2012 – Aug 27, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath6kl: consolidate WoW pattern length

Since WOW_MASK_SIZE and WOW_PATTERN_SIZE have the same value, are logically equivalent, and part of the WMI API so therefore unlikely to change, consolidate these into WOW_PATTERN_SIZE.

Reported-by Kalle Valo <[email protected]>

---
 drivers/net/wireless/ath/ath6kl/cfg80211.c |    2 +-
 drivers/net/wireless/ath/ath6kl/wmi.h      |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +1 -1
index f5300c3..19d9b9b 100644
@@ -1870,7 +1870,7 @@ static int ath6kl_wow_usr(struct ath6kl *ar, struct ath6kl_vif *vif,
 			  struct cfg80211_wowlan *wow, u32 *filter)
 {
 	int ret, pos;
-	u8 mask[WOW_MASK_SIZE];
+	u8 mask[WOW_PATTERN_SIZE];
 	u16 i;
 
 	/* Configure the patterns that we received from the user. */
drivers/net/wireless/ath/ath6kl/wmi.h +1 -2
index a791b1b..a638151 100644
@@ -2062,7 +2062,6 @@ struct wmi_set_ie_cmd {
 
 #define WOW_MAX_FILTERS_PER_LIST 4
 #define WOW_PATTERN_SIZE	 64
-#define WOW_MASK_SIZE		 64
 
 #define MAC_MAX_FILTERS_PER_LIST 4
 
@@ -2071,7 +2070,7 @@ struct wow_filter {
 	u8 wow_filter_id;
 	u8 wow_filter_size;
 	u8 wow_filter_offset;
-	u8 wow_filter_mask[WOW_MASK_SIZE];
+	u8 wow_filter_mask[WOW_PATTERN_SIZE];
 	u8 wow_filter_pattern[WOW_PATTERN_SIZE];
 } __packed;
 
Signature · 1 line
1.7.5.4
Applied
#1 lore raw
Quoted 6 lines · Thomas Pedersen

Since WOW_MASK_SIZE and WOW_PATTERN_SIZE have the same value, are logically equivalent, and part of the WMI API so therefore unlikely to change, consolidate these into WOW_PATTERN_SIZE.

Reported-by Kalle Valo <[email protected]>

Thanks, applied.

I added the missing colon to the Reported-by line.

Kalle