Revert "wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param"
This reverts commit 42ac5e3f69
.
This commit is contained in:
parent
b7f3288f98
commit
c22bb3d377
1 changed files with 1 additions and 3 deletions
|
@ -366,7 +366,6 @@ void *wilc_parse_join_bss_param(struct cfg80211_bss *bss,
|
|||
struct wilc_join_bss_param *param;
|
||||
u8 rates_len = 0;
|
||||
int ies_len;
|
||||
u64 ies_tsf;
|
||||
int ret;
|
||||
|
||||
param = kzalloc(sizeof(*param), GFP_KERNEL);
|
||||
|
@ -382,7 +381,6 @@ void *wilc_parse_join_bss_param(struct cfg80211_bss *bss,
|
|||
return NULL;
|
||||
}
|
||||
ies_len = ies->len;
|
||||
ies_tsf = ies->tsf;
|
||||
rcu_read_unlock();
|
||||
|
||||
param->beacon_period = cpu_to_le16(bss->beacon_interval);
|
||||
|
@ -438,7 +436,7 @@ void *wilc_parse_join_bss_param(struct cfg80211_bss *bss,
|
|||
IEEE80211_P2P_ATTR_ABSENCE_NOTICE,
|
||||
(u8 *)&noa_attr, sizeof(noa_attr));
|
||||
if (ret > 0) {
|
||||
param->tsf_lo = cpu_to_le32(ies_tsf);
|
||||
param->tsf_lo = cpu_to_le32(ies->tsf);
|
||||
param->noa_enabled = 1;
|
||||
param->idx = noa_attr.index;
|
||||
if (noa_attr.oppps_ctwindow & IEEE80211_P2P_OPPPS_ENABLE_BIT) {
|
||||
|
|
Loading…
Add table
Reference in a new issue