Lines Matching refs:wowlan
624 struct cfg80211_wowlan *wowlan) in iwl_mvm_send_patterns_v1() argument
633 if (!wowlan->n_patterns) in iwl_mvm_send_patterns_v1()
636 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
642 pattern_cmd->n_patterns = cpu_to_le32(wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
644 for (i = 0; i < wowlan->n_patterns; i++) { in iwl_mvm_send_patterns_v1()
645 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns_v1()
648 wowlan->patterns[i].mask, mask_len); in iwl_mvm_send_patterns_v1()
650 wowlan->patterns[i].pattern, in iwl_mvm_send_patterns_v1()
651 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns_v1()
654 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns_v1()
665 struct cfg80211_wowlan *wowlan) in iwl_mvm_send_patterns() argument
677 if (!wowlan->n_patterns) in iwl_mvm_send_patterns()
681 wowlan->n_patterns * sizeof(struct iwl_wowlan_pattern_v2); in iwl_mvm_send_patterns()
687 pattern_cmd->n_patterns = wowlan->n_patterns; in iwl_mvm_send_patterns()
691 for (i = 0; i < wowlan->n_patterns; i++) { in iwl_mvm_send_patterns()
692 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns()
698 wowlan->patterns[i].mask, mask_len); in iwl_mvm_send_patterns()
700 wowlan->patterns[i].pattern, in iwl_mvm_send_patterns()
701 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns()
704 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns()
908 struct cfg80211_wowlan *wowlan, in iwl_mvm_get_wowlan_config() argument
934 if (wowlan->disconnect) in iwl_mvm_get_wowlan_config()
938 if (wowlan->magic_pkt) in iwl_mvm_get_wowlan_config()
941 if (wowlan->gtk_rekey_failure) in iwl_mvm_get_wowlan_config()
944 if (wowlan->eap_identity_req) in iwl_mvm_get_wowlan_config()
947 if (wowlan->four_way_handshake) in iwl_mvm_get_wowlan_config()
950 if (wowlan->n_patterns) in iwl_mvm_get_wowlan_config()
954 if (wowlan->rfkill_release) in iwl_mvm_get_wowlan_config()
958 if (wowlan->tcp) { in iwl_mvm_get_wowlan_config()
970 if (wowlan->any) { in iwl_mvm_get_wowlan_config()
1104 struct cfg80211_wowlan *wowlan, in iwl_mvm_wowlan_config() argument
1144 ret = iwl_mvm_send_patterns(mvm, vif, wowlan); in iwl_mvm_wowlan_config()
1146 ret = iwl_mvm_send_patterns_v1(mvm, wowlan); in iwl_mvm_wowlan_config()
1155 struct cfg80211_wowlan *wowlan, in iwl_mvm_netdetect_config() argument
1218 struct cfg80211_wowlan *wowlan, in __iwl_mvm_suspend() argument
1244 if (!wowlan) { in __iwl_mvm_suspend()
1269 if (!wowlan->nd_config) { in __iwl_mvm_suspend()
1275 mvm, wowlan, wowlan->nd_config, vif); in __iwl_mvm_suspend()
1293 ret = iwl_mvm_get_wowlan_config(mvm, wowlan, &wowlan_config_cmd, in __iwl_mvm_suspend()
1297 ret = iwl_mvm_wowlan_config(mvm, wowlan, &wowlan_config_cmd, in __iwl_mvm_suspend()
1364 int iwl_mvm_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) in iwl_mvm_suspend() argument
1372 return __iwl_mvm_suspend(hw, wowlan, false); in iwl_mvm_suspend()