diff --git a/Makefile b/Makefile index 99f4a60..41577f2 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,7 @@ APPDIR= $(shell if test -d "mapp"; then echo mapp; fi) ############################################################################# ccflags-y += -I$(KERNELDIR)/include - ccflags-y += -DMLAN_RELEASE_VERSION='"540.p7"' + ccflags-y += -DMLAN_RELEASE_VERSION='"540.p10"' ccflags-y += -DFPNUM='"92"' diff --git a/mlan/mlan_cmdevt.c b/mlan/mlan_cmdevt.c index a6f03fa..9cbaf3c 100644 --- a/mlan/mlan_cmdevt.c +++ b/mlan/mlan_cmdevt.c @@ -3589,7 +3589,9 @@ mlan_status wlan_fill_hal_rtt_results(pmlan_private pmpriv, } rtt_result_elem->len = pos - rtt_result_elem->data; - + /* Check the left length's validity */ + if (event_left_len < (tlv_rtt_result_len + sizeof(tlv_rtt_result->header))) + break; tlv += tlv_rtt_result_len + sizeof(tlv_rtt_result->header); event_left_len -= tlv_rtt_result_len + sizeof(tlv_rtt_result->header); diff --git a/mlan/mlan_sta_event.c b/mlan/mlan_sta_event.c index 581177e..9a62875 100644 --- a/mlan/mlan_sta_event.c +++ b/mlan/mlan_sta_event.c @@ -1398,6 +1398,12 @@ mlan_status wlan_ops_sta_process_event(t_void *priv) case EVENT_FW_DUMP_INFO: PRINTM(MINFO, "EVENT: Dump FW info\n"); + if (pmadapter->cmd_timer_is_set) { + pcb->moal_stop_timer(pmadapter->pmoal_handle, + pmadapter->pmlan_cmd_timer); + /* Cancel command timeout timer */ + pmadapter->cmd_timer_is_set = MFALSE; + } pevent->bss_index = pmpriv->bss_index; pevent->event_id = MLAN_EVENT_ID_FW_DUMP_INFO; // Ensure event_len does not exceed buffer size diff --git a/mlinux/moal_pcie.c b/mlinux/moal_pcie.c index 9f61bc6..95e2d43 100644 --- a/mlinux/moal_pcie.c +++ b/mlinux/moal_pcie.c @@ -999,7 +999,16 @@ static void woal_pcie_reset_prepare(struct pci_dev *pdev) woal_sched_timeout(100); count++; } +#endif + handle->surprise_removed = MTRUE; + handle->fw_reseting = MTRUE; + if (ref_handle) { + ref_handle->surprise_removed = MTRUE; + ref_handle->fw_reseting = MTRUE; + } + +#if defined(PCIEAW693) // This is just WAR for PRC release /* wake up device before set the reset reg */ handle->ops.read_reg(handle, handle->card_info->fw_wakeup_reg, &value); @@ -1012,13 +1021,6 @@ static void woal_pcie_reset_prepare(struct pci_dev *pdev) if (ref_card) pci_write_config_dword(ref_card->dev, 0x80, 0x40); #endif - - handle->surprise_removed = MTRUE; - handle->fw_reseting = MTRUE; - if (ref_handle) { - ref_handle->surprise_removed = MTRUE; - ref_handle->fw_reseting = MTRUE; - } // TODO: Can add more chips once the related code has been ported to fw // v18 if (IS_PCIE9097(handle->card_type) || IS_PCIE9098(handle->card_type) ||