浏览代码

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