@@ -72,12 +72,12 @@ struct wiphy;
7272 *
7373 * @IEEE80211_CHAN_DISABLED: This channel is disabled.
7474 * @IEEE80211_CHAN_NO_IR: do not initiate radiation, this includes
75- * sending probe requests or beaconing.
75+ * sending probe requests or beaconing.
7676 * @IEEE80211_CHAN_RADAR: Radar detection is required on this channel.
7777 * @IEEE80211_CHAN_NO_HT40PLUS: extension channel above this channel
78- * is not permitted.
78+ * is not permitted.
7979 * @IEEE80211_CHAN_NO_HT40MINUS: extension channel below this channel
80- * is not permitted.
80+ * is not permitted.
8181 * @IEEE80211_CHAN_NO_OFDM: OFDM is not allowed on this channel.
8282 * @IEEE80211_CHAN_NO_80MHZ: If the driver supports 80 MHz on the band,
8383 * this flag indicates that an 80 MHz channel cannot use this
@@ -626,6 +626,41 @@ struct cfg80211_chan_def {
626626 struct ieee80211_edmg edmg ;
627627};
628628
629+ /**
630+ * struct cfg80211_tid_cfg - TID specific configuration
631+ * @config_override: Flag to notify driver to reset TID configuration
632+ * of the peer.
633+ * @tids: bitmap of TIDs to modify
634+ * @mask: bitmap of attributes indicating which parameter changed,
635+ * similar to &nl80211_tid_config_supp.
636+ * @noack: noack configuration value for the TID
637+ * @retry_long: retry count value
638+ * @retry_short: retry count value
639+ * @ampdu: Enable/Disable aggregation
640+ * @rtscts: Enable/Disable RTS/CTS
641+ */
642+ struct cfg80211_tid_cfg {
643+ bool config_override ;
644+ u8 tids ;
645+ u32 mask ;
646+ enum nl80211_tid_config noack ;
647+ u8 retry_long , retry_short ;
648+ enum nl80211_tid_config ampdu ;
649+ enum nl80211_tid_config rtscts ;
650+ };
651+
652+ /**
653+ * struct cfg80211_tid_config - TID configuration
654+ * @peer: Station's MAC address
655+ * @n_tid_conf: Number of TID specific configurations to be applied
656+ * @tid_conf: Configuration change info
657+ */
658+ struct cfg80211_tid_config {
659+ const u8 * peer ;
660+ u32 n_tid_conf ;
661+ struct cfg80211_tid_cfg tid_conf [];
662+ };
663+
629664/**
630665 * cfg80211_get_chandef_type - return old channel type from chandef
631666 * @chandef: the channel definition
@@ -1686,7 +1721,7 @@ struct mpath_info {
16861721 * @basic_rates_len: number of basic rates
16871722 * @ap_isolate: do not forward packets between connected stations
16881723 * @ht_opmode: HT Operation mode
1689- * (u16 = opmode, -1 = do not change)
1724+ * (u16 = opmode, -1 = do not change)
16901725 * @p2p_ctwindow: P2P CT Window (-1 = no change)
16911726 * @p2p_opp_ps: P2P opportunistic PS (-1 = no change)
16921727 */
@@ -2062,8 +2097,8 @@ struct cfg80211_bss_select_adjust {
20622097 * @ie_len: length of ie in octets
20632098 * @flags: bit field of flags controlling operation
20642099 * @match_sets: sets of parameters to be matched for a scan result
2065- * entry to be considered valid and to be passed to the host
2066- * (others are filtered out).
2100+ * entry to be considered valid and to be passed to the host
2101+ * (others are filtered out).
20672102 * If ommited, all results are passed.
20682103 * @n_match_sets: number of match sets
20692104 * @report_results: indicates that results were reported for this request
@@ -2456,7 +2491,7 @@ struct cfg80211_disassoc_request {
24562491 * will be used in ht_capa. Un-supported values will be ignored.
24572492 * @ht_capa_mask: The bits of ht_capa which are to be used.
24582493 * @wep_keys: static WEP keys, if not NULL points to an array of
2459- * CFG80211_MAX_WEP_KEYS WEP keys
2494+ * CFG80211_MAX_WEP_KEYS WEP keys
24602495 * @wep_tx_key: key index (0..3) of the default TX static WEP key
24612496 */
24622497struct cfg80211_ibss_params {
@@ -3369,6 +3404,8 @@ struct cfg80211_update_owe_info {
33693404 * @set_default_key: set the default key on an interface
33703405 *
33713406 * @set_default_mgmt_key: set the default management frame key on an interface
3407+
3408+ * @set_default_beacon_key: set the default Beacon frame key on an interface
33723409 *
33733410 * @set_rekey_data: give the data necessary for GTK rekeying to the driver
33743411 *
@@ -3669,6 +3706,10 @@ struct cfg80211_update_owe_info {
36693706 *
36703707 * @probe_mesh_link: Probe direct Mesh peer's link quality by sending data frame
36713708 * and overrule HWMP path selection algorithm.
3709+ * @set_tid_config: TID specific configuration, this can be peer or BSS specific
3710+ * This callback may sleep.
3711+ * @reset_tid_config: Reset TID specific configuration for the peer, for the
3712+ * given TIDs. This callback may sleep.
36723713 */
36733714struct cfg80211_ops {
36743715 int (* suspend )(struct wiphy * wiphy , struct cfg80211_wowlan * wow );
@@ -3702,6 +3743,9 @@ struct cfg80211_ops {
37023743 int (* set_default_mgmt_key )(struct wiphy * wiphy ,
37033744 struct net_device * netdev ,
37043745 u8 key_index );
3746+ int (* set_default_beacon_key )(struct wiphy * wiphy ,
3747+ struct net_device * netdev ,
3748+ u8 key_index );
37053749
37063750 int (* start_ap )(struct wiphy * wiphy , struct net_device * dev ,
37073751 struct cfg80211_ap_settings * settings );
@@ -3974,8 +4018,7 @@ struct cfg80211_ops {
39744018 int (* tx_control_port )(struct wiphy * wiphy ,
39754019 struct net_device * dev ,
39764020 const u8 * buf , size_t len ,
3977- const u8 * dest , const u8 * src ,
3978- const __be16 proto ,
4021+ const u8 * dest , const __be16 proto ,
39794022 const bool noencrypt );
39804023
39814024 int (* get_ftm_responder_stats )(struct wiphy * wiphy ,
@@ -3990,6 +4033,10 @@ struct cfg80211_ops {
39904033 struct cfg80211_update_owe_info * owe_info );
39914034 int (* probe_mesh_link )(struct wiphy * wiphy , struct net_device * dev ,
39924035 const u8 * buf , size_t len );
4036+ int (* set_tid_config )(struct wiphy * wiphy , struct net_device * dev ,
4037+ struct cfg80211_tid_config * tid_conf );
4038+ int (* reset_tid_config )(struct wiphy * wiphy , struct net_device * dev ,
4039+ const u8 * peer , u8 tids );
39934040};
39944041
39954042/*
@@ -4427,7 +4474,7 @@ struct wiphy_iftype_akm_suites {
44274474 * note that if your driver uses wiphy_apply_custom_regulatory()
44284475 * the reg_notifier's request can be passed as NULL
44294476 * @regd: the driver's regulatory domain, if one was requested via
4430- * the regulatory_hint() API. This can be used by the driver
4477+ * the regulatory_hint() API. This can be used by the driver
44314478 * on the reg_notifier() if it chooses to ignore future
44324479 * regulatory domain changes caused by other drivers.
44334480 * @signal_type: signal type reported in &struct cfg80211_bss.
@@ -4463,10 +4510,11 @@ struct wiphy_iftype_akm_suites {
44634510 * the same number of arbitrary MAC addresses.
44644511 * @registered: protects ->resume and ->suspend sysfs callbacks against
44654512 * unregister hardware
4466- * @debugfsdir: debugfs directory used for this wiphy, will be renamed
4467- * automatically on wiphy renames
4468- * @dev: (virtual) struct device for this wiphy
4469- * @registered: helps synchronize suspend/resume with wiphy unregister
4513+ * @debugfsdir: debugfs directory used for this wiphy (ieee80211/<wiphyname>).
4514+ * It will be renamed automatically on wiphy renames
4515+ * @dev: (virtual) struct device for this wiphy. The item in
4516+ * /sys/class/ieee80211/ points to this. You need use set_wiphy_dev()
4517+ * (see below).
44704518 * @wext: wireless extension handlers
44714519 * @priv: driver private data (sized according to wiphy_new() parameter)
44724520 * @interface_modes: bitmask of interfaces types valid for this wiphy,
@@ -4577,12 +4625,6 @@ struct wiphy_iftype_akm_suites {
45774625 * and probe responses. This value should be set if the driver
45784626 * wishes to limit the number of csa counters. Default (0) means
45794627 * infinite.
4580- * @max_adj_channel_rssi_comp: max offset of between the channel on which the
4581- * frame was sent and the channel on which the frame was heard for which
4582- * the reported rssi is still valid. If a driver is able to compensate the
4583- * low rssi when a frame is heard on different channel, then it should set
4584- * this variable to the maximal offset for which it can compensate.
4585- * This value should be set in MHz.
45864628 * @bss_select_support: bitmask indicating the BSS selection criteria supported
45874629 * by the driver in the .connect() callback. The bit position maps to the
45884630 * attribute indices defined in &enum nl80211_bss_select_attr.
@@ -4602,11 +4644,19 @@ struct wiphy_iftype_akm_suites {
46024644 * @support_mbssid must be set for this to have any effect.
46034645 *
46044646 * @pmsr_capa: peer measurement capabilities
4647+ *
4648+ * @tid_config_support: describes the per-TID config support that the
4649+ * device has
4650+ * @tid_config_support.vif: bitmap of attributes (configurations)
4651+ * supported by the driver for each vif
4652+ * @tid_config_support.peer: bitmap of attributes (configurations)
4653+ * supported by the driver for each peer
4654+ * @tid_config_support.max_retry: maximum supported retry count for
4655+ * long/short retry configuration
46054656 */
46064657struct wiphy {
46074658 /* assign these fields before you register the wiphy */
46084659
4609- /* permanent MAC address(es) */
46104660 u8 perm_addr [ETH_ALEN ];
46114661 u8 addr_mask [ETH_ALEN ];
46124662
@@ -4673,11 +4723,6 @@ struct wiphy {
46734723 u32 available_antennas_tx ;
46744724 u32 available_antennas_rx ;
46754725
4676- /*
4677- * Bitmap of supported protocols for probe response offloading
4678- * see &enum nl80211_probe_resp_offload_support_attr. Only valid
4679- * when the wiphy flag @WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD is set.
4680- */
46814726 u32 probe_resp_offload ;
46824727
46834728 const u8 * extended_capabilities , * extended_capabilities_mask ;
@@ -4686,39 +4731,28 @@ struct wiphy {
46864731 const struct wiphy_iftype_ext_capab * iftype_ext_capab ;
46874732 unsigned int num_iftype_ext_capab ;
46884733
4689- /* If multiple wiphys are registered and you're handed e.g.
4690- * a regular netdev with assigned ieee80211_ptr, you won't
4691- * know whether it points to a wiphy your driver has registered
4692- * or not. Assign this to something global to your driver to
4693- * help determine whether you own this wiphy or not. */
46944734 const void * privid ;
46954735
46964736 struct ieee80211_supported_band * bands [NUM_NL80211_BANDS ];
46974737
4698- /* Lets us get back the wiphy on the callback */
46994738 void (* reg_notifier )(struct wiphy * wiphy ,
47004739 struct regulatory_request * request );
47014740
47024741 /* fields below are read-only, assigned by cfg80211 */
47034742
47044743 const struct ieee80211_regdomain __rcu * regd ;
47054744
4706- /* the item in /sys/class/ieee80211/ points to this,
4707- * you need use set_wiphy_dev() (see below) */
47084745 struct device dev ;
47094746
4710- /* protects ->resume, ->suspend sysfs callbacks against unregister hw */
47114747 bool registered ;
47124748
4713- /* dir in debugfs: ieee80211/<wiphyname> */
47144749 struct dentry * debugfsdir ;
47154750
47164751 const struct ieee80211_ht_cap * ht_capa_mod_mask ;
47174752 const struct ieee80211_vht_cap * vht_capa_mod_mask ;
47184753
47194754 struct list_head wdev_list ;
47204755
4721- /* the network namespace this phy lives in currently */
47224756 possible_net_t _net ;
47234757
47244758#ifdef CONFIG_CFG80211_WEXT
@@ -4734,7 +4768,6 @@ struct wiphy {
47344768 u16 max_ap_assoc_sta ;
47354769
47364770 u8 max_num_csa_counters ;
4737- u8 max_adj_channel_rssi_comp ;
47384771
47394772 u32 bss_select_support ;
47404773
@@ -4751,6 +4784,13 @@ struct wiphy {
47514784
47524785 const struct cfg80211_pmsr_capabilities * pmsr_capa ;
47534786
4787+ struct {
4788+ u64 peer , vif ;
4789+ u8 max_retry ;
4790+ } tid_config_support ;
4791+
4792+ u8 max_data_retry_count ;
4793+
47544794 char priv [0 ] __aligned (NETDEV_ALIGN );
47554795};
47564796
@@ -5526,9 +5566,9 @@ void cfg80211_send_layer2_update(struct net_device *dev, const u8 *addr);
55265566 * @wiphy: the wireless device giving the hint (used only for reporting
55275567 * conflicts)
55285568 * @alpha2: the ISO/IEC 3166 alpha2 the driver claims its regulatory domain
5529- * should be in. If @rd is set this should be NULL. Note that if you
5530- * set this to NULL you should still set rd->alpha2 to some accepted
5531- * alpha2.
5569+ * should be in. If @rd is set this should be NULL. Note that if you
5570+ * set this to NULL you should still set rd->alpha2 to some accepted
5571+ * alpha2.
55325572 *
55335573 * Wireless drivers can use this function to hint to the wireless core
55345574 * what it believes should be the current regulatory domain by
0 commit comments