Search Linux Wireless

Re: [PATCH 4/4] mac80211: notify driver of rate control updates

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

 



On Wed, Mar 28, 2012 at 10:58 AM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
>
> Devices that have internal rate control need to be
> notified when the bandwidth or SMPS state changes
> just like external rate control algorithms get a
> notification now.
>
> Add this notification and clarify the change bits
> while at it, the HT_CHANGED bit really meant only
> bandwidth changed.
>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---
[...]

>  *
> + * @sta_rc_update: Notifies the driver of changes to the bitrates that can be
> + *     used to transmit to the station. The changes are advertised with bits
> + *     from &enum ieee80211_rate_control_changed and the values are reflected
> + *     in the station data. This callback should only be used when the driver
> + *     uses hardware rate control (%IEEE80211_HW_HAS_RATE_CONTROL) since
> + *     otherwise the rate control algorithm is notified directly.
> + *     Must be atomic.
> + *
it's either atomic...

> +static inline void drv_sta_rc_update(struct ieee80211_local *local,
> +                                    struct ieee80211_sub_if_data *sdata,
> +                                    struct ieee80211_sta *sta, u32 changed)
> +{
> +       might_sleep();

or might sleep :)

Eliad.
--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux