Skip to content

Commit

Permalink
[nrf fromlist] Add AP support flag
Browse files Browse the repository at this point in the history
Protects AP code in case the DUT doesn't support it yet.

Upstream-Pr: Wi-FiQuickTrack/Wi-FiQuickTrack-ControlAppC#5

Signed-off-by: Triveni Danda <[email protected]>
(cherry picked from commit 538efcc)
  • Loading branch information
krish2718 authored and cvinayak committed Oct 19, 2023
1 parent b9efbe9 commit 7c8daba
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 136 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif

# Feature flags
# Enable by default
CFLAGS += -DCONFIG_P2P -DCONFIG_WNM -DCONFIG_HS20
CFLAGS += -DCONFIG_P2P -DCONFIG_WNM -DCONFIG_HS20 -DCONFIG_AP

# Define the package version
ifneq ($(VERSION),)
Expand Down
5 changes: 5 additions & 0 deletions indigo_api_callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ static int start_dhcp_handler(struct packet_wrapper *req, struct packet_wrapper
static int stop_dhcp_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
static int get_wsc_pin_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
static int get_wsc_cred_handler(struct packet_wrapper *req, struct packet_wrapper *resp);

#ifdef CONFIG_AP
/* AP */
static int stop_ap_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
static int configure_ap_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
Expand All @@ -255,6 +257,8 @@ static int send_ap_btm_handler(struct packet_wrapper *req, struct packet_wrapper
static int trigger_ap_channel_switch(struct packet_wrapper *req, struct packet_wrapper *resp);
static int start_wps_ap_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
static int configure_ap_wsc_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
#endif /* End Of CONFIG_AP */

/* STA */
static int stop_sta_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
static int configure_sta_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
Expand All @@ -275,6 +279,7 @@ static int send_sta_icon_req_handler(struct packet_wrapper *req, struct packet_w
#endif /* End Of CONFIG_HS20 */
static int start_wps_sta_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
static int enable_wsc_sta_handler(struct packet_wrapper *req, struct packet_wrapper *resp);

#ifdef CONFIG_P2P
/* P2P */
static int start_up_p2p_handler(struct packet_wrapper *req, struct packet_wrapper *resp);
Expand Down
Loading

0 comments on commit 7c8daba

Please sign in to comment.