#
30088a7c |
| 03-Nov-2020 |
Vinita S. Maloo <vmaloo@codeaurora.org> |
Miracast: Send a valid rtsp_session_id pointer
Earlier when zero is passed as pointer for rtsp_session_id, it was causing a CFI failure and also a functional failure in hidl hal library. Send a vali
Miracast: Send a valid rtsp_session_id pointer
Earlier when zero is passed as pointer for rtsp_session_id, it was causing a CFI failure and also a functional failure in hidl hal library. Send a valid pointer to rtsp_session_id parameter to start_wfd_connection() in this exception to all other calls to avoid this.
Signed-off-by: Vinita S. Maloo <vmaloo@codeaurora.org>
show more ...
|
#
d9d6e643 |
| 03-Apr-2020 |
Jouni Malinen <jouni@codeaurora.org> |
Miracast: Avoid compiler warning about snprintf() truncating results
Explicitly check that the cmd buffer had sufficient room for the command.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
#
ed5e050d |
| 03-Apr-2020 |
Sunil Dutt <usdutt@codeaurora.org> |
Miracast: Modify the declaration for extn_sta_reset_default()
Modify the declaration of the function pointer extn_sta_reset_default to match its implementation.
Signed-off-by: Jouni Malinen <jouni@
Miracast: Modify the declaration for extn_sta_reset_default()
Modify the declaration of the function pointer extn_sta_reset_default to match its implementation.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
bf9bcdf6 |
| 02-Apr-2020 |
Sunil Dutt <usdutt@codeaurora.org> |
Miracast: Get modified MAC address and then do the DHCP check
Enhance the capability of obtaining the modified MAC address and then performing the DHCP check to detect whether the peer client has re
Miracast: Get modified MAC address and then do the DHCP check
Enhance the capability of obtaining the modified MAC address and then performing the DHCP check to detect whether the peer client has received an IP address rather than rely on MAC address parsing from the DHCP lease file.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
b7c08448 |
| 03-Apr-2020 |
Sunil Dutt <usdutt@codeaurora.org> |
Miracast: Change data type of rtsp_session_id
Change the data type of rtsp_session_id from string to int to avoid dealing with string lengths that would otherwise require being propagated across the
Miracast: Change data type of rtsp_session_id
Change the data type of rtsp_session_id from string to int to avoid dealing with string lengths that would otherwise require being propagated across the code.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
79e6c109 |
| 02-Apr-2020 |
Sunil Dutt <usdutt@codeaurora.org> |
Miracast: Migrate to usage of native DHCP APIs
Use the native DHCP APIs by removing the MIRACAST_DHCP_M flag. Remove legacy code for exercising DHCP functionality associated with the flag.
Signed-o
Miracast: Migrate to usage of native DHCP APIs
Use the native DHCP APIs by removing the MIRACAST_DHCP_M flag. Remove legacy code for exercising DHCP functionality associated with the flag.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
5ea3092b |
| 04-Nov-2019 |
Jouni Malinen <jouni@codeaurora.org> |
Use get_main_ifname() helper more consistently
This is needed to allow dut->main_ifname to point to multiple interface names for dynamic selection with multi-radio setups.
Signed-off-by: Jouni Mali
Use get_main_ifname() helper more consistently
This is needed to allow dut->main_ifname to point to multiple interface names for dynamic selection with multi-radio setups.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
d2095485 |
| 04-Nov-2019 |
Jouni Malinen <jouni@codeaurora.org> |
Move main_ifname/station_ifname into struct sigma_dut
Get rid of these global variables by moving them into struct sigma_dut.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
#
016ae6c8 |
| 04-Nov-2019 |
Jouni Malinen <jouni@codeaurora.org> |
Add pointer to struct sigma_dut to get-ifname helper functions
This is needed to allow more dynamic generation of the interface name for dual-radio cases.
Signed-off-by: Jouni Malinen <jouni@codeau
Add pointer to struct sigma_dut to get-ifname helper functions
This is needed to allow more dynamic generation of the interface name for dual-radio cases.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
f722271e |
| 12-Jun-2019 |
Jouni Malinen <jouni@codeaurora.org> |
Update command handler process() callback return value type
The partial move from returning int to returning enum sigma_cmd_result was problematic for LLVM/Clang Control Flow Integrity (CFI) sanitiz
Update command handler process() callback return value type
The partial move from returning int to returning enum sigma_cmd_result was problematic for LLVM/Clang Control Flow Integrity (CFI) sanitizer. With CFI, the function pointers are verified to have the same type as the actual callback function and enum is not considered to match int in that context. This results in sigma_dut terminating if CFI is enabled for the build. Avoid this by updating the process() callback functions to use the exact same type as the function pointer.
This was done with following semantic patch and manual cleanup to remove functions that matched but were not used as registered callbacks (those functions can be addressed separately as cleanup since they do not cause issues with CFI) and with coding style cleanup for indentation.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
39dc4500 |
| 06-May-2018 |
Wu Gao <wugao@codeaurora.org> |
Miracast: Use the self generated PIN value with P2P_CONNECT display
Fix the sigma_dut controlled P2P group formation case where the local device is displaying a PIN. The sigma_dut generated PIN is r
Miracast: Use the self generated PIN value with P2P_CONNECT display
Fix the sigma_dut controlled P2P group formation case where the local device is displaying a PIN. The sigma_dut generated PIN is read by an earlier CAPI command and it is send to the peer device. This same previously generated PIN value needs to be sent from sigma_dut to wpa_supplicant in the P2P_CONNECT command instead of requesting wpa_supplicant to generate another PIN (which is what the "pin" argument does). This fixed WPS PIN mismatch issues in related testing operations.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
c12ea4af |
| 05-Jan-2018 |
Jouni Malinen <jouni@codeaurora.org> |
Update copyright notices for 2018
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
#
00852b5b |
| 04-Jan-2018 |
Jouni Malinen <jouni@codeaurora.org> |
miracast: Check wpa_command_resp() return value in all cases
The response buffer may not be initialized if the function returns a failure, so check for that explicitly.
Signed-off-by: Jouni Malinen
miracast: Check wpa_command_resp() return value in all cases
The response buffer may not be initialized if the function returns a failure, so check for that explicitly.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
0262c72c |
| 03-Jan-2018 |
Peng Xu <pxu@codeaurora.org> |
miracast: Check return code before using returned buffer
In cmd_start_wfd_connection() and cmd_connect_go_start_wfd(), check wpa_command_resp() result before using the returned buffer which could be
miracast: Check return code before using returned buffer
In cmd_start_wfd_connection() and cmd_connect_go_start_wfd(), check wpa_command_resp() result before using the returned buffer which could be uninitialized in case of errors.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
show more ...
|
#
9e1dcf80 |
| 22-May-2017 |
Jouni Malinen <jouni@qca.qualcomm.com> |
Miracast: Check FrameName argument in dev_send_frame handling
Reject dev_send_frame with missing FrameName argument to avoid potential NULL pointer dereference.
Signed-off-by: Jouni Malinen <jouni@
Miracast: Check FrameName argument in dev_send_frame handling
Reject dev_send_frame with missing FrameName argument to avoid potential NULL pointer dereference.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
show more ...
|
#
d56a7b23 |
| 22-May-2017 |
Jouni Malinen <jouni@qca.qualcomm.com> |
Miracast: Silence static analyzer warnings
Remove unnecessary checks for dut != NULL in thread entry functions to keep pointer dereferences within those functions more consistent. dut cannot be NULL
Miracast: Silence static analyzer warnings
Remove unnecessary checks for dut != NULL in thread entry functions to keep pointer dereferences within those functions more consistent. dut cannot be NULL in either of these cases.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
show more ...
|
#
9ed647c0 |
| 12-May-2017 |
Amarnath Hullur Subramanyam <amarnath@qti.qualcomm.com> |
Miracast: Fix for static analysis issue in connect_go_start_wfd()
sig_resp_buf() was not initialized at the time strlen(sig_resp_buf) was used for the first time. There is no need to split this sig_
Miracast: Fix for static analysis issue in connect_go_start_wfd()
sig_resp_buf() was not initialized at the time strlen(sig_resp_buf) was used for the first time. There is no need to split this sig_resp_buf writing into two parts, so fix this by using a single snprintf() call.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
show more ...
|
#
d6e8a820 |
| 12-May-2017 |
Amarnath Hullur Subramanyam <amarnath@qti.qualcomm.com> |
Miracast: Fix return string for in start_wfd_connection
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|
#
b8fc5cc8 |
| 11-May-2017 |
Peng Xu <pxu@qti.qualcomm.com> |
Fix static analysis issues with strncpy()
Replace strncpy() with strlcpy() to silence static analysis warnings about use of deprecated functions.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.co
Fix static analysis issues with strncpy()
Replace strncpy() with strlcpy() to silence static analysis warnings about use of deprecated functions.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
show more ...
|
#
769731a2 |
| 11-May-2017 |
Peng Xu <pxu@qti.qualcomm.com> |
Introduce shared strlcpy() and strlcat() implementations
These were already used internally in some source code files for non-Android builds. Share a single common implementations in utils.c and mak
Introduce shared strlcpy() and strlcat() implementations
These were already used internally in some source code files for non-Android builds. Share a single common implementations in utils.c and make it available throughout sigma_dut to make this cleaner.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
show more ...
|
#
e9fa7953 |
| 09-May-2017 |
Peng Xu <pxu@qti.qualcomm.com> |
Fix static analysis issues
Fix various static analysis issues.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|
#
7cd7f4f9 |
| 03-May-2017 |
Amarnath Hullur Subramanyam <amarnath@qti.qualcomm.com> |
Miracast: Fix sta_generate_event
Fix sta_generate_event with Frame Skip parameter for Miracast R1.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|
#
c59f41cc |
| 03-May-2017 |
Amarnath Hullur Subramanyam <amarnath@qti.qualcomm.com> |
Miracast: Fix sta_get_parameter
Fix sta_get_parameter to return all discovered peers.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|
#
ff376dfc |
| 21-Apr-2017 |
Amarnath Hullur Subramanyam <amarnath@qti.qualcomm.com> |
Miracast: Add persistent group creation during Miracast session
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|
#
d2c14390 |
| 24-Mar-2017 |
Amarnath Hullur Subramanyam <amarnath@qca.qualcomm.com> |
Miracast: Fix error in command string generation
This fixes a logical error leading to generation of incomplete command strings.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|