Search Linux Wireless

Re: [PATCH] mac80211: Add WME information element for IBSS

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

 



On Fri, 2010-10-01 at 14:15 +0900, Bruno Randolf wrote:

> +                       if (elems->wmm_info)
> +                               set_sta_flags(sta, WLAN_STA_WME);
>                         rcu_read_unlock();
>                 } else {
>                         rcu_read_unlock();
> -                       ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa,
> -                                              supp_rates, GFP_KERNEL);
> +
> +                       sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid,
> +                                       mgmt->sa, supp_rates, GFP_KERNEL);
> +                       if (sta && elems->wmm_info)
> +                               set_sta_flags(sta, WLAN_STA_WME);

If you want to use the sta pointer, you need this code to be before
rcu_read_unlock(), not after.

johannes

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