diff --git a/wlan/v1_0/IWlanCallback.idl b/wlan/v1_0/IWlanCallback.idl index 82960f312f648dfdcb3cc61f288c7d4df71197fc..afd4db4e2c0beb41e4f1f28e988f81a6b23f3cf3 100644 --- a/wlan/v1_0/IWlanCallback.idl +++ b/wlan/v1_0/IWlanCallback.idl @@ -20,4 +20,4 @@ import ohos.hdi.wlan.v1_0.WlanTypes; [callback] interface IWlanCallback { ResetDriverResult([in] unsigned int event, [in] int code, [in] String ifName); ScanResult([in] unsigned int event, [in] struct HdfWifiScanResult scanResult, [in] String ifName); -} \ No newline at end of file +} diff --git a/wlan/v1_0/IWlanInterface.idl b/wlan/v1_0/IWlanInterface.idl index f46c6ac34d7e8de136a1eddacc19ba93057689ec..58539d3a0f5dfc978af08a7a681ce581d45ffa04 100644 --- a/wlan/v1_0/IWlanInterface.idl +++ b/wlan/v1_0/IWlanInterface.idl @@ -44,4 +44,6 @@ interface IWlanInterface { StartScan([in] struct HdfFeatureInfo ifeature, [in] struct HdfWifiScan scan); GetPowerMode([in] struct HdfFeatureInfo ifeature, [out] unsigned char mode); SetPowerMode([in] struct HdfFeatureInfo ifeature, [in] unsigned char mode); -} \ No newline at end of file + [oneway] StartChannelMeas([in] String ifName, [in] struct MeasChannelParam measChannelParam); + GetChannelMeasResult([in] String ifName, [out] struct MeasChannelResult measChannelResult); +} diff --git a/wlan/v1_0/WlanTypes.idl b/wlan/v1_0/WlanTypes.idl index 6cdb0dd9155ce247568c4310ad104ac7b4d2c54a..e50f933701727bd62fab2ad168146a212cff57c7 100644 --- a/wlan/v1_0/WlanTypes.idl +++ b/wlan/v1_0/WlanTypes.idl @@ -67,4 +67,15 @@ struct HdfWifiScanResult { struct HdfWifiInfo { int band; unsigned int size; -}; \ No newline at end of file +}; + +struct MeasChannelParam { + int channelId; + int measTime; +}; + +struct MeasChannelResult { + int channelId; + int chload; + int noise; +};