You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
nl80211: advertise GTK rekey support, new triggers
Since we now have the necessary API in place to support GTK rekeying, applications will need to know whether it is supported by a device. Add a pseudo-trigger that is used only to advertise that capability. Also, add some new triggers that match what iwlagn devices can do. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
95acac61ba
commit
77dbbb1389
+20
-4
@@ -1146,9 +1146,15 @@ struct cfg80211_wowlan_trig_pkt_pattern {
|
||||
* @magic_pkt: wake up on receiving magic packet
|
||||
* @patterns: wake up on receiving packet matching a pattern
|
||||
* @n_patterns: number of patterns
|
||||
* @gtk_rekey_failure: wake up on GTK rekey failure
|
||||
* @eap_identity_req: wake up on EAP identity request packet
|
||||
* @four_way_handshake: wake up on 4-way handshake
|
||||
* @rfkill_release: wake up when rfkill is released
|
||||
*/
|
||||
struct cfg80211_wowlan {
|
||||
bool any, disconnect, magic_pkt;
|
||||
bool any, disconnect, magic_pkt, gtk_rekey_failure,
|
||||
eap_identity_req, four_way_handshake,
|
||||
rfkill_release;
|
||||
struct cfg80211_wowlan_trig_pkt_pattern *patterns;
|
||||
int n_patterns;
|
||||
};
|
||||
@@ -1673,11 +1679,21 @@ struct ieee80211_txrx_stypes {
|
||||
* @WIPHY_WOWLAN_MAGIC_PKT: supports wakeup on magic packet
|
||||
* (see nl80211.h)
|
||||
* @WIPHY_WOWLAN_DISCONNECT: supports wakeup on disconnect
|
||||
* @WIPHY_WOWLAN_SUPPORTS_GTK_REKEY: supports GTK rekeying while asleep
|
||||
* @WIPHY_WOWLAN_GTK_REKEY_FAILURE: supports wakeup on GTK rekey failure
|
||||
* @WIPHY_WOWLAN_EAP_IDENTITY_REQ: supports wakeup on EAP identity request
|
||||
* @WIPHY_WOWLAN_4WAY_HANDSHAKE: supports wakeup on 4-way handshake failure
|
||||
* @WIPHY_WOWLAN_RFKILL_RELEASE: supports wakeup on RF-kill release
|
||||
*/
|
||||
enum wiphy_wowlan_support_flags {
|
||||
WIPHY_WOWLAN_ANY = BIT(0),
|
||||
WIPHY_WOWLAN_MAGIC_PKT = BIT(1),
|
||||
WIPHY_WOWLAN_DISCONNECT = BIT(2),
|
||||
WIPHY_WOWLAN_ANY = BIT(0),
|
||||
WIPHY_WOWLAN_MAGIC_PKT = BIT(1),
|
||||
WIPHY_WOWLAN_DISCONNECT = BIT(2),
|
||||
WIPHY_WOWLAN_SUPPORTS_GTK_REKEY = BIT(3),
|
||||
WIPHY_WOWLAN_GTK_REKEY_FAILURE = BIT(4),
|
||||
WIPHY_WOWLAN_EAP_IDENTITY_REQ = BIT(5),
|
||||
WIPHY_WOWLAN_4WAY_HANDSHAKE = BIT(6),
|
||||
WIPHY_WOWLAN_RFKILL_RELEASE = BIT(7),
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user