Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt fixes v2.5.1 #21

Open
wants to merge 6 commits into
base: qt_v2.5.1
Choose a base branch
from

Conversation

D-Triveni
Copy link
Collaborator

No description provided.

zephyr/src/indigo_api_callback_dut.c Outdated Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Outdated Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Outdated Show resolved Hide resolved
@krish2718
Copy link
Collaborator

Please don't use empty commit log body

zephyr/src/indigo_api_callback_dut.c Outdated Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Outdated Show resolved Hide resolved
zephyr/src/utils.c Outdated Show resolved Hide resolved
zephyr/src/indigo_api_callback_dut.c Outdated Show resolved Hide resolved
zephyr/src/wpa_s_events.c Outdated Show resolved Hide resolved
zephyr/CMakeLists.txt Outdated Show resolved Hide resolved
D-Triveni and others added 6 commits February 27, 2024 03:06
Replaced sprintf with snprintf to enhance string length
handling.

Signed-off-by: Triveni Danda <[email protected]>
…changes

Control socket is opened by supplicant, so sending
request on the control is enough.

Signed-off-by: Triveni Danda <[email protected]>
…e destination buffer length

This to ensure that the copying operation does not exceed
the size of the destination buffer.

Signed-off-by: Triveni Danda <[email protected]>
Use strncpy to prevent buffer overflow vulnerabilities.

Signed-off-by: Triveni Danda <[email protected]>
Implement imperative check for supplicant
readiness prior to QT thread initiation.

Signed-off-by: Triveni Danda <[email protected]>
STA disconnect doesn't any reboot.

Signed-off-by: Chaitanya Tata <[email protected]>
Copy link
Collaborator

@krish2718 krish2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Also, make the delay after sento for reboot configurable
  • one snprintf remaining in utils.c that isn't converted to macro
  • My changes for get_mac_address from the patch
  • My changes for run_qt_command


#define CHECK_SNPRINTF(dest, dest_size, ...) \
do { \
int result = snprintf(dest, dest_size, __VA_ARGS__); \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't declare variables in macros, let functions declare them and we just use it here

} \
} while(0)

#define RUN_QT_COMMAND(request, ret) \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to pass ret here, this is a macro not a function

zephyr/src/indigo_api_callback_dut.c Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants