Home
last modified time | relevance | path

Searched refs:wowlan (Results 1 – 25 of 62) sorted by relevance

123

/linux-6.1.9/net/mac80211/
Dpm.c21 int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) in __ieee80211_suspend() argument
42 !(wowlan && wowlan->any)) { in __ieee80211_suspend()
53 if (!(wowlan && wowlan->any)) in __ieee80211_suspend()
82 local->wowlan = wowlan; in __ieee80211_suspend()
83 if (local->wowlan) { in __ieee80211_suspend()
117 err = drv_suspend(local, wowlan); in __ieee80211_suspend()
120 local->wowlan = false; in __ieee80211_suspend()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dwow.c34 struct cfg80211_wowlan *wowlan) in ath9k_wow_map_triggers() argument
38 if (wowlan->disconnect) in ath9k_wow_map_triggers()
41 if (wowlan->magic_pkt) in ath9k_wow_map_triggers()
44 if (wowlan->n_patterns) in ath9k_wow_map_triggers()
139 struct cfg80211_wowlan *wowlan) in ath9k_wow_add_pattern() argument
142 struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath9k_wow_add_pattern()
148 for (i = 0; i < wowlan->n_patterns; i++) { in ath9k_wow_add_pattern()
168 struct cfg80211_wowlan *wowlan) in ath9k_suspend() argument
186 if (WARN_ON(!wowlan)) { in ath9k_suspend()
213 triggers = ath9k_wow_map_triggers(sc, wowlan); in ath9k_suspend()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dlib.c995 struct cfg80211_wowlan *wowlan) in iwlagn_send_patterns() argument
1004 if (!wowlan->n_patterns) in iwlagn_send_patterns()
1007 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwlagn_send_patterns()
1013 pattern_cmd->n_patterns = cpu_to_le32(wowlan->n_patterns); in iwlagn_send_patterns()
1015 for (i = 0; i < wowlan->n_patterns; i++) { in iwlagn_send_patterns()
1016 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwlagn_send_patterns()
1019 wowlan->patterns[i].mask, mask_len); in iwlagn_send_patterns()
1021 wowlan->patterns[i].pattern, in iwlagn_send_patterns()
1022 wowlan->patterns[i].pattern_len); in iwlagn_send_patterns()
1025 wowlan->patterns[i].pattern_len; in iwlagn_send_patterns()
[all …]
Dmac80211.c165 hw->wiphy->wowlan = &priv->wowlan_support; in iwlagn_mac_setup_register()
356 struct cfg80211_wowlan *wowlan) in iwlagn_mac_suspend() argument
362 if (WARN_ON(!wowlan)) in iwlagn_mac_suspend()
375 ret = iwlagn_suspend(priv, wowlan); in iwlagn_mac_suspend()
388 priv->wowlan = false; in iwlagn_mac_suspend()
550 priv->wowlan = false; in iwlagn_mac_resume()
Dagn.h138 struct cfg80211_wowlan *wowlan);
139 int iwlagn_suspend(struct iwl_priv *priv, struct cfg80211_wowlan *wowlan);
Dpower.c284 if (priv->wowlan) in iwl_power_build_cmd()
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dwow.c266 struct cfg80211_wowlan *wowlan) in ath10k_vif_wow_set_wakeups() argument
271 const struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath10k_vif_wow_set_wakeups()
289 if (wowlan->disconnect) { in ath10k_vif_wow_set_wakeups()
296 if (wowlan->magic_pkt) in ath10k_vif_wow_set_wakeups()
299 if (wowlan->nd_config) { in ath10k_vif_wow_set_wakeups()
310 wowlan->nd_config, pno); in ath10k_vif_wow_set_wakeups()
323 for (i = 0; i < wowlan->n_patterns; i++) { in ath10k_vif_wow_set_wakeups()
386 struct cfg80211_wowlan *wowlan) in ath10k_wow_set_wakeups() argument
394 ret = ath10k_vif_wow_set_wakeups(arvif, wowlan); in ath10k_wow_set_wakeups()
498 struct cfg80211_wowlan *wowlan) in ath10k_wow_op_suspend() argument
[all …]
Dwow.h18 struct cfg80211_wowlan *wowlan);
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Dwow.c804 struct cfg80211_wowlan *wowlan) in rtw_wow_set_wakeups() argument
811 if (wowlan->disconnect) in rtw_wow_set_wakeups()
813 if (wowlan->magic_pkt) in rtw_wow_set_wakeups()
815 if (wowlan->gtk_rekey_failure) in rtw_wow_set_wakeups()
818 if (wowlan->nd_config) in rtw_wow_set_wakeups()
819 rtw_wow_check_pno(rtwdev, wowlan->nd_config); in rtw_wow_set_wakeups()
826 if (wowlan->n_patterns && wowlan->patterns) { in rtw_wow_set_wakeups()
827 rtw_wow->pattern_cnt = wowlan->n_patterns; in rtw_wow_set_wakeups()
828 for (i = 0; i < wowlan->n_patterns; i++) in rtw_wow_set_wakeups()
830 wowlan->patterns + i, in rtw_wow_set_wakeups()
[all …]
Dwow.h55 int rtw_wow_suspend(struct rtw_dev *rtwdev, struct cfg80211_wowlan *wowlan);
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c624 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()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dwow.c338 struct cfg80211_wowlan *wowlan) in ath11k_vif_wow_set_wakeups() argument
343 const struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath11k_vif_wow_set_wakeups()
361 if (wowlan->disconnect) { in ath11k_vif_wow_set_wakeups()
368 if (wowlan->magic_pkt) in ath11k_vif_wow_set_wakeups()
371 if (wowlan->nd_config) { in ath11k_vif_wow_set_wakeups()
382 wowlan->nd_config, pno); in ath11k_vif_wow_set_wakeups()
395 for (i = 0; i < wowlan->n_patterns; i++) { in ath11k_vif_wow_set_wakeups()
464 struct cfg80211_wowlan *wowlan) in ath11k_wow_set_wakeups() argument
472 ret = ath11k_vif_wow_set_wakeups(arvif, wowlan); in ath11k_wow_set_wakeups()
670 struct cfg80211_wowlan *wowlan) in ath11k_wow_op_suspend() argument
[all …]
Dwow.h31 struct cfg80211_wowlan *wowlan);
/linux-6.1.9/net/wireless/
Dcore.c667 if (WARN_ON(wiphy->wowlan && in wiphy_register()
668 (wiphy->wowlan->flags & WIPHY_WOWLAN_GTK_REKEY_FAILURE) && in wiphy_register()
669 !(wiphy->wowlan->flags & WIPHY_WOWLAN_SUPPORTS_GTK_REKEY))) in wiphy_register()
671 if (WARN_ON(wiphy->wowlan && in wiphy_register()
672 !wiphy->wowlan->flags && !wiphy->wowlan->n_patterns && in wiphy_register()
673 !wiphy->wowlan->tcp)) in wiphy_register()
925 if (WARN_ON(rdev->wiphy.wowlan && rdev->wiphy.wowlan->n_patterns && in wiphy_register()
926 (!rdev->wiphy.wowlan->pattern_min_len || in wiphy_register()
927 rdev->wiphy.wowlan->pattern_min_len > in wiphy_register()
928 rdev->wiphy.wowlan->pattern_max_len))) in wiphy_register()
Dnl80211.c1675 const struct wiphy_wowlan_tcp_support *tcp = rdev->wiphy.wowlan->tcp; in nl80211_send_wowlan_tcp_caps()
1719 if (!rdev->wiphy.wowlan) in nl80211_send_wowlan()
1727 if (((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_ANY) && in nl80211_send_wowlan()
1729 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_DISCONNECT) && in nl80211_send_wowlan()
1731 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_MAGIC_PKT) && in nl80211_send_wowlan()
1733 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_SUPPORTS_GTK_REKEY) && in nl80211_send_wowlan()
1735 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_GTK_REKEY_FAILURE) && in nl80211_send_wowlan()
1737 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_EAP_IDENTITY_REQ) && in nl80211_send_wowlan()
1739 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_4WAY_HANDSHAKE) && in nl80211_send_wowlan()
1741 ((rdev->wiphy.wowlan->flags & WIPHY_WOWLAN_RFKILL_RELEASE) && in nl80211_send_wowlan()
[all …]
/linux-6.1.9/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1842 struct cfg80211_wowlan *wowlan) in rsi_wow_map_triggers() argument
1848 if (wowlan->any) in rsi_wow_map_triggers()
1850 if (wowlan->magic_pkt) in rsi_wow_map_triggers()
1852 if (wowlan->disconnect) in rsi_wow_map_triggers()
1854 if (wowlan->gtk_rekey_failure || wowlan->eap_identity_req || in rsi_wow_map_triggers()
1855 wowlan->four_way_handshake) in rsi_wow_map_triggers()
1861 int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan) in rsi_config_wowlan() argument
1873 if (WARN_ON(!wowlan)) { in rsi_config_wowlan()
1879 triggers = rsi_wow_map_triggers(common, wowlan); in rsi_config_wowlan()
1911 struct cfg80211_wowlan *wowlan) in rsi_mac80211_suspend() argument
[all …]
Drsi_common.h87 int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan);
/linux-6.1.9/drivers/net/wireless/st/cw1200/
Dpm.h30 struct cfg80211_wowlan *wowlan);
Dpm.c157 int cw1200_wow_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) in cw1200_wow_suspend() argument
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c3337 struct cfg80211_wowlan *wowlan) in mwifiex_set_wowlan_mef_entry() argument
3348 for (i = 0; i < wowlan->n_patterns; i++) { in mwifiex_set_wowlan_mef_entry()
3350 if (!mwifiex_is_pattern_supported(&wowlan->patterns[i], in mwifiex_set_wowlan_mef_entry()
3358 if (!wowlan->patterns[i].pkt_offset) { in mwifiex_set_wowlan_mef_entry()
3376 wowlan->patterns[i].pkt_offset; in mwifiex_set_wowlan_mef_entry()
3391 if (wowlan->magic_pkt) { in mwifiex_set_wowlan_mef_entry()
3418 struct cfg80211_wowlan *wowlan) in mwifiex_set_mef_filter() argument
3424 if (wowlan->n_patterns || wowlan->magic_pkt) in mwifiex_set_mef_filter()
3439 if (wowlan->n_patterns || wowlan->magic_pkt) { in mwifiex_set_mef_filter()
3441 &mef_entry[1], wowlan); in mwifiex_set_mef_filter()
[all …]
/linux-6.1.9/drivers/net/wireless/quantenna/qtnfmac/
Dcfg80211.c940 static int qtnf_suspend(struct wiphy *wiphy, struct cfg80211_wowlan *wowlan) in qtnf_suspend() argument
953 if (!wowlan) { in qtnf_suspend()
961 ret = qtnf_cmd_send_wowlan_set(vif, wowlan); in qtnf_suspend()
1196 if (macinfo->wowlan) in qtnf_wiphy_register()
1197 wiphy->wowlan = macinfo->wowlan; in qtnf_wiphy_register()
Dcommands.c978 const struct qlink_wowlan_capab_data *wowlan) in qtnf_parse_wowlan_info() argument
988 switch (le16_to_cpu(wowlan->version)) { in qtnf_parse_wowlan_info()
990 data1 = (struct qlink_wowlan_support *)wowlan->data; in qtnf_parse_wowlan_info()
997 mac_info->wowlan = supp; in qtnf_parse_wowlan_info()
1001 mac->macid, le16_to_cpu(wowlan->version)); in qtnf_parse_wowlan_info()
1017 const struct qlink_wowlan_capab_data *wowlan; in qtnf_parse_variable_mac_info() local
1124 if (tlv_value_len < sizeof(*wowlan)) in qtnf_parse_variable_mac_info()
1127 wowlan = (void *)tlv->val; in qtnf_parse_variable_mac_info()
1128 if (!le16_to_cpu(wowlan->len)) { in qtnf_parse_variable_mac_info()
1134 rec_len = sizeof(*wowlan) + le16_to_cpu(wowlan->len); in qtnf_parse_variable_mac_info()
[all …]
Dcore.h95 struct wiphy_wowlan_support *wowlan; member
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.c2428 bool suspend, struct cfg80211_wowlan *wowlan) in mt76_connac_mcu_set_wow_ctrl() argument
2455 if (wowlan->magic_pkt) in mt76_connac_mcu_set_wow_ctrl()
2457 if (wowlan->disconnect) in mt76_connac_mcu_set_wow_ctrl()
2460 if (wowlan->nd_config) { in mt76_connac_mcu_set_wow_ctrl()
2461 mt76_connac_mcu_sched_scan_req(phy, vif, wowlan->nd_config); in mt76_connac_mcu_set_wow_ctrl()
2465 if (wowlan->n_patterns) in mt76_connac_mcu_set_wow_ctrl()
2520 struct cfg80211_wowlan *wowlan = hw->wiphy->wowlan_config; in mt76_connac_mcu_set_suspend_iter() local
2528 for (i = 0; i < wowlan->n_patterns; i++) in mt76_connac_mcu_set_suspend_iter()
2530 &wowlan->patterns[i]); in mt76_connac_mcu_set_suspend_iter()
2531 mt76_connac_mcu_set_wow_ctrl(phy, vif, suspend, wowlan); in mt76_connac_mcu_set_suspend_iter()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/
Dbase.c417 rtlpriv->wowlan.flags = WIPHY_WOWLAN_MAGIC_PKT; in _rtl_init_mac80211()
419 rtlpriv->wowlan.n_patterns = in _rtl_init_mac80211()
421 rtlpriv->wowlan.pattern_min_len = MIN_WOL_PATTERN_SIZE; in _rtl_init_mac80211()
422 rtlpriv->wowlan.pattern_max_len = MAX_WOL_PATTERN_SIZE; in _rtl_init_mac80211()
424 hw->wiphy->wowlan = &rtlpriv->wowlan; in _rtl_init_mac80211()

123