qcacld-3.0: Add beacon stats support for the p2p

Beacon stats are supported for both STA and P2P client devices,
with the changes to move the sysfs creation on interface this is
regressed.

Add the support back for beacon stats creation for p2p.

Change-Id: Ia329752cc5d4f0a338395d9416b8d444417ea567
CRs-Fixed: 2764053
This commit is contained in:
Arun Kumar Khandavalli 2020-08-05 15:15:29 +05:30 • committed by snandini
commit 78693e0c2b

View file

@ -812,6 +812,8 @@ void hdd_create_adapter_sysfs_files(struct hdd_adapter *adapter)
switch (device_mode){
case QDF_STA_MODE:
case QDF_P2P_DEVICE_MODE:
case QDF_P2P_CLIENT_MODE:
hdd_sysfs_create_sta_adapter_root_obj(adapter);
break;
case QDF_SAP_MODE:
@ -831,6 +833,8 @@ void hdd_destroy_adapter_sysfs_files(struct hdd_adapter *adapter)
switch (device_mode){
case QDF_STA_MODE:
case QDF_P2P_DEVICE_MODE:
case QDF_P2P_CLIENT_MODE:
hdd_sysfs_destroy_sta_adapter_root_obj(adapter);
break;
case QDF_SAP_MODE: