[BUGFIX] mac80211: unregister p2p wdev before sdata teardown

remove_interface() op is being called as part of the
wdev unregistration.

tearing down sdata too early (before remove_interface op)
results in device driver potentially having stale pointers
(specifically, debugfs pointers while the parent was
already removed). change the calls order.

type=bugfix
bug=cq:MWG100250758
fixes=I1622365d867588a91201df1ef700906610d2b8af

Change-Id: I824a65e86603aacbbb0d62404ddf8117ac7ecaf8
Signed-off-by: Liu Shuo A <shuo.a.liu@intel.com>
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/10139
Tested-by: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Reviewed-by: Berg, Johannes <johannes.berg@intel.com>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/10755
Reviewed-by: Grumbach, Emmanuel <emmanuel.grumbach@intel.com>
x-iwlwifi-stack-dev: ca6f8a6855de210a36934954c9b967ab2b337276
2 files changed