Search Linux Wireless

Re: [PATCH v2 3/7] wl12xx: add forced_ps mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2012-01-31 at 16:44 +0200, Eliad Peller wrote: 
> From: Eyal Shapira <eyal@xxxxxxxxxx>
> 
> For certain WiFi certification tests forcing PS
> is necessary. Since DPS is now enabled in the FW
> and this can't be achieved by using netlatency
> this required a new config option.
> 
> Signed-off-by: Eyal Shapira <eyal@xxxxxxxxxx>
> Signed-off-by: Eliad Peller <eliad@xxxxxxxxxx>
> ---

[...]

> diff --git a/drivers/net/wireless/wl12xx/conf.h b/drivers/net/wireless/wl12xx/conf.h
> index d97aad6..f29fbfd 100644
> --- a/drivers/net/wireless/wl12xx/conf.h
> +++ b/drivers/net/wireless/wl12xx/conf.h
> @@ -934,6 +934,12 @@ struct conf_conn_settings {
>  	u16 dynamic_ps_timeout;
>  
>  	/*
> +	 * Specifies whether dynamic PS should be disabled and PSM forced.
> +	 * This is required for certain WiFi certification tests.
> +	 */
> +	u8 forced_ps;
> +
> +	/*

We are kind of abusing the conf struct.  Originally it contained the
stuff that was coming from the INI file, now we're putting everything
there.  It's okay for now, but just a reminder that we need to clean all
this up at some point (soon!).


> diff --git a/drivers/net/wireless/wl12xx/debugfs.c b/drivers/net/wireless/wl12xx/debugfs.c
> index 15353fa..02da445 100644
> --- a/drivers/net/wireless/wl12xx/debugfs.c
> +++ b/drivers/net/wireless/wl12xx/debugfs.c
> @@ -358,7 +358,7 @@ static ssize_t dynamic_ps_timeout_write(struct file *file,
>          */
>  
>         wl12xx_for_each_wlvif_sta(wl, wlvif) {
> -               if (test_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags))
> +               if (test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags))
>                         wl1271_ps_set_mode(wl, wlvif, STATION_AUTO_PS_MODE);
>         }

Don't you want to change this file so that we can dynamically change from auto-PS to forced-PS?

> diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
> index 29a00fc..f2960df 100644
> --- a/drivers/net/wireless/wl12xx/main.c
> +++ b/drivers/net/wireless/wl12xx/main.c
> @@ -244,6 +244,7 @@ static struct conf_drv_settings default_conf = {
>                 .psm_exit_retries            = 16,
>                 .psm_entry_nullfunc_retries  = 3,
>                 .dynamic_ps_timeout          = 100,
> +               .forced_ps                   = false,
>                 .keep_alive_interval         = 55000,
>                 .max_listen_interval         = 20,
>         },

This is hardcoded and would require the driver to be recompiled in order
to enable this feature.  Is that even allowed during certification (ie.
use two different binaries for different testcases)?


-- 
Cheers,
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux