Skip to content

Commit

Permalink
Make couple of P2P helper functions non-static
Browse files Browse the repository at this point in the history
This is needed for the Miracast implementation.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
  • Loading branch information
Amarnath Hullur Subramanyam authored and jmalinen committed Mar 17, 2017
1 parent 4b0cdee commit 89b37cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions p2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static int get_60g_freq(int chan)
#define END_IP_RANGE "192.168.43.100"
#define FLUSH_IP_ADDR "0.0.0.0"

static void start_dhcp(struct sigma_dut *dut, const char *group_ifname, int go)
void start_dhcp(struct sigma_dut *dut, const char *group_ifname, int go)
{
#ifdef __linux__
char buf[200];
Expand Down Expand Up @@ -93,7 +93,7 @@ static void start_dhcp(struct sigma_dut *dut, const char *group_ifname, int go)
}


static void stop_dhcp(struct sigma_dut *dut, const char *group_ifname, int go)
void stop_dhcp(struct sigma_dut *dut, const char *group_ifname, int go)
{
#ifdef __linux__
char path[128];
Expand Down Expand Up @@ -462,8 +462,8 @@ static int p2p_peer_known(const char *ifname, const char *peer, int full)
}


static int p2p_discover_peer(struct sigma_dut *dut, const char *ifname,
const char *peer, int full)
int p2p_discover_peer(struct sigma_dut *dut, const char *ifname,
const char *peer, int full)
{
unsigned int count;

Expand Down
4 changes: 4 additions & 0 deletions sigma_dut.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,10 @@ int p2p_cmd_sta_get_parameter(struct sigma_dut *dut, struct sigma_conn *conn,
struct sigma_cmd *cmd);
void p2p_create_event_thread(struct sigma_dut *dut);
void stop_event_thread(void);
void start_dhcp(struct sigma_dut *dut, const char *group_ifname, int go);
void stop_dhcp(struct sigma_dut *dut, const char *group_ifname, int go);
int p2p_discover_peer(struct sigma_dut *dut, const char *ifname,
const char *peer, int full);

/* utils.c */
enum sigma_program sigma_program_to_enum(const char *prog);
Expand Down

0 comments on commit 89b37cd

Please sign in to comment.