Browse Source

qcacld-3.0: Return success if chan width is not set for set wifi config

Currently wifi set configuration vendor command returns error
in case if chan width attribute is not in the vendor command,
this results in complete failure of the vendor command and does
not give chance to parse and execute other attributes and also
this command always returns failure for all the attributes
if chan width is not present.

To address this issue, return success if chan width is not
present in the set wifi configuration vendor command.

Change-Id: Ifd8a857ae6aadd1aa2f8227507e1e27b477e1200
CRs-Fixed: 3628393
Ashish Kumar Dhanotiya 1 year ago
parent
commit
f8f361dbc9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -11055,7 +11055,7 @@ skip_mlo:
 	chn_bd = tb[QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH];
 
 	if (!chn_bd)
-		return -EINVAL;
+		return 0;
 
 	nl80211_chwidth = nla_get_u8(chn_bd);
 	chwidth = hdd_nl80211_chwidth_to_chwidth(nl80211_chwidth);