Skip to content

Commit 21cc70c

Browse files
committed
Merge tag 'mac80211-next-for-net-next-2021-02-12' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Johannes Berg says: ==================== Last set of updates: * more minstrel work from Felix to reduce the probing overhead * QoS for nl80211 control port frames * STBC injection support * and a couple of small fixes ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 93efb0c + 735a484 commit 21cc70c

File tree

12 files changed

+486
-427
lines changed

12 files changed

+486
-427
lines changed

include/net/cfg80211.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,12 +2583,14 @@ struct cfg80211_auth_request {
25832583
* authentication capability. Drivers can offload authentication to
25842584
* userspace if this flag is set. Only applicable for cfg80211_connect()
25852585
* request (connect callback).
2586+
* @ASSOC_REQ_DISABLE_HE: Disable HE
25862587
*/
25872588
enum cfg80211_assoc_req_flags {
25882589
ASSOC_REQ_DISABLE_HT = BIT(0),
25892590
ASSOC_REQ_DISABLE_VHT = BIT(1),
25902591
ASSOC_REQ_USE_RRM = BIT(2),
25912592
CONNECT_REQ_EXTERNAL_AUTH_SUPPORT = BIT(3),
2593+
ASSOC_REQ_DISABLE_HE = BIT(4),
25922594
};
25932595

25942596
/**

include/uapi/linux/nl80211.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,8 +1963,15 @@ enum nl80211_commands {
19631963
* @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire
19641964
* probe-response frame. The DA field in the 802.11 header is zero-ed out,
19651965
* to be filled by the FW.
1966-
* @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable
1967-
* this feature. Currently, only supported in mac80211 drivers.
1966+
* @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable
1967+
* this feature during association. This is a flag attribute.
1968+
* Currently only supported in mac80211 drivers.
1969+
* @NL80211_ATTR_DISABLE_VHT: Force VHT capable interfaces to disable
1970+
* this feature during association. This is a flag attribute.
1971+
* Currently only supported in mac80211 drivers.
1972+
* @NL80211_ATTR_DISABLE_HE: Force HE capable interfaces to disable
1973+
* this feature during association. This is a flag attribute.
1974+
* Currently only supported in mac80211 drivers.
19681975
* @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the
19691976
* ATTR_HT_CAPABILITY to which attention should be paid.
19701977
* Currently, only mac80211 NICs support this feature.
@@ -3045,6 +3052,8 @@ enum nl80211_attrs {
30453052

30463053
NL80211_ATTR_SAR_SPEC,
30473054

3055+
NL80211_ATTR_DISABLE_HE,
3056+
30483057
/* add attributes here, update the policy in nl80211.c */
30493058

30503059
__NL80211_ATTR_AFTER_LAST,

net/mac80211/mesh_hwmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ u32 airtime_link_metric_get(struct ieee80211_local *local,
356356
*/
357357
tx_time = (device_constant + 10 * test_frame_len / rate);
358358
estimated_retx = ((1 << (2 * ARITH_SHIFT)) / (s_unit - err));
359-
result = (tx_time * estimated_retx) >> (2 * ARITH_SHIFT);
359+
result = ((u64)tx_time * estimated_retx) >> (2 * ARITH_SHIFT);
360360
return (u32)result;
361361
}
362362

net/mac80211/mlme.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5754,6 +5754,9 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
57545754
if (req->flags & ASSOC_REQ_DISABLE_VHT)
57555755
ifmgd->flags |= IEEE80211_STA_DISABLE_VHT;
57565756

5757+
if (req->flags & ASSOC_REQ_DISABLE_HE)
5758+
ifmgd->flags |= IEEE80211_STA_DISABLE_HE;
5759+
57575760
err = ieee80211_prep_connection(sdata, req->bss, true, override);
57585761
if (err)
57595762
goto err_clear;

0 commit comments

Comments
 (0)