2222#include <wifi_events.h>
2323#include <wifi.h>
2424
25- #define WLAN_DRV_VERSION "v1.3.r48.p21 "
25+ #define WLAN_DRV_VERSION "v1.3.r48.p25 "
2626
2727#if CONFIG_WPA2_ENTP
2828#include <wm_mbedtls_helper_api.h>
@@ -1474,10 +1474,6 @@ typedef wifi_btwt_config_t wlan_btwt_config_t;
14741474 * \ref wifi_twt_report_t
14751475 */
14761476typedef wifi_twt_report_t wlan_twt_report_t ;
1477- /** Configuration for TWT information
1478- * \ref wifi_twt_information_t
1479- */
1480- typedef wifi_twt_information_t wlan_twt_information_t ;
14811477#endif /* CONFIG_11AX_TWT */
14821478#if CONFIG_MMSF
14831479#define WLAN_AMPDU_DENSITY 0x30
@@ -3365,14 +3361,6 @@ int wlan_set_multicast(t_u8 mef_action);
33653361 */
33663362int wlan_set_ieeeps_cfg (struct wlan_ieeeps_config * ps_cfg );
33673363
3368- /** Set configuration parameters of IEEE power save mode.
3369- *
3370- * \param [in] ps_cfg Power save configuratiuon includes multiple parameters.
3371- * \return WM_SUCCESS if the call was successful.
3372- * \return -WM_FAIL if failed.
3373- */
3374- int wlan_set_ieeeps_cfg (struct wlan_ieeeps_config * ps_cfg );
3375-
33763364/** Configure listen interval of IEEE power save mode.
33773365 *
33783366 * \note <b>Delivery traffic indication message (DTIM)</b>:
@@ -5373,11 +5361,11 @@ void wlan_register_fw_dump_cb(void (*wlan_usb_init_cb)(void),
53735361/** Set crypto RC4 (rivest cipher 4) algorithm encrypt command param.
53745362 *
53755363 * \param[in] Key key
5376- * \param[in] KeyLength The maximum key length is 32 .
5364+ * \param[in] KeyLength The KeyLength + KeyIVLength valid range [1,256] .
53775365 * \param[in] KeyIV KeyIV
5378- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5366+ * \param[in] KeyIVLength The KeyLength + KeyIVLength valid range [1,256] .
53795367 * \param[in] Data Data
5380- * \param[in] DataLength The maximum data length is 1300 .
5368+ * \param[in] DataLength The maximum data length is 1200 .
53815369 *
53825370 * \return WM_SUCCESS if successful.
53835371 * \return -WM_E_PERM if not supported.
@@ -5393,11 +5381,12 @@ int wlan_set_crypto_RC4_encrypt(
53935381/** Set crypto RC4 (rivest cipher 4) algorithm decrypt command param.
53945382 *
53955383 * \param[in] Key key
5396- * \param[in] KeyLength The maximum key length is 32 .
5384+ * \param[in] KeyLength The KeyLength + KeyIVLength valid range [1,256] .
53975385 * \param[in] KeyIV KeyIV
5398- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5386+ * \param[in] KeyIVLength The KeyLength + KeyIVLength valid range [1,256] .
53995387 * \param[in] Data Data
5400- * \param[in] DataLength The maximum data length is 1300.
5388+ * \param[in] DataLength The maximum data length is 1200.
5389+ *
54015390 * \return WM_SUCCESS if successful.
54025391 * \return -WM_E_PERM if not supported.
54035392 * \return -WM_FAIL if failure.
@@ -5412,11 +5401,11 @@ int wlan_set_crypto_RC4_decrypt(
54125401/** Set crypto AES_ECB (advanced encryption standard, electronic codebook) algorithm encrypt command param.
54135402 *
54145403 * \param[in] Key key
5415- * \param[in] KeyLength The maximum key length is 32.
5416- * \param[in] KeyIV KeyIV
5417- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5404+ * \param[in] KeyLength The key length is 16/24/ 32.
5405+ * \param[in] KeyIV KeyIV should point to a 8 bytes array with any value in the array.
5406+ * \param[in] KeyIVLength The keyIV length is 8 .
54185407 * \param[in] Data Data
5419- * \param[in] DataLength The maximum data length is 1300 .
5408+ * \param[in] DataLength The data length is 16 .
54205409 * \return WM_SUCCESS if successful.
54215410 * \return -WM_E_PERM if not supported.
54225411 * \return -WM_FAIL if failure.
@@ -5431,11 +5420,11 @@ int wlan_set_crypto_AES_ECB_encrypt(
54315420/** Set crypto AES_ECB (advanced encryption standard, electronic codebook) algorithm decrypt command param.
54325421 *
54335422 * \param[in] Key key
5434- * \param[in] KeyLength The maximum key length is 32.
5435- * \param[in] KeyIV KeyIV
5436- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5423+ * \param[in] KeyLength The key length is 16/24/ 32.
5424+ * \param[in] KeyIV KeyIV should point to a 8 bytes array with any value in the array.
5425+ * \param[in] KeyIVLength The keyIV length is 8 .
54375426 * \param[in] Data Data
5438- * \param[in] DataLength The maximum data length is 1300 .
5427+ * \param[in] DataLength The data length is 16 .
54395428 * \return WM_SUCCESS if successful.
54405429 * \return -WM_E_PERM if not supported.
54415430 * \return -WM_FAIL if failure.
@@ -5450,11 +5439,11 @@ int wlan_set_crypto_AES_ECB_decrypt(
54505439/** Set crypto AES_WRAP (advanced encryption standard wrap) algorithm encrypt command param.
54515440 *
54525441 * \param[in] Key key
5453- * \param[in] KeyLength The maximum key length is 32.
5442+ * \param[in] KeyLength The key length is 16/24/ 32.
54545443 * \param[in] KeyIV KeyIV
5455- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5444+ * \param[in] KeyIVLength The keyIV length is 8 .
54565445 * \param[in] Data Data
5457- * \param[in] DataLength The maximum data length is 1300 .
5446+ * \param[in] DataLength The data length valid range [8,1016] .
54585447 * \return WM_SUCCESS if successful.
54595448 * \return -WM_E_PERM if not supported.
54605449 * \return -WM_FAIL if failure.
@@ -5469,11 +5458,11 @@ int wlan_set_crypto_AES_WRAP_encrypt(
54695458/** Set crypto AES_WRAP algorithm decrypt command param.
54705459 *
54715460 * \param[in] Key key
5472- * \param[in] KeyLength The maximum key length is 32.
5461+ * \param[in] KeyLength The key length is 16/24/ 32.
54735462 * \param[in] KeyIV KeyIV
5474- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5463+ * \param[in] KeyIVLength The keyIV length is 8 .
54755464 * \param[in] Data Data
5476- * \param[in] DataLength The maximum data length is 1300 .
5465+ * \param[in] DataLength The data length valid range [8,1016] .
54775466 * \return WM_SUCCESS if successful.
54785467 * \return -WM_E_PERM if not supported.
54795468 * \return -WM_FAIL if failure.
@@ -5489,13 +5478,13 @@ int wlan_set_crypto_AES_WRAP_decrypt(
54895478 * algorithm encrypt command param.
54905479 *
54915480 * \param[in] Key key
5492- * \param[in] KeyLength The maximum key length is 32.
5481+ * \param[in] KeyLength The key length is 16/ 32.
54935482 * \param[in] AAD AAD
5494- * \param[in] AADLength The maximum AAD length is 32 .
5483+ * \param[in] AADLength The maximum AAD length is 30 .
54955484 * \param[in] Nonce Nonce
5496- * \param[in] NonceLength The maximum nonce length is 14 .
5485+ * \param[in] NonceLength The nonce length valid range [7,13] .
54975486 * \param[in] Data Data
5498- * \param[in] DataLength The maximum data length is 1300 .
5487+ * \param[in] DataLength The maximum data length is 80 .
54995488 * \return WM_SUCCESS if successful.
55005489 * \return -WM_E_PERM if not supported.
55015490 * \return -WM_FAIL if failure.
@@ -5516,13 +5505,13 @@ int wlan_set_crypto_AES_CCMP_encrypt(const t_u8 *Key,
55165505/** Set crypto AES_CCMP algorithm decrypt command param.
55175506 *
55185507 * \param[in] Key key
5519- * \param[in] KeyLength The maximum key length is 32.
5508+ * \param[in] KeyLength The key length is 16/ 32.
55205509 * \param[in] AAD AAD
5521- * \param[in] AADLength The maximum AAD length is 32 .
5510+ * \param[in] AADLength The maximum AAD length is 30 .
55225511 * \param[in] Nonce Nonce
5523- * \param[in] NonceLength The maximum nonce length is 14 .
5512+ * \param[in] NonceLength The nonce length valid range [7,13] .
55245513 * \param[in] Data Data
5525- * \param[in] DataLength The maximum data length is 1300 .
5514+ * \param[in] DataLength The maximum data length is 80 .
55265515 * \return WM_SUCCESS if successful.
55275516 * \return -WM_E_PERM if not supported.
55285517 * \return -WM_FAIL if failure.
@@ -5543,13 +5532,13 @@ int wlan_set_crypto_AES_CCMP_decrypt(const t_u8 *Key,
55435532/** Set crypto AES_GCMP (galois/counter mode with AES-GMAC) algorithm encrypt command param.
55445533 *
55455534 * \param[in] Key key
5546- * \param[in] KeyLength The maximum key length is 32.
5535+ * \param[in] KeyLength The key length is 16/ 32.
55475536 * \param[in] AAD AAD
5548- * \param[in] AADLength The maximum AAD length is 32 .
5537+ * \param[in] AADLength The maximum AAD length is 30 .
55495538 * \param[in] Nonce Nonce
5550- * \param[in] NonceLength The maximum nonce length is 14 .
5539+ * \param[in] NonceLength The nonce length valid range [7,13] .
55515540 * \param[in] Data Data
5552- * \param[in] DataLength The maximum data length is 1300 .
5541+ * \param[in] DataLength The maximum data length is 80 .
55535542 * \return WM_SUCCESS if successful.
55545543 * \return -WM_E_PERM if not supported.
55555544 * \return -WM_FAIL if failure.
@@ -5570,13 +5559,13 @@ int wlan_set_crypto_AES_GCMP_encrypt(const t_u8 *Key,
55705559/** Set crypto AES_CCMP algorithm decrypt command param.
55715560 *
55725561 * \param[in] Key key
5573- * \param[in] KeyLength The maximum key length is 32.
5562+ * \param[in] KeyLength The key length is 16/ 32.
55745563 * \param[in] AAD AAD
5575- * \param[in] AADLength The maximum AAD length is 32 .
5564+ * \param[in] AADLength The maximum AAD length is 30 .
55765565 * \param[in] Nonce Nonce
5577- * \param[in] NonceLength The maximum nonce length is 14 .
5566+ * \param[in] NonceLength The nonce length valid range [7,13] .
55785567 * \param[in] Data Data
5579- * \param[in] DataLength The maximum data length is 1300 .
5568+ * \param[in] DataLength The maximum data length is 80 .
55805569 * \return WM_SUCCESS if successful.
55815570 * \return -WM_E_PERM if not supported.
55825571 * \return -WM_FAIL if failure.
@@ -5816,13 +5805,6 @@ uint8_t *wlan_get_twt_teardown_cfg(void);
58165805 */
58175806int wlan_get_twt_report (wlan_twt_report_t * twt_report );
58185807
5819- /** TWT information
5820- *
5821- * \param[out] twt_information TWT information.
5822- *
5823- * \return WM_SUCCESS if successful otherwise return -WM_FAIL.
5824- */
5825- int wlan_twt_information (wlan_twt_information_t * twt_information );
58265808#endif /* CONFIG_11AX_TWT */
58275809
58285810#if CONFIG_MMSF
@@ -6669,10 +6651,23 @@ int wlan_set_ips(int option);
66696651 */
66706652int wlan_get_signal_info (wlan_rssi_info_t * signal );
66716653
6654+ /**
6655+ * Set band configuration.
6656+ * \param[in] bandcfg band configureation
6657+ *
6658+ * \return WM_SUCCESS if successful otherwise return -WM_FAIL.
6659+ */
66726660int wlan_set_bandcfg (wlan_bandcfg_t * bandcfg );
6661+
6662+ /**
6663+ * Get band configuration.
6664+ * \param[out] bandcfg band configureation
6665+ *
6666+ * \return WM_SUCCESS if successful otherwise return -WM_FAIL.
6667+ */
66736668int wlan_get_bandcfg (wlan_bandcfg_t * bandcfg );
66746669
6675- #if ( CONFIG_COMPRESS_TX_PWTBL )
6670+ #if CONFIG_COMPRESS_TX_PWTBL
66766671/**
66776672 * set region power table
66786673 * \param[in] region_code region code
@@ -6681,6 +6676,15 @@ int wlan_get_bandcfg(wlan_bandcfg_t *bandcfg);
66816676int wlan_set_rg_power_cfg (t_u16 region_code );
66826677#endif
66836678
6679+ #if (CONFIG_COMPRESS_RU_TX_PWTBL ) && (CONFIG_11AX )
6680+ /**
6681+ * set ru tx power table
6682+ * \param[in] region_code region code
6683+ * \return WM_SUCCESS if successful otherwise failure.
6684+ */
6685+ int wlan_set_ru_power_cfg (t_u16 region_code );
6686+ #endif
6687+
66846688#if CONFIG_TURBO_MODE
66856689/**
66866690 * Get Turbo mode.
@@ -7094,6 +7098,15 @@ int wlan_set_network_ip_byname(char *name, struct wlan_ip_config *ip);
70947098int wlan_sta_inactivityto (wlan_inactivity_to_t * inac_to , t_u16 action );
70957099#endif
70967100
7101+ /**
7102+ * Get 802.11 Status Code.
7103+ *
7104+ * \param[in] reason wlcmgr event reason
7105+ *
7106+ * \return status code defined in IEEE 802.11-2020 standard.
7107+ */
7108+ t_u16 wlan_get_status_code (enum wlan_event_reason reason );
7109+
70977110#ifdef RW610
70987111/**
70997112 * Get board temperature.
0 commit comments