developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | diff --git a/source/MeshAgentSsp/cosa_mesh_apis.c b/source/MeshAgentSsp/cosa_mesh_apis.c |
| 2 | index fd657d5..b4d441b 100644 |
| 3 | --- a/source/MeshAgentSsp/cosa_mesh_apis.c |
| 4 | +++ b/source/MeshAgentSsp/cosa_mesh_apis.c |
| 5 | @@ -1470,7 +1470,7 @@ bool Mesh_GetEnabled(const char *name) |
| 6 | |
| 7 | return enabled; |
| 8 | } |
| 9 | - |
| 10 | +#ifndef _PLATFORM_TURRIS_ |
| 11 | static void applyWifiRadioSettings(int radioId) |
| 12 | { |
| 13 | CCSP_MESSAGE_BUS_INFO *bus_info = (CCSP_MESSAGE_BUS_INFO *)bus_handle; |
| 14 | @@ -1506,6 +1506,7 @@ static void applyWifiRadioSettings(int radioId) |
| 15 | bus_info->freefunc(faultParam); |
| 16 | } |
| 17 | } |
| 18 | +#endif |
| 19 | |
| 20 | void changeChBandwidth(int radioId, int channelBw) { |
| 21 | CCSP_MESSAGE_BUS_INFO *bus_info = (CCSP_MESSAGE_BUS_INFO *)bus_handle; |
| 22 | @@ -1543,7 +1544,12 @@ void changeChBandwidth(int radioId, int channelBw) { |
| 23 | bus_info->freefunc( faultParam ); |
| 24 | } |
| 25 | |
| 26 | +/* On Turris omnia platform change bandwidth is already done with wifi_pushRadioChannel2 call. |
| 27 | + * We want to copy config to datamodel, but we don't want to apply radio settings |
| 28 | + */ |
| 29 | +#ifndef _PLATFORM_TURRIS_ |
| 30 | applyWifiRadioSettings(radioId); |
| 31 | +#endif |
| 32 | } |
| 33 | |