mac80211: check ERP info IE length in parser

It's always just one byte, so check for that and
remove the length field from the parser struct.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg
2013-03-27 14:31:53 +01:00
parent 1cd8e88e17
commit 1946bed957
4 changed files with 7 additions and 7 deletions

View File

@@ -3038,7 +3038,7 @@ ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
changed |= BSS_CHANGED_DTIM_PERIOD;
}
if (elems.erp_info && elems.erp_info_len >= 1) {
if (elems.erp_info) {
erp_valid = true;
erp_value = elems.erp_info[0];
} else {