Skip to content

Commit

Permalink
P2P2: Allow P2P Device Address to be randomized
Browse files Browse the repository at this point in the history
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
  • Loading branch information
Shivani Baranwal authored and Jouni Malinen committed Dec 20, 2024
1 parent 68bb62d commit 8ad20c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions p2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,14 @@ static enum sigma_cmd_result cmd_sta_set_p2p(struct sigma_dut *dut,
return -2;
}

val = get_param(cmd, "GenNewDeviceAddr");
if (val && atoi(val) == 1) {
sigma_dut_print(dut, DUT_MSG_INFO,
"Generate new P2P Device Address");
if (wpa_command(intf, "NEW_RANDOM_MAC_ADDRESS") < 0)
return ERROR_SEND_STATUS;
}

val = get_param(cmd, "Service_Discovery");
if (val) {
int sd = atoi(val);
Expand Down

0 comments on commit 8ad20c5

Please sign in to comment.