|
@@ -13784,6 +13784,11 @@ static int __wlan_hdd_cfg80211_set_limit_offchan_param(struct wiphy *wiphy,
|
|
}
|
|
}
|
|
|
|
|
|
tos = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS]);
|
|
tos = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS]);
|
|
|
|
+ if (tos >= HDD_MAX_AC) {
|
|
|
|
+ hdd_err("tos value %d exceeded Max value %d",
|
|
|
|
+ tos, HDD_MAX_AC);
|
|
|
|
+ goto fail;
|
|
|
|
+ }
|
|
hdd_debug("tos %d", tos);
|
|
hdd_debug("tos %d", tos);
|
|
|
|
|
|
if (!tb[QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START]) {
|
|
if (!tb[QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START]) {
|