File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -5084,28 +5084,24 @@ static inline u8 ieee80211_mle_common_size(const u8 *data)
5084
5084
{
5085
5085
const struct ieee80211_multi_link_elem * mle = (const void * )data ;
5086
5086
u16 control = le16_to_cpu (mle -> control );
5087
- u8 common = 0 ;
5088
5087
5089
5088
switch (u16_get_bits (control , IEEE80211_ML_CONTROL_TYPE )) {
5090
5089
case IEEE80211_ML_CONTROL_TYPE_BASIC :
5091
5090
case IEEE80211_ML_CONTROL_TYPE_PREQ :
5092
5091
case IEEE80211_ML_CONTROL_TYPE_TDLS :
5093
5092
case IEEE80211_ML_CONTROL_TYPE_RECONF :
5093
+ case IEEE80211_ML_CONTROL_TYPE_PRIO_ACCESS :
5094
5094
/*
5095
5095
* The length is the first octet pointed by mle->variable so no
5096
5096
* need to add anything
5097
5097
*/
5098
5098
break ;
5099
- case IEEE80211_ML_CONTROL_TYPE_PRIO_ACCESS :
5100
- if (control & IEEE80211_MLC_PRIO_ACCESS_PRES_AP_MLD_MAC_ADDR )
5101
- common += ETH_ALEN ;
5102
- return common ;
5103
5099
default :
5104
5100
WARN_ON (1 );
5105
5101
return 0 ;
5106
5102
}
5107
5103
5108
- return sizeof (* mle ) + common + mle -> variable [0 ];
5104
+ return sizeof (* mle ) + mle -> variable [0 ];
5109
5105
}
5110
5106
5111
5107
/**
@@ -5392,8 +5388,7 @@ static inline bool ieee80211_mle_size_ok(const u8 *data, size_t len)
5392
5388
check_common_len = true;
5393
5389
break ;
5394
5390
case IEEE80211_ML_CONTROL_TYPE_PRIO_ACCESS :
5395
- if (control & IEEE80211_MLC_PRIO_ACCESS_PRES_AP_MLD_MAC_ADDR )
5396
- common += ETH_ALEN ;
5391
+ common = ETH_ALEN + 1 ;
5397
5392
break ;
5398
5393
default :
5399
5394
/* we don't know this type */
You can’t perform that action at this time.
0 commit comments