From: Juuso Oikarinen Date: Mon, 24 May 2010 08:18:19 +0000 (+0300) Subject: wl1271: Use proper rates for PSM entry/exit null-funcs for 5GHz X-Git-Tag: MMI-PSA29.97-13-9~23092^2~107^2~408 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5da54f94992b35fd58ad5b569abe8ca04048f8f1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git wl1271: Use proper rates for PSM entry/exit null-funcs for 5GHz A fixed 1 mbps rate was used for the PSM entry/exit null-func frames. Fix this by using the basic rates instead. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index 05b6d8a4aea2..dcad42ccc9d4 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c @@ -518,7 +518,7 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, bool send) ps_params->send_null_data = send; ps_params->retries = 5; ps_params->hang_over_period = 1; - ps_params->null_data_rate = cpu_to_le32(1); /* 1 Mbps */ + ps_params->null_data_rate = cpu_to_le32(wl->basic_rate_set); ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, sizeof(*ps_params), 0);