mwifiex: add support for wakeup on GTK rekey failure

User can configure wakeup on GTK rekey fail with wowlan.
Added corresponding wakeup reason.

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Ganapathi Bhat 2016-04-05 01:04:35 -07:00 committed by Kalle Valo
parent f6b1cbe029
commit 8fa0a0dc63
2 changed files with 7 additions and 1 deletions

View File

@ -3390,6 +3390,10 @@ static int mwifiex_cfg80211_resume(struct wiphy *wiphy)
break; break;
case MANAGEMENT_FRAME_MATCHED: case MANAGEMENT_FRAME_MATCHED:
break; break;
case GTK_REKEY_FAILURE:
if (wiphy->wowlan_config->gtk_rekey_failure)
wakeup_report.gtk_rekey_failure = true;
break;
default: default:
break; break;
} }
@ -3965,7 +3969,8 @@ static struct cfg80211_ops mwifiex_cfg80211_ops = {
#ifdef CONFIG_PM #ifdef CONFIG_PM
static const struct wiphy_wowlan_support mwifiex_wowlan_support = { static const struct wiphy_wowlan_support mwifiex_wowlan_support = {
.flags = WIPHY_WOWLAN_MAGIC_PKT | WIPHY_WOWLAN_DISCONNECT | .flags = WIPHY_WOWLAN_MAGIC_PKT | WIPHY_WOWLAN_DISCONNECT |
WIPHY_WOWLAN_NET_DETECT | WIPHY_WOWLAN_SUPPORTS_GTK_REKEY, WIPHY_WOWLAN_NET_DETECT | WIPHY_WOWLAN_SUPPORTS_GTK_REKEY |
WIPHY_WOWLAN_GTK_REKEY_FAILURE,
.n_patterns = MWIFIEX_MEF_MAX_FILTERS, .n_patterns = MWIFIEX_MEF_MAX_FILTERS,
.pattern_min_len = 1, .pattern_min_len = 1,
.pattern_max_len = MWIFIEX_MAX_PATTERN_LEN, .pattern_max_len = MWIFIEX_MAX_PATTERN_LEN,

View File

@ -620,6 +620,7 @@ enum HS_WAKEUP_REASON {
MAGIC_PATTERN_MATCHED, MAGIC_PATTERN_MATCHED,
CONTROL_FRAME_MATCHED, CONTROL_FRAME_MATCHED,
MANAGEMENT_FRAME_MATCHED, MANAGEMENT_FRAME_MATCHED,
GTK_REKEY_FAILURE,
RESERVED RESERVED
}; };