diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 3050d1c501ef..c92f38370ebd 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -23245,6 +23245,10 @@ __wlan_hdd_cfg80211_set_ap_channel_width(struct wiphy *wiphy, return -EINVAL; } + if (chandef->width > NL80211_CHAN_WIDTH_40) { + hdd_err_rl("invalid chan width %d", chandef->width); + return -EINVAL; + } if (wlan_hdd_validate_vdev_id(adapter->vdev_id)) return -EINVAL;