Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Cette révision appartient à :
@@ -527,6 +527,26 @@ struct cfg80211_beacon_data {
|
||||
size_t probe_resp_len;
|
||||
};
|
||||
|
||||
struct mac_address {
|
||||
u8 addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cfg80211_acl_data - Access control list data
|
||||
*
|
||||
* @acl_policy: ACL policy to be applied on the station's
|
||||
entry specified by mac_addr
|
||||
* @n_acl_entries: Number of MAC address entries passed
|
||||
* @mac_addrs: List of MAC addresses of stations to be used for ACL
|
||||
*/
|
||||
struct cfg80211_acl_data {
|
||||
enum nl80211_acl_policy acl_policy;
|
||||
int n_acl_entries;
|
||||
|
||||
/* Keep it last */
|
||||
struct mac_address mac_addrs[];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cfg80211_ap_settings - AP configuration
|
||||
*
|
||||
@@ -546,6 +566,8 @@ struct cfg80211_beacon_data {
|
||||
* @inactivity_timeout: time in seconds to determine station's inactivity.
|
||||
* @p2p_ctwindow: P2P CT Window
|
||||
* @p2p_opp_ps: P2P opportunistic PS
|
||||
* @acl: ACL configuration used by the drivers which has support for
|
||||
* MAC address based access control
|
||||
*/
|
||||
struct cfg80211_ap_settings {
|
||||
struct cfg80211_chan_def chandef;
|
||||
@@ -562,6 +584,7 @@ struct cfg80211_ap_settings {
|
||||
int inactivity_timeout;
|
||||
u8 p2p_ctwindow;
|
||||
bool p2p_opp_ps;
|
||||
const struct cfg80211_acl_data *acl;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1796,6 +1819,13 @@ struct cfg80211_gtk_rekey_data {
|
||||
*
|
||||
* @start_p2p_device: Start the given P2P device.
|
||||
* @stop_p2p_device: Stop the given P2P device.
|
||||
*
|
||||
* @set_mac_acl: Sets MAC address control list in AP and P2P GO mode.
|
||||
* Parameters include ACL policy, an array of MAC address of stations
|
||||
* and the number of MAC addresses. If there is already a list in driver
|
||||
* this new list replaces the existing one. Driver has to clear its ACL
|
||||
* when number of MAC addresses entries is passed as 0. Drivers which
|
||||
* advertise the support for MAC based ACL have to implement this callback.
|
||||
*/
|
||||
struct cfg80211_ops {
|
||||
int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow);
|
||||
@@ -2016,6 +2046,9 @@ struct cfg80211_ops {
|
||||
struct wireless_dev *wdev);
|
||||
void (*stop_p2p_device)(struct wiphy *wiphy,
|
||||
struct wireless_dev *wdev);
|
||||
|
||||
int (*set_mac_acl)(struct wiphy *wiphy, struct net_device *dev,
|
||||
const struct cfg80211_acl_data *params);
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -2181,10 +2214,6 @@ struct ieee80211_iface_combination {
|
||||
u8 radar_detect_widths;
|
||||
};
|
||||
|
||||
struct mac_address {
|
||||
u8 addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
struct ieee80211_txrx_stypes {
|
||||
u16 tx, rx;
|
||||
};
|
||||
@@ -2325,6 +2354,9 @@ struct wiphy_wowlan_support {
|
||||
* @ap_sme_capa: AP SME capabilities, flags from &enum nl80211_ap_sme_features.
|
||||
* @ht_capa_mod_mask: Specify what ht_cap values can be over-ridden.
|
||||
* If null, then none can be over-ridden.
|
||||
*
|
||||
* @max_acl_mac_addrs: Maximum number of MAC addresses that the device
|
||||
* supports for ACL.
|
||||
*/
|
||||
struct wiphy {
|
||||
/* assign these fields before you register the wiphy */
|
||||
@@ -2346,6 +2378,8 @@ struct wiphy {
|
||||
/* Supported interface modes, OR together BIT(NL80211_IFTYPE_...) */
|
||||
u16 interface_modes;
|
||||
|
||||
u16 max_acl_mac_addrs;
|
||||
|
||||
u32 flags, features;
|
||||
|
||||
u32 ap_sme_capa;
|
||||
|
@@ -297,11 +297,9 @@ enum ieee80211_rssi_event {
|
||||
* may filter ARP queries targeted for other addresses than listed here.
|
||||
* The driver must allow ARP queries targeted for all address listed here
|
||||
* to pass through. An empty list implies no ARP queries need to pass.
|
||||
* @arp_addr_cnt: Number of addresses currently on the list.
|
||||
* @arp_filter_enabled: Enable ARP filtering - if enabled, the hardware may
|
||||
* filter ARP queries based on the @arp_addr_list, if disabled, the
|
||||
* hardware must not perform any ARP filtering. Note, that the filter will
|
||||
* be enabled also in promiscuous mode.
|
||||
* @arp_addr_cnt: Number of addresses currently on the list. Note that this
|
||||
* may be larger than %IEEE80211_BSS_ARP_ADDR_LIST_LEN (the arp_addr_list
|
||||
* array size), it's up to the driver what to do in that case.
|
||||
* @qos: This is a QoS-enabled BSS.
|
||||
* @idle: This interface is idle. There's also a global idle flag in the
|
||||
* hardware config which may be more appropriate depending on what
|
||||
@@ -338,8 +336,7 @@ struct ieee80211_bss_conf {
|
||||
u32 cqm_rssi_hyst;
|
||||
struct cfg80211_chan_def chandef;
|
||||
__be32 arp_addr_list[IEEE80211_BSS_ARP_ADDR_LIST_LEN];
|
||||
u8 arp_addr_cnt;
|
||||
bool arp_filter_enabled;
|
||||
int arp_addr_cnt;
|
||||
bool qos;
|
||||
bool idle;
|
||||
bool ps;
|
||||
@@ -1630,6 +1627,10 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb);
|
||||
* rekeying), it will not include a valid phase 1 key. The valid phase 1 key is
|
||||
* provided by update_tkip_key only. The trigger that makes mac80211 call this
|
||||
* handler is software decryption with wrap around of iv16.
|
||||
*
|
||||
* The set_default_unicast_key() call updates the default WEP key index
|
||||
* configured to the hardware for WEP encryption type. This is required
|
||||
* for devices that support offload of data packets (e.g. ARP responses).
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -2208,6 +2209,10 @@ enum ieee80211_rate_control_changed {
|
||||
* After rekeying was done it should (for example during resume) notify
|
||||
* userspace of the new replay counter using ieee80211_gtk_rekey_notify().
|
||||
*
|
||||
* @set_default_unicast_key: Set the default (unicast) key index, useful for
|
||||
* WEP when the device sends data packets autonomously, e.g. for ARP
|
||||
* offloading. The index can be 0-3, or -1 for unsetting it.
|
||||
*
|
||||
* @hw_scan: Ask the hardware to service the scan request, no need to start
|
||||
* the scan state machine in stack. The scan must honour the channel
|
||||
* configuration done by the regulatory agent in the wiphy's
|
||||
@@ -2492,6 +2497,9 @@ enum ieee80211_rate_control_changed {
|
||||
* driver's resume function returned 1, as this is just like an "inline"
|
||||
* hardware restart. This callback may sleep.
|
||||
*
|
||||
* @ipv6_addr_change: IPv6 address assignment on the given interface changed.
|
||||
* Currently, this is only called for managed or P2P client interfaces.
|
||||
* This callback is optional; it must not sleep.
|
||||
*/
|
||||
struct ieee80211_ops {
|
||||
void (*tx)(struct ieee80211_hw *hw,
|
||||
@@ -2539,6 +2547,8 @@ struct ieee80211_ops {
|
||||
void (*set_rekey_data)(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
struct cfg80211_gtk_rekey_data *data);
|
||||
void (*set_default_unicast_key)(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif, int idx);
|
||||
int (*hw_scan)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
struct cfg80211_scan_request *req);
|
||||
void (*cancel_hw_scan)(struct ieee80211_hw *hw,
|
||||
@@ -2623,6 +2633,7 @@ struct ieee80211_ops {
|
||||
int (*set_bitrate_mask)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
const struct cfg80211_bitrate_mask *mask);
|
||||
void (*rssi_callback)(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
enum ieee80211_rssi_event rssi_event);
|
||||
|
||||
void (*allow_buffered_frames)(struct ieee80211_hw *hw,
|
||||
@@ -2665,6 +2676,12 @@ struct ieee80211_ops {
|
||||
struct ieee80211_chanctx_conf *ctx);
|
||||
|
||||
void (*restart_complete)(struct ieee80211_hw *hw);
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
void (*ipv6_addr_change)(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
struct inet6_dev *idev);
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur