Skip to content

Commit

Permalink
rc: shared: add missing function, and re-merge RT-AC86U's rc/broadcom…
Browse files Browse the repository at this point in the history
….o binary blob from 45717
  • Loading branch information
RMerl committed May 29, 2019
1 parent 11afd2a commit 2e53a3a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Binary file modified release/src/router/rc/prebuild/RT-AC86U/broadcom.o
Binary file not shown.
1 change: 1 addition & 0 deletions release/src/router/shared/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,7 @@ extern int get_wl_sta_list(void);
extern int get_maxassoc(char *ifname);
extern int wl_add_ie(int unit, uint32 pktflag, int ielen, uchar *oui, uchar *data);
extern void wl_del_ie_with_oui(int unit, uchar *oui);
extern void wait_connection_finished(int band);
#endif
#if defined(RTCONFIG_LANTIQ)
extern int get_wl_sta_list(void);
Expand Down
16 changes: 16 additions & 0 deletions release/src/router/shared/sysdeps/broadcom/broadcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,22 @@ int get_psta_status(int unit)

return ret;
}

void wait_connection_finished(int band)
{
int wait_time = 0;
int conn_stat = 0;
int wlc_conn_time = nvram_get_int("wlc_conn_time") ? : 10;

while (wait_time++ < wlc_conn_time)
{
conn_stat = get_psta_status(band);
//dbG("[%s] (wait_time = %d) conn_stat[band%d] = %d\n", __FUNCTION__, wait_time, band, conn_stat);
if ( conn_stat == WLC_STATE_CONNECTED)
break;
sleep(1);
}
}
#endif

static int is_hex(char c)
Expand Down

0 comments on commit 2e53a3a

Please sign in to comment.