Simplify Timeout Interval element parsing
Remove the length field from struct ieee802_11_elems since the only allowed element length is five and that is checked by the parser. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e8997b9407
commit
b39a05913a
4 changed files with 3 additions and 7 deletions
|
@ -263,7 +263,6 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
|
|||
if (elen != 5)
|
||||
break;
|
||||
elems->timeout_int = pos;
|
||||
elems->timeout_int_len = elen;
|
||||
break;
|
||||
case WLAN_EID_HT_CAP:
|
||||
elems->ht_capabilities = pos;
|
||||
|
|
|
@ -61,7 +61,6 @@ struct ieee802_11_elems {
|
|||
u8 supp_channels_len;
|
||||
u8 mdie_len;
|
||||
u8 ftie_len;
|
||||
u8 timeout_int_len;
|
||||
u8 ht_capabilities_len;
|
||||
u8 ht_operation_len;
|
||||
u8 mesh_config_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue