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
1 file changed