浏览代码

qcacld-3.0: Export driver mode to platform driver for kiwi-v2

Platform driver needs driver mode information to load different fw iamge,
so enables this mode exporting feature in wlan driver, also update
corret mode when mode change triggered from sysfs.

Change-Id: I848309440fdffd6517463e18190c03c1b7ed9269
CRs-Fixed: 3204663
Kai Liu 2 年之前
父节点
当前提交
8980a89382
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      configs/kiwi_v2_defconfig
  2. 1 0
      core/hdd/src/wlan_hdd_main.c

+ 3 - 0
configs/kiwi_v2_defconfig

@@ -21,3 +21,6 @@ CONFIG_CHIP_VERSION := 2
 #DP configs
 CONFIG_WLAN_DP_DISABLE_TCL_CMD_CRED_SRNG := y
 CONFIG_WLAN_DP_DISABLE_TCL_STATUS_SRNG := y
+
+# Enable seprate FW iamge
+CONFIG_GET_DRIVER_MODE := y

+ 1 - 0
core/hdd/src/wlan_hdd_main.c

@@ -18543,6 +18543,7 @@ static int __hdd_driver_mode_change(struct hdd_context *hdd_ctx,
 	hdd_cleanup_present_mode(hdd_ctx, curr_mode);
 
 	hdd_set_conparam(next_mode);
+	pld_set_mode(next_mode);
 
 	qdf_event_reset(&hdd_ctx->regulatory_update_event);
 	qdf_mutex_acquire(&hdd_ctx->regulatory_status_lock);