[PATCH v2 7/8] mac80211: add parse transmit power envelope element

Johannes Berg johannes at sipsolutions.net
Thu Aug 26 01:20:54 PDT 2021


On Fri, 2021-08-20 at 08:20 -0400, Wen Gong wrote:
> 
> +		case WLAN_EID_TX_POWER_ENVELOPE:
> +			if (elems->tx_pwr_env_num >= ARRAY_SIZE(elems->tx_pwr_env) ||
> +			    elen < 1)
> +				break;

IMHO this should also check the max length, but I'll fix that.

johannes




More information about the ath11k mailing list