Sfoglia il codice sorgente

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
Arun Kumar Khandavalli 4 anni fa
parent
commit
78693e0c2b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      core/hdd/src/wlan_hdd_sysfs.c

+ 4 - 0
core/hdd/src/wlan_hdd_sysfs.c

@@ -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: