Skip to content

Commit 6ec2b51

Browse files
andreas.larssonadbridge
authored andcommitted
Moved stream interface to cb_cert_utils.h
1 parent 70b66e9 commit 6ec2b51

File tree

1 file changed

+11
-25
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+11
-25
lines changed

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

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include "cb_types.h"
3333
#include "cb_wlan_types.h"
34+
#include "cb_cert_utils.h"
3435
#include "cb_status.h"
3536

3637
#ifdef __cplusplus
@@ -75,25 +76,6 @@ extern "C" {
7576
/*===========================================================================
7677
* TYPES
7778
*=========================================================================*/
78-
79-
typedef struct cbWLAN_Stream_s cbWLAN_Stream;
80-
typedef cb_uint32 cbWLAN_StreamPosition;
81-
82-
/**
83-
* Stream vtable interface used by WLAN supplicant to access SSL certificates
84-
* for WPA Enterprise authentication.
85-
*
86-
* @ingroup wlan
87-
*/
88-
struct cbWLAN_Stream_s {
89-
cb_int32 (*read)(const cbWLAN_Stream *stream, void *buf, cb_uint32 count); /**< Read function pointer, place count bytes in buf. */
90-
cb_int32 (*write)(const cbWLAN_Stream *stream, void *buf, cb_uint32 count); /**< Read function pointer, place count bytes in buf. */
91-
void (*rewind)(const cbWLAN_Stream *stream); /**< Rewind function pointer, rewind stream internal iterator to the beginning. Mandatory for all streams. */
92-
void (*setPosition)(const cbWLAN_Stream *stream, cbWLAN_StreamPosition position); /**< Set absolute position. */
93-
cbWLAN_StreamPosition (*getPosition)(const cbWLAN_Stream *stream); /**< Get current position. */
94-
cb_uint32 (*getSize)(const cbWLAN_Stream *stream); /**< GetSize function pointer, return total size of stream contents. */
95-
};
96-
9779
/**
9880
* Start parameters passed to WLAN driver.
9981
*
@@ -178,8 +160,8 @@ typedef struct cbWLAN_EnterpriseConnectParameters {
178160
cb_uint8 username[cbWLAN_MAX_USERNAME_LENGTH]; /**< Username string. */
179161
cb_uint8 passphrase[cbWLAN_MAX_PASSPHRASE_LENGTH]; /**< Passphrase string. */
180162
cb_uint8 domain[cbWLAN_MAX_DOMAIN_LENGTH]; /**< Domain string. */
181-
cbWLAN_Stream *clientCertificate; /**< Stream handle to provide SSL certificate for authentication. */
182-
cbWLAN_Stream *clientPrivateKey; /**< STream handle to provide SSL private key for authentication. */
163+
cbCERT_Stream *clientCertificate; /**< Stream handle to provide SSL certificate for authentication. */
164+
cbCERT_Stream *clientPrivateKey; /**< STream handle to provide SSL private key for authentication. */
183165
} cbWLAN_EnterpriseConnectParameters;
184166

185167
/**
@@ -200,9 +182,10 @@ typedef struct cbWLAN_CommonApParameters {
200182
* @ingroup wlan
201183
*/
202184
typedef struct cbWLAN_WPAPSKApParameters {
203-
cbWLAN_CipherSuite rsnCiphers; /**< Bit field indicating which ciphers that shall be displayed in RSN information elements. If 0 no RSN information elements is added to beacons and probe responses. */
204-
cbWLAN_CipherSuite wpaCiphers; /**< Bit field indicating which ciphers that shall be displayed in WPA information elements. If 0 no WPA information elements is added to beacons and probe responses. */
205-
cbWLAN_WPAPSK psk; /**< WPA pre-shared key*/
185+
cbWLAN_CipherSuite rsnCiphers; /**< Bit field indicating which ciphers that shall be displayed in RSN information elements. If 0 no RSN information elements is added to beacons and probe responses. */
186+
cbWLAN_CipherSuite wpaCiphers; /**< Bit field indicating which ciphers that shall be displayed in WPA information elements. If 0 no WPA information elements is added to beacons and probe responses. */
187+
cbWLAN_WPAPSK psk; /**< WPA pre-shared key*/
188+
cb_uint32 gtkRekeyInterval; /**< Group rekey interval in seconds */
206189
} cbWLAN_WPAPSKApParameters;
207190

208191

@@ -286,8 +269,11 @@ typedef enum {
286269
cbWLAN_IOCTL_GET_DTIM_ENABLE, //!< Get DTIM enable 0, disable 1 enable
287270
cbWLAN_IOCTL_SET_SLEEP_TIMEOUT, //!< Set enter power save entry delay (in ms). Power save mode will be entered only if there no activity during this delay
288271
cbWLAN_IOCTL_GET_SLEEP_TIMEOUT, //!< Get enter power save entry delay (in ms). Power save mode will be entered only if there no activity during this delay
289-
290272
cbWLAN_IOCTL_LAST,
273+
cbWLAN_IOCTL_SET_GSETTING = 1000, //!< Pipe to @ref cbWM_gSet.
274+
cbWLAN_IOCTL_SET_TSETTING = 2000, //!< Pipe to @ref cbWM_tSet.
275+
cbWLAN_IOCTL_GET_GSETTING = 3000, //!< Pipe to @ref cbWM_gGet.
276+
cbWLAN_IOCTL_GET_TSETTING = 4000, //!< Pipe to @ref cbWM_tGet.
291277
} cbWLAN_Ioctl;
292278

293279
/**

0 commit comments

Comments
 (0)