Browse Source

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 năm trước cách đây
mục cha
commit
8980a89382
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  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);