Search Linux Wireless

Re: [PATCH 11/14] mac80211: wait for scan work complete before restarting hw

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

 



On Fri, 2010-09-10 at 07:26 -0700, Stanislaw Gruszka wrote:
> This is needed to avoid warning in ieee80211_restart_hw about hardware
> scan in progress.
> 
> Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
Acked-by: Wey-Yi W Guy <wey-yi.w.guy@xxxxxxxxx>
> ---
>  net/mac80211/main.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/main.c b/net/mac80211/main.c
> index 4935b84..bf0eb6a 100644
> --- a/net/mac80211/main.c
> +++ b/net/mac80211/main.c
> @@ -305,6 +305,9 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw)
>  
>  	trace_api_restart_hw(local);
>  
> +	/* wait for scan work complete */
> +	flush_workqueue(local->workqueue);
> +
>  	WARN(test_bit(SCAN_HW_SCANNING, &local->scanning),
>  		"%s called with hardware scan in progress\n", __func__);
>  

--
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