qcacld-3.0: Do not register frames in FTM mode after SSR
During driver re init after SSR, all the previous adapters that were up get re-initialized. In the case when SSR was triggered in FTM mode with an interface up, the re_init path tries to register management frames. As in FTM mode the message processor is not invoked, the memory allocated by the register frames method is not freed in any context. This leads to memory leak during the next call to hdd_wlan_stop_modules. Add a check in wlan_hdd_cfg80211_register_frames so as not to continue with the registration if the driver mode if FTM. Change-Id: I3cb8aa14d5298c0a76c0f30ca7cf1f0e7ad88dde CRs-Fixed: 2351672
This commit is contained in:

کامیت شده توسط
nshrivas

والد
9cf6e9891f
کامیت
a094392f11
@@ -12746,6 +12746,10 @@ int wlan_hdd_cfg80211_register_frames(struct hdd_adapter *adapter)
|
||||
QDF_STATUS status;
|
||||
|
||||
hdd_enter();
|
||||
if (adapter->device_mode == QDF_FTM_MODE) {
|
||||
hdd_info("No need to register frames in FTM mode");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Register frame indication call back */
|
||||
status = sme_register_mgmt_frame_ind_callback(mac_handle,
|
||||
|
مرجع در شماره جدید
Block a user