* @mask: bitmap of attributes indicating which parameter changed,
  *     similar to &nl80211_tid_config_supp.
  * @noack: noack configuration value for the TID
+ * @retry_long: retry count value
+ * @retry_short: retry count value
  */
 struct cfg80211_tid_cfg {
        bool config_override;
        u8 tids;
        u32 mask;
        enum nl80211_tid_config noack;
+       u8 retry_long, retry_short;
 };
 
 /**
  *     supported by the driver for each vif
  * @tid_config_support.peer: bitmap of attributes (configurations)
  *     supported by the driver for each peer
+ * @tid_config_support.max_retry: maximum supported retry count for
+ *     long/short retry configuration
  */
 struct wiphy {
        /* assign these fields before you register the wiphy */
 
        struct {
                u64 peer, vif;
+               u8 max_retry;
        } tid_config_support;
 
+       u8 max_data_retry_count;
+
        char priv[0] __aligned(NETDEV_ALIGN);
 };
 
 
  * @NL80211_TID_CONFIG_ATTR_NOACK: Configure ack policy for the TID.
  *     specified in %NL80211_TID_CONFIG_ATTR_TID. see %enum nl80211_tid_config.
  *     Its type is u8.
+ * @NL80211_TID_CONFIG_ATTR_RETRY_SHORT: Number of retries used with data frame
+ *     transmission, user-space sets this configuration in
+ *     &NL80211_CMD_SET_TID_CONFIG. It is u8 type, min value is 1 and
+ *     the max value is advertised by the driver in this attribute on
+ *     output in wiphy capabilities.
+ * @NL80211_TID_CONFIG_ATTR_RETRY_LONG: Number of retries used with data frame
+ *     transmission, user-space sets this configuration in
+ *     &NL80211_CMD_SET_TID_CONFIG. Its type is u8, min value is 1 and
+ *     the max value is advertised by the driver in this attribute on
+ *     output in wiphy capabilities.
  */
 enum nl80211_tid_config_attr {
        __NL80211_TID_CONFIG_ATTR_INVALID,
        NL80211_TID_CONFIG_ATTR_OVERRIDE,
        NL80211_TID_CONFIG_ATTR_TIDS,
        NL80211_TID_CONFIG_ATTR_NOACK,
+       NL80211_TID_CONFIG_ATTR_RETRY_SHORT,
+       NL80211_TID_CONFIG_ATTR_RETRY_LONG,
 
        /* keep last */
        __NL80211_TID_CONFIG_ATTR_AFTER_LAST,
 
        [NL80211_TID_CONFIG_ATTR_TIDS] = NLA_POLICY_RANGE(NLA_U16, 1, 0xff),
        [NL80211_TID_CONFIG_ATTR_NOACK] =
                        NLA_POLICY_MAX(NLA_U8, NL80211_TID_CONFIG_DISABLE),
+       [NL80211_TID_CONFIG_ATTR_RETRY_SHORT] = NLA_POLICY_MIN(NLA_U8, 1),
+       [NL80211_TID_CONFIG_ATTR_RETRY_LONG] = NLA_POLICY_MIN(NLA_U8, 1),
 };
 
 const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
                              NL80211_TID_CONFIG_ATTR_PAD))
                goto fail;
 
+       /* for now we just use the same value ... makes more sense */
+       if (nla_put_u8(msg, NL80211_TID_CONFIG_ATTR_RETRY_SHORT,
+                      rdev->wiphy.tid_config_support.max_retry))
+               goto fail;
+       if (nla_put_u8(msg, NL80211_TID_CONFIG_ATTR_RETRY_LONG,
+                      rdev->wiphy.tid_config_support.max_retry))
+               goto fail;
+
        nla_nest_end(msg, supp);
 
        return 0;
                        nla_get_u8(attrs[NL80211_TID_CONFIG_ATTR_NOACK]);
        }
 
+       if (attrs[NL80211_TID_CONFIG_ATTR_RETRY_SHORT]) {
+               tid_conf->mask |= BIT(NL80211_TID_CONFIG_ATTR_RETRY_SHORT);
+               tid_conf->retry_short =
+                       nla_get_u8(attrs[NL80211_TID_CONFIG_ATTR_RETRY_SHORT]);
+
+               if (tid_conf->retry_short > rdev->wiphy.max_data_retry_count)
+                       return -EINVAL;
+       }
+
+       if (attrs[NL80211_TID_CONFIG_ATTR_RETRY_LONG]) {
+               tid_conf->mask |= BIT(NL80211_TID_CONFIG_ATTR_RETRY_LONG);
+               tid_conf->retry_long =
+                       nla_get_u8(attrs[NL80211_TID_CONFIG_ATTR_RETRY_LONG]);
+
+               if (tid_conf->retry_long > rdev->wiphy.max_data_retry_count)
+                       return -EINVAL;
+       }
+
        if (peer)
                mask = rdev->wiphy.tid_config_support.peer;
        else