Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265795
b: refs/heads/master
c: f42bd2c
h: refs/heads/master
i:
  265793: 2560e99
  265791: a105d5a
v: v3
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Aug 22, 2011
1 parent 638ab04 commit c3c0652
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 154037d1681caaff7d33521b84017ee58b396438
refs/heads/master: f42bd2cbf1d5ff4b161ad2c59ff12d66558c8374
25 changes: 0 additions & 25 deletions trunk/drivers/net/wireless/wl12xx/acx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,31 +1660,6 @@ int wl1271_acx_set_inconnection_sta(struct wl1271 *wl, u8 *addr)
return ret;
}

int wl1271_acx_set_ap_beacon_filter(struct wl1271 *wl, bool enable)
{
struct acx_ap_beacon_filter *acx = NULL;
int ret;

wl1271_debug(DEBUG_ACX, "acx set ap beacon filter: %d", enable);

acx = kzalloc(sizeof(*acx), GFP_KERNEL);
if (!acx)
return -ENOMEM;

acx->enable = enable ? 1 : 0;

ret = wl1271_cmd_configure(wl, ACX_AP_BEACON_FILTER_OPT,
acx, sizeof(*acx));
if (ret < 0) {
wl1271_warning("acx set ap beacon filter failed: %d", ret);
goto out;
}

out:
kfree(acx);
return ret;
}

int wl1271_acx_fm_coex(struct wl1271 *wl)
{
struct wl1271_acx_fm_coex *acx;
Expand Down
9 changes: 0 additions & 9 deletions trunk/drivers/net/wireless/wl12xx/acx.h
Original file line number Diff line number Diff line change
Expand Up @@ -1096,13 +1096,6 @@ struct wl1271_acx_inconnection_sta {
u8 padding1[2];
} __packed;

struct acx_ap_beacon_filter {
struct acx_header header;

u8 enable;
u8 pad[3];
} __packed;

/*
* ACX_FM_COEX_CFG
* set the FM co-existence parameters.
Expand Down Expand Up @@ -1177,7 +1170,6 @@ enum {
ACX_TID_CFG = 0x001A,
ACX_PS_RX_STREAMING = 0x001B,
ACX_BEACON_FILTER_OPT = 0x001F,
ACX_AP_BEACON_FILTER_OPT = 0x0020,
ACX_NOISE_HIST = 0x0021,
ACX_HDK_VERSION = 0x0022, /* ??? */
ACX_PD_THRESHOLD = 0x0023,
Expand Down Expand Up @@ -1301,7 +1293,6 @@ int wl1271_acx_ps_rx_streaming(struct wl1271 *wl, bool enable);
int wl1271_acx_ap_max_tx_retry(struct wl1271 *wl);
int wl1271_acx_config_ps(struct wl1271 *wl);
int wl1271_acx_set_inconnection_sta(struct wl1271 *wl, u8 *addr);
int wl1271_acx_set_ap_beacon_filter(struct wl1271 *wl, bool enable);
int wl1271_acx_fm_coex(struct wl1271 *wl);

#endif /* __WL1271_ACX_H__ */
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/wl12xx/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ int wl1271_ap_init_templates(struct wl1271 *wl)
* when operating as AP we want to receive external beacons for
* configuring ERP protection.
*/
ret = wl1271_acx_set_ap_beacon_filter(wl, false);
ret = wl1271_acx_beacon_filter_opt(wl, false);
if (ret < 0)
return ret;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ static int wl1271_configure_suspend_ap(struct wl1271 *wl)
if (ret < 0)
goto out_unlock;

ret = wl1271_acx_set_ap_beacon_filter(wl, true);
ret = wl1271_acx_beacon_filter_opt(wl, true);

wl1271_ps_elp_sleep(wl);
out_unlock:
Expand Down Expand Up @@ -1677,7 +1677,7 @@ static void wl1271_configure_resume(struct wl1271 *wl)
wl1271_ps_set_mode(wl, STATION_ACTIVE_MODE,
wl->basic_rate, true);
} else if (is_ap) {
wl1271_acx_set_ap_beacon_filter(wl, false);
wl1271_acx_beacon_filter_opt(wl, false);
}

wl1271_ps_elp_sleep(wl);
Expand Down

0 comments on commit c3c0652

Please sign in to comment.