Skip to content

Commit c2d09bd

Browse files
author
andreas.larsson
committed
Fixed wrong start params to cbMAIN_startWlan
1 parent d60f424 commit c2d09bd

File tree

1 file changed

+7
-1
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+7
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers/cb_main.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ typedef void(*cbMAIN_ErrorHandler)(
4949
const cb_char* filename,
5050
cb_uint32 line);
5151

52+
typedef struct
53+
{
54+
cbWLAN_MACAddress mac; /**< MAC of WLAN interface, set to all zeros if hardware programmed address should be used. */
55+
cbWM_TxPowerSettings txPowerSettings; /**< Transmission power settings. */
56+
} cbMAIN_WlanStartParams;
57+
5258
/*---------------------------------------------------------------------------
5359
* Callback to indicate that initialization of BT stack is completed.
5460
*-------------------------------------------------------------------------*/
@@ -89,7 +95,7 @@ extern cb_int32 cbMAIN_initWlan(void);
8995
* @param params Start parameters passed to WLAN driver instance.
9096
* @return cbSTATUS_OK if successful, otherwise cbSTATUS_ERROR.
9197
*/
92-
extern cb_int32 cbMAIN_startWlan(cb_int32 targetId, cbWLAN_StartParameters *params);
98+
extern cb_int32 cbMAIN_startWlan(cb_int32 targetId, cbMAIN_WlanStartParams *params);
9399

94100
/**
95101
* Register error handler function.

0 commit comments

Comments
 (0)