mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge tag 'ASB-2024-10-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina
https://source.android.com/docs/security/bulletin/2024-10-01 * tag 'ASB-2024-10-05_11-5.4' of https://android.googlesource.com/kernel/common: (397 commits) Linux 5.4.283 scsi: aacraid: Fix double-free on probe failure net: dsa: mv8e6xxx: Fix stub function parameters usb: core: sysfs: Unmerge @usb3_hardware_lpm_attr_group in remove_power_attributes() usb: dwc3: st: add missing depopulate in probe error path usb: dwc3: st: fix probed platform device ref count on probe error path usb: dwc3: core: Prevent USB core invalid event buffer address access usb: dwc3: omap: add missing depopulate in probe error path USB: serial: option: add MeiG Smart SRM825L cdc-acm: Add DISABLE_ECHO quirk for GE HealthCare UI Controller soc: qcom: cmd-db: Map shared memory as WC, not WB nfc: pn533: Add poll mod list filling check nfc: pn533: Add autopoll capability nfc: pn533: Add dev_up/dev_down hooks to phy_ops net: busy-poll: use ktime_get_ns() instead of local_clock() gtp: fix a potential NULL pointer dereference ethtool: check device is present when getting link settings r8152: Factor out OOB link list waits soundwire: stream: fix programming slave ports for non-continous port maps net:rds: Fix possible deadlock in rds_message_put ... Change-Id: Ia6559a770f5db990f2bf6e5a034c63e3d7df4510
This commit is contained in:
commit
a421f676d6
376 changed files with 3731 additions and 1792 deletions
|
|
@ -3848,10 +3848,7 @@ static void get_key_callback(void *c, struct key_params *params)
|
|||
struct nlattr *key;
|
||||
struct get_key_cookie *cookie = c;
|
||||
|
||||
if ((params->key &&
|
||||
nla_put(cookie->msg, NL80211_ATTR_KEY_DATA,
|
||||
params->key_len, params->key)) ||
|
||||
(params->seq &&
|
||||
if ((params->seq &&
|
||||
nla_put(cookie->msg, NL80211_ATTR_KEY_SEQ,
|
||||
params->seq_len, params->seq)) ||
|
||||
(params->cipher &&
|
||||
|
|
@ -3863,10 +3860,7 @@ static void get_key_callback(void *c, struct key_params *params)
|
|||
if (!key)
|
||||
goto nla_put_failure;
|
||||
|
||||
if ((params->key &&
|
||||
nla_put(cookie->msg, NL80211_KEY_DATA,
|
||||
params->key_len, params->key)) ||
|
||||
(params->seq &&
|
||||
if ((params->seq &&
|
||||
nla_put(cookie->msg, NL80211_KEY_SEQ,
|
||||
params->seq_len, params->seq)) ||
|
||||
(params->cipher &&
|
||||
|
|
|
|||
|
|
@ -1303,7 +1303,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate)
|
|||
5120, /* 0.833333... */
|
||||
};
|
||||
u32 rates_160M[3] = { 960777777, 907400000, 816666666 };
|
||||
u32 rates_969[3] = { 480388888, 453700000, 408333333 };
|
||||
u32 rates_996[3] = { 480388888, 453700000, 408333333 };
|
||||
u32 rates_484[3] = { 229411111, 216666666, 195000000 };
|
||||
u32 rates_242[3] = { 114711111, 108333333, 97500000 };
|
||||
u32 rates_106[3] = { 40000000, 37777777, 34000000 };
|
||||
|
|
@ -1323,12 +1323,14 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate)
|
|||
if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8))
|
||||
return 0;
|
||||
|
||||
if (rate->bw == RATE_INFO_BW_160)
|
||||
if (rate->bw == RATE_INFO_BW_160 ||
|
||||
(rate->bw == RATE_INFO_BW_HE_RU &&
|
||||
rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_2x996))
|
||||
result = rates_160M[rate->he_gi];
|
||||
else if (rate->bw == RATE_INFO_BW_80 ||
|
||||
(rate->bw == RATE_INFO_BW_HE_RU &&
|
||||
rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_996))
|
||||
result = rates_969[rate->he_gi];
|
||||
result = rates_996[rate->he_gi];
|
||||
else if (rate->bw == RATE_INFO_BW_40 ||
|
||||
(rate->bw == RATE_INFO_BW_HE_RU &&
|
||||
rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_484))
|
||||
|
|
|
|||
Loading…
Reference in a new issue