|
@@ -4912,8 +4912,8 @@ WILC_Sint32 host_int_add_wep_key_bss_ap(WILC_WFIDrvHandle hWFIDrv, const WILC_Ui
|
|
* @date 8 March 2012
|
|
* @date 8 March 2012
|
|
* @version 1.0
|
|
* @version 1.0
|
|
*/
|
|
*/
|
|
-WILC_Sint32 host_int_add_ptk(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8Ptk, WILC_Uint8 u8PtkKeylen,
|
|
|
|
- const WILC_Uint8 *mac_addr, WILC_Uint8 *pu8RxMic, WILC_Uint8 *pu8TxMic, WILC_Uint8 mode, WILC_Uint8 u8Ciphermode, WILC_Uint8 u8Idx)
|
|
|
|
|
|
+WILC_Sint32 host_int_add_ptk(WILC_WFIDrvHandle hWFIDrv, const u8 *pu8Ptk, WILC_Uint8 u8PtkKeylen,
|
|
|
|
+ const u8 *mac_addr, const u8 *pu8RxMic, const u8 *pu8TxMic, WILC_Uint8 mode, WILC_Uint8 u8Ciphermode, WILC_Uint8 u8Idx)
|
|
{
|
|
{
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
@@ -5014,9 +5014,9 @@ WILC_Sint32 host_int_add_ptk(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8Ptk, WILC
|
|
* @date 8 March 2012
|
|
* @date 8 March 2012
|
|
* @version 1.0
|
|
* @version 1.0
|
|
*/
|
|
*/
|
|
-WILC_Sint32 host_int_add_rx_gtk(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8RxGtk, WILC_Uint8 u8GtkKeylen,
|
|
|
|
- WILC_Uint8 u8KeyIdx, WILC_Uint32 u32KeyRSClen, WILC_Uint8 *KeyRSC,
|
|
|
|
- WILC_Uint8 *pu8RxMic, WILC_Uint8 *pu8TxMic, WILC_Uint8 mode, WILC_Uint8 u8Ciphermode)
|
|
|
|
|
|
+WILC_Sint32 host_int_add_rx_gtk(WILC_WFIDrvHandle hWFIDrv, const u8 *pu8RxGtk, WILC_Uint8 u8GtkKeylen,
|
|
|
|
+ WILC_Uint8 u8KeyIdx, WILC_Uint32 u32KeyRSClen, const u8 *KeyRSC,
|
|
|
|
+ const u8 *pu8RxMic, const u8 *pu8TxMic, WILC_Uint8 mode, WILC_Uint8 u8Ciphermode)
|
|
{
|
|
{
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
@@ -5531,7 +5531,7 @@ WILC_Sint32 host_int_get_start_scan_req(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *p
|
|
* @version 1.0
|
|
* @version 1.0
|
|
*/
|
|
*/
|
|
WILC_Sint32 host_int_set_join_req(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8bssid,
|
|
WILC_Sint32 host_int_set_join_req(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8bssid,
|
|
- WILC_Uint8 *pu8ssid, size_t ssidLen,
|
|
|
|
|
|
+ const u8 *pu8ssid, size_t ssidLen,
|
|
const WILC_Uint8 *pu8IEs, size_t IEsLen,
|
|
const WILC_Uint8 *pu8IEs, size_t IEsLen,
|
|
tWILCpfConnectResult pfConnectResult, void *pvUserArg,
|
|
tWILCpfConnectResult pfConnectResult, void *pvUserArg,
|
|
WILC_Uint8 u8security, AUTHTYPE_T tenuAuth_type,
|
|
WILC_Uint8 u8security, AUTHTYPE_T tenuAuth_type,
|
|
@@ -6090,7 +6090,7 @@ WILC_Sint32 host_int_test_set_int_wid(WILC_WFIDrvHandle hWFIDrv, WILC_Uint32 u32
|
|
* @date
|
|
* @date
|
|
* @version 1.0
|
|
* @version 1.0
|
|
*/
|
|
*/
|
|
-WILC_Sint32 host_int_get_inactive_time(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *mac, WILC_Uint32 *pu32InactiveTime)
|
|
|
|
|
|
+WILC_Sint32 host_int_get_inactive_time(WILC_WFIDrvHandle hWFIDrv, const u8 *mac, WILC_Uint32 *pu32InactiveTime)
|
|
{
|
|
{
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
@@ -7364,10 +7364,11 @@ WILC_Sint32 host_int_add_station(WILC_WFIDrvHandle hWFIDrv, tstrWILC_AddStaParam
|
|
|
|
|
|
WILC_memcpy(pstrAddStationMsg, pstrStaParams, sizeof(tstrWILC_AddStaParam));
|
|
WILC_memcpy(pstrAddStationMsg, pstrStaParams, sizeof(tstrWILC_AddStaParam));
|
|
if (pstrAddStationMsg->u8NumRates > 0) {
|
|
if (pstrAddStationMsg->u8NumRates > 0) {
|
|
- pstrAddStationMsg->pu8Rates = WILC_MALLOC(pstrAddStationMsg->u8NumRates);
|
|
|
|
- WILC_NULLCHECK(s32Error, pstrAddStationMsg->pu8Rates);
|
|
|
|
|
|
+ u8 *rates = WILC_MALLOC(pstrAddStationMsg->u8NumRates);
|
|
|
|
+ WILC_NULLCHECK(s32Error, rates);
|
|
|
|
|
|
- WILC_memcpy(pstrAddStationMsg->pu8Rates, pstrStaParams->pu8Rates, pstrAddStationMsg->u8NumRates);
|
|
|
|
|
|
+ WILC_memcpy(rates, pstrStaParams->pu8Rates, pstrAddStationMsg->u8NumRates);
|
|
|
|
+ pstrAddStationMsg->pu8Rates = rates;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -7391,7 +7392,7 @@ WILC_Sint32 host_int_add_station(WILC_WFIDrvHandle hWFIDrv, tstrWILC_AddStaParam
|
|
* @date
|
|
* @date
|
|
* @version 1.0
|
|
* @version 1.0
|
|
*/
|
|
*/
|
|
-WILC_Sint32 host_int_del_station(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8MacAddr)
|
|
|
|
|
|
+WILC_Sint32 host_int_del_station(WILC_WFIDrvHandle hWFIDrv, const u8 *pu8MacAddr)
|
|
{
|
|
{
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
@@ -7437,7 +7438,7 @@ WILC_Sint32 host_int_del_station(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 *pu8MacAd
|
|
* @date
|
|
* @date
|
|
* @version 1.0
|
|
* @version 1.0
|
|
*/
|
|
*/
|
|
-WILC_Sint32 host_int_del_allstation(WILC_WFIDrvHandle hWFIDrv, WILC_Uint8 pu8MacAddr[][ETH_ALEN])
|
|
|
|
|
|
+WILC_Sint32 host_int_del_allstation(WILC_WFIDrvHandle hWFIDrv, u8 pu8MacAddr[][ETH_ALEN])
|
|
{
|
|
{
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
WILC_Sint32 s32Error = WILC_SUCCESS;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
|
|
@@ -7523,9 +7524,10 @@ WILC_Sint32 host_int_edit_station(WILC_WFIDrvHandle hWFIDrv, tstrWILC_AddStaPara
|
|
|
|
|
|
WILC_memcpy(pstrAddStationMsg, pstrStaParams, sizeof(tstrWILC_AddStaParam));
|
|
WILC_memcpy(pstrAddStationMsg, pstrStaParams, sizeof(tstrWILC_AddStaParam));
|
|
if (pstrAddStationMsg->u8NumRates > 0) {
|
|
if (pstrAddStationMsg->u8NumRates > 0) {
|
|
- pstrAddStationMsg->pu8Rates = WILC_MALLOC(pstrAddStationMsg->u8NumRates);
|
|
|
|
- WILC_memcpy(pstrAddStationMsg->pu8Rates, pstrStaParams->pu8Rates, pstrAddStationMsg->u8NumRates);
|
|
|
|
- WILC_NULLCHECK(s32Error, pstrAddStationMsg->pu8Rates);
|
|
|
|
|
|
+ u8 *rates = WILC_MALLOC(pstrAddStationMsg->u8NumRates);
|
|
|
|
+ WILC_NULLCHECK(s32Error, rates);
|
|
|
|
+ WILC_memcpy(rates, pstrStaParams->pu8Rates, pstrAddStationMsg->u8NumRates);
|
|
|
|
+ pstrAddStationMsg->pu8Rates = rates;
|
|
}
|
|
}
|
|
|
|
|
|
s32Error = WILC_MsgQueueSend(&gMsgQHostIF, &strHostIFmsg, sizeof(tstrHostIFmsg), WILC_NULL);
|
|
s32Error = WILC_MsgQueueSend(&gMsgQHostIF, &strHostIFmsg, sizeof(tstrHostIFmsg), WILC_NULL);
|