22
22
#include <wifi_events.h>
23
23
#include <wifi.h>
24
24
25
- #define WLAN_DRV_VERSION "v1.3.r48.p21 "
25
+ #define WLAN_DRV_VERSION "v1.3.r48.p25 "
26
26
27
27
#if CONFIG_WPA2_ENTP
28
28
#include <wm_mbedtls_helper_api.h>
@@ -1474,10 +1474,6 @@ typedef wifi_btwt_config_t wlan_btwt_config_t;
1474
1474
* \ref wifi_twt_report_t
1475
1475
*/
1476
1476
typedef 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 ;
1481
1477
#endif /* CONFIG_11AX_TWT */
1482
1478
#if CONFIG_MMSF
1483
1479
#define WLAN_AMPDU_DENSITY 0x30
@@ -3365,14 +3361,6 @@ int wlan_set_multicast(t_u8 mef_action);
3365
3361
*/
3366
3362
int wlan_set_ieeeps_cfg (struct wlan_ieeeps_config * ps_cfg );
3367
3363
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
-
3376
3364
/** Configure listen interval of IEEE power save mode.
3377
3365
*
3378
3366
* \note <b>Delivery traffic indication message (DTIM)</b>:
@@ -5373,11 +5361,11 @@ void wlan_register_fw_dump_cb(void (*wlan_usb_init_cb)(void),
5373
5361
/** Set crypto RC4 (rivest cipher 4) algorithm encrypt command param.
5374
5362
*
5375
5363
* \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] .
5377
5365
* \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] .
5379
5367
* \param[in] Data Data
5380
- * \param[in] DataLength The maximum data length is 1300 .
5368
+ * \param[in] DataLength The maximum data length is 1200 .
5381
5369
*
5382
5370
* \return WM_SUCCESS if successful.
5383
5371
* \return -WM_E_PERM if not supported.
@@ -5393,11 +5381,12 @@ int wlan_set_crypto_RC4_encrypt(
5393
5381
/** Set crypto RC4 (rivest cipher 4) algorithm decrypt command param.
5394
5382
*
5395
5383
* \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] .
5397
5385
* \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] .
5399
5387
* \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
+ *
5401
5390
* \return WM_SUCCESS if successful.
5402
5391
* \return -WM_E_PERM if not supported.
5403
5392
* \return -WM_FAIL if failure.
@@ -5412,11 +5401,11 @@ int wlan_set_crypto_RC4_decrypt(
5412
5401
/** Set crypto AES_ECB (advanced encryption standard, electronic codebook) algorithm encrypt command param.
5413
5402
*
5414
5403
* \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 .
5418
5407
* \param[in] Data Data
5419
- * \param[in] DataLength The maximum data length is 1300 .
5408
+ * \param[in] DataLength The data length is 16 .
5420
5409
* \return WM_SUCCESS if successful.
5421
5410
* \return -WM_E_PERM if not supported.
5422
5411
* \return -WM_FAIL if failure.
@@ -5431,11 +5420,11 @@ int wlan_set_crypto_AES_ECB_encrypt(
5431
5420
/** Set crypto AES_ECB (advanced encryption standard, electronic codebook) algorithm decrypt command param.
5432
5421
*
5433
5422
* \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 .
5437
5426
* \param[in] Data Data
5438
- * \param[in] DataLength The maximum data length is 1300 .
5427
+ * \param[in] DataLength The data length is 16 .
5439
5428
* \return WM_SUCCESS if successful.
5440
5429
* \return -WM_E_PERM if not supported.
5441
5430
* \return -WM_FAIL if failure.
@@ -5450,11 +5439,11 @@ int wlan_set_crypto_AES_ECB_decrypt(
5450
5439
/** Set crypto AES_WRAP (advanced encryption standard wrap) algorithm encrypt command param.
5451
5440
*
5452
5441
* \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.
5454
5443
* \param[in] KeyIV KeyIV
5455
- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5444
+ * \param[in] KeyIVLength The keyIV length is 8 .
5456
5445
* \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] .
5458
5447
* \return WM_SUCCESS if successful.
5459
5448
* \return -WM_E_PERM if not supported.
5460
5449
* \return -WM_FAIL if failure.
@@ -5469,11 +5458,11 @@ int wlan_set_crypto_AES_WRAP_encrypt(
5469
5458
/** Set crypto AES_WRAP algorithm decrypt command param.
5470
5459
*
5471
5460
* \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.
5473
5462
* \param[in] KeyIV KeyIV
5474
- * \param[in] KeyIVLength The maximum keyIV length is 32 .
5463
+ * \param[in] KeyIVLength The keyIV length is 8 .
5475
5464
* \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] .
5477
5466
* \return WM_SUCCESS if successful.
5478
5467
* \return -WM_E_PERM if not supported.
5479
5468
* \return -WM_FAIL if failure.
@@ -5489,13 +5478,13 @@ int wlan_set_crypto_AES_WRAP_decrypt(
5489
5478
* algorithm encrypt command param.
5490
5479
*
5491
5480
* \param[in] Key key
5492
- * \param[in] KeyLength The maximum key length is 32.
5481
+ * \param[in] KeyLength The key length is 16/ 32.
5493
5482
* \param[in] AAD AAD
5494
- * \param[in] AADLength The maximum AAD length is 32 .
5483
+ * \param[in] AADLength The maximum AAD length is 30 .
5495
5484
* \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] .
5497
5486
* \param[in] Data Data
5498
- * \param[in] DataLength The maximum data length is 1300 .
5487
+ * \param[in] DataLength The maximum data length is 80 .
5499
5488
* \return WM_SUCCESS if successful.
5500
5489
* \return -WM_E_PERM if not supported.
5501
5490
* \return -WM_FAIL if failure.
@@ -5516,13 +5505,13 @@ int wlan_set_crypto_AES_CCMP_encrypt(const t_u8 *Key,
5516
5505
/** Set crypto AES_CCMP algorithm decrypt command param.
5517
5506
*
5518
5507
* \param[in] Key key
5519
- * \param[in] KeyLength The maximum key length is 32.
5508
+ * \param[in] KeyLength The key length is 16/ 32.
5520
5509
* \param[in] AAD AAD
5521
- * \param[in] AADLength The maximum AAD length is 32 .
5510
+ * \param[in] AADLength The maximum AAD length is 30 .
5522
5511
* \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] .
5524
5513
* \param[in] Data Data
5525
- * \param[in] DataLength The maximum data length is 1300 .
5514
+ * \param[in] DataLength The maximum data length is 80 .
5526
5515
* \return WM_SUCCESS if successful.
5527
5516
* \return -WM_E_PERM if not supported.
5528
5517
* \return -WM_FAIL if failure.
@@ -5543,13 +5532,13 @@ int wlan_set_crypto_AES_CCMP_decrypt(const t_u8 *Key,
5543
5532
/** Set crypto AES_GCMP (galois/counter mode with AES-GMAC) algorithm encrypt command param.
5544
5533
*
5545
5534
* \param[in] Key key
5546
- * \param[in] KeyLength The maximum key length is 32.
5535
+ * \param[in] KeyLength The key length is 16/ 32.
5547
5536
* \param[in] AAD AAD
5548
- * \param[in] AADLength The maximum AAD length is 32 .
5537
+ * \param[in] AADLength The maximum AAD length is 30 .
5549
5538
* \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] .
5551
5540
* \param[in] Data Data
5552
- * \param[in] DataLength The maximum data length is 1300 .
5541
+ * \param[in] DataLength The maximum data length is 80 .
5553
5542
* \return WM_SUCCESS if successful.
5554
5543
* \return -WM_E_PERM if not supported.
5555
5544
* \return -WM_FAIL if failure.
@@ -5570,13 +5559,13 @@ int wlan_set_crypto_AES_GCMP_encrypt(const t_u8 *Key,
5570
5559
/** Set crypto AES_CCMP algorithm decrypt command param.
5571
5560
*
5572
5561
* \param[in] Key key
5573
- * \param[in] KeyLength The maximum key length is 32.
5562
+ * \param[in] KeyLength The key length is 16/ 32.
5574
5563
* \param[in] AAD AAD
5575
- * \param[in] AADLength The maximum AAD length is 32 .
5564
+ * \param[in] AADLength The maximum AAD length is 30 .
5576
5565
* \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] .
5578
5567
* \param[in] Data Data
5579
- * \param[in] DataLength The maximum data length is 1300 .
5568
+ * \param[in] DataLength The maximum data length is 80 .
5580
5569
* \return WM_SUCCESS if successful.
5581
5570
* \return -WM_E_PERM if not supported.
5582
5571
* \return -WM_FAIL if failure.
@@ -5816,13 +5805,6 @@ uint8_t *wlan_get_twt_teardown_cfg(void);
5816
5805
*/
5817
5806
int wlan_get_twt_report (wlan_twt_report_t * twt_report );
5818
5807
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 );
5826
5808
#endif /* CONFIG_11AX_TWT */
5827
5809
5828
5810
#if CONFIG_MMSF
@@ -6669,10 +6651,23 @@ int wlan_set_ips(int option);
6669
6651
*/
6670
6652
int wlan_get_signal_info (wlan_rssi_info_t * signal );
6671
6653
6654
+ /**
6655
+ * Set band configuration.
6656
+ * \param[in] bandcfg band configureation
6657
+ *
6658
+ * \return WM_SUCCESS if successful otherwise return -WM_FAIL.
6659
+ */
6672
6660
int 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
+ */
6673
6668
int wlan_get_bandcfg (wlan_bandcfg_t * bandcfg );
6674
6669
6675
- #if ( CONFIG_COMPRESS_TX_PWTBL )
6670
+ #if CONFIG_COMPRESS_TX_PWTBL
6676
6671
/**
6677
6672
* set region power table
6678
6673
* \param[in] region_code region code
@@ -6681,6 +6676,15 @@ int wlan_get_bandcfg(wlan_bandcfg_t *bandcfg);
6681
6676
int wlan_set_rg_power_cfg (t_u16 region_code );
6682
6677
#endif
6683
6678
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
+
6684
6688
#if CONFIG_TURBO_MODE
6685
6689
/**
6686
6690
* Get Turbo mode.
@@ -7094,6 +7098,15 @@ int wlan_set_network_ip_byname(char *name, struct wlan_ip_config *ip);
7094
7098
int wlan_sta_inactivityto (wlan_inactivity_to_t * inac_to , t_u16 action );
7095
7099
#endif
7096
7100
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
+
7097
7110
#ifdef RW610
7098
7111
/**
7099
7112
* Get board temperature.
0 commit comments