Search Linux Wireless

Re: [RFC 2/3] mac80211: allow drivers to specify sw scan wait constraints

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

 



On Sat, Aug 28, 2010 at 03:13:09AM -0400, Luis R. Rodriguez wrote:

> diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
> index 14123dc..5025950 100644
> --- a/net/mac80211/driver-ops.h
> +++ b/net/mac80211/driver-ops.h
> @@ -187,6 +187,22 @@ static inline void drv_sw_scan_start(struct ieee80211_local *local)
>  	trace_drv_return_void(local);
>  }
>  
> +static inline int drv_sw_scan_wait_constraints(struct ieee80211_local *local)
> +{
> +	bool wait_constraints = false;
> +
> +	might_sleep();
> +
> +	trace_drv_sw_scan_wait_constraints(local);
> +	if (local->ops->sw_scan_start)

Are we checking the right member here?

> +		wait_constraints =
> +			local->ops->sw_scan_wait_constraints(&local->hw);
> +	trace_drv_return_int(local, wait_constraints);
> +
> +	return wait_constraints;
> +}
> +
> +
>  static inline void drv_sw_scan_complete(struct ieee80211_local *local)
>  {
>  	might_sleep();

-- 
John W. Linville		Someday the world will need a hero, and you
linville@xxxxxxxxxxxxx			might be all we have.  Be ready.
--
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