Skip to content

Commit 660071c

Browse files
ajayparidakrish2718
authored andcommitted
nrf_wifi: Host need to pass connection type
Firmware need to the connection type depending upon which it it may take some action. So host need to pass connection type protected or open to firmware. Signed-off-by: Ajay Parida <[email protected]>
1 parent 00801cb commit 660071c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

fw_if/umac_if/inc/fw/host_rpu_umac_if.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,18 @@ struct nrf_wifi_umac_cmd_auth {
13221322

13231323
#define NRF_WIFI_CMD_ASSOCIATE_MAC_ADDR_VALID (1 << 0)
13241324

1325+
/**
1326+
* @brief Types of connection protected/un-protected.
1327+
*
1328+
*/
1329+
1330+
enum nrf_wifi_conn_type {
1331+
/* Connection to be non-protected */
1332+
NRF_WIFI_CONN_TYPE_OPEN,
1333+
/* Connection to be protected */
1334+
NRF_WIFI_CONN_TYPE_SECURE,
1335+
};
1336+
13251337
/**
13261338
* @brief This structure specifies the parameters to be used when sending an association request.
13271339
*
@@ -1351,6 +1363,8 @@ struct nrf_wifi_umac_assoc_info {
13511363
* BSS MAX IDLE IE in assoc request frame.
13521364
*/
13531365
unsigned short bss_max_idle_time;
1366+
/** Connection type */
1367+
unsigned char conn_type;
13541368
} __NRF_WIFI_PKD;
13551369

13561370
/**

fw_if/umac_if/src/system/fmac_api.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,11 @@ enum nrf_wifi_status nrf_wifi_sys_fmac_assoc(void *dev_ctx,
979979
connect_common_info->maxidle_insec = assoc_info->bss_max_idle_time;
980980
}
981981

982+
if (assoc_info->conn_type == NRF_WIFI_CONN_TYPE_SECURE) {
983+
connect_common_info->nrf_wifi_flags |=
984+
NRF_WIFI_CONNECT_COMMON_INFO_SECURITY;
985+
}
986+
982987
status = umac_cmd_cfg(fmac_dev_ctx,
983988
assoc_cmd,
984989
sizeof(*assoc_cmd));

0 commit comments

Comments
 (0)