Переглянути джерело

qcacld-3.0: Don't process rx filter/mc list req when mc ini is disabled

Presently, Host process set rx filter/mc list request though
mc address list ini is disabled.

Hence as a part of the fix, Don't process these request when
mc addr list ini is disabled

Change-Id: Ia9a152dd1d3e533eff898f425d5309126354a6b5
CRs-Fixed: 1106300
Mukul Sharma 8 роки тому
батько
коміт
3a1ab3080a
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      core/hdd/src/wlan_hdd_ioctl.c

+ 5 - 0
core/hdd/src/wlan_hdd_ioctl.c

@@ -6476,6 +6476,11 @@ static int hdd_set_rx_filter(hdd_adapter_t *adapter, bool action,
 		return -EINVAL;
 	}
 
+	if (!hdd_ctx->config->fEnableMCAddrList) {
+		hdd_notice("mc addr ini is disabled");
+		return -EINVAL;
+	}
+
 	/*
 	 * If action is false it means start dropping packets
 	 * Set addr_filter_pattern which will be used when sending