[cw1200] Add ability to reset bss loss counter.

This commit is contained in:
Solomon Peachy 2013-03-07 09:28:38 -05:00
parent 6890523a09
commit af6fa4d1cb
2 changed files with 5 additions and 2 deletions

View File

@ -468,14 +468,14 @@ nomem:
/* ******************************************************************** */
int wsm_set_bss_params(struct cw1200_common *priv,
const struct wsm_set_bss_params *arg)
const struct wsm_set_bss_params *arg)
{
int ret;
struct wsm_buf *buf = &priv->wsm_cmd_buf;
wsm_cmd_lock(priv);
WSM_PUT8(buf, 0);
WSM_PUT8(buf, (arg->reset_beacon_loss ? 0x1 : 0));
WSM_PUT8(buf, arg->beacon_lost_count);
WSM_PUT16(buf, arg->aid);
WSM_PUT32(buf, arg->operational_rate_set);

View File

@ -988,6 +988,9 @@ struct wsm_set_pm_complete {
#define WSM_SET_BSS_PARAMS_REQ_ID 0x0011
#define WSM_SET_BSS_PARAMS_RESP_ID 0x0411
struct wsm_set_bss_params {
/* This resets the beacon loss counters only */
u8 reset_beacon_loss;
/* The number of lost consecutive beacons after which */
/* the WLAN device should indicate the BSS-Lost event */
/* to the WLAN host driver. */