diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /net/mac80211/util.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'net/mac80211/util.c')
| -rw-r--r-- | net/mac80211/util.c | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 11f9cfc016d9..5e2e511c4a6f 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1803,8 +1803,9 @@ static int ieee80211_reconfig_nan(struct ieee80211_sub_if_data *sdata)  	if (WARN_ON(res))  		return res; -	funcs = kzalloc((sdata->local->hw.max_nan_de_entries + 1) * -			sizeof(*funcs), GFP_KERNEL); +	funcs = kcalloc(sdata->local->hw.max_nan_de_entries + 1, +			sizeof(*funcs), +			GFP_KERNEL);  	if (!funcs)  		return -ENOMEM; @@ -2793,12 +2794,13 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,  	memset(&ri, 0, sizeof(ri)); +	ri.bw = status->bw; +  	/* Fill cfg80211 rate info */  	switch (status->encoding) {  	case RX_ENC_HT:  		ri.mcs = status->rate_idx;  		ri.flags |= RATE_INFO_FLAGS_MCS; -		ri.bw = status->bw;  		if (status->enc_flags & RX_ENC_FLAG_SHORT_GI)  			ri.flags |= RATE_INFO_FLAGS_SHORT_GI;  		break; @@ -2806,7 +2808,6 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,  		ri.flags |= RATE_INFO_FLAGS_VHT_MCS;  		ri.mcs = status->rate_idx;  		ri.nss = status->nss; -		ri.bw = status->bw;  		if (status->enc_flags & RX_ENC_FLAG_SHORT_GI)  			ri.flags |= RATE_INFO_FLAGS_SHORT_GI;  		break; @@ -2818,8 +2819,6 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,  		int shift = 0;  		int bitrate; -		ri.bw = status->bw; -  		switch (status->bw) {  		case RATE_INFO_BW_10:  			shift = 1;  | 
