Search Linux Wireless

Re: [PATCH] mac80211: Add function to get probe request template for current AP

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

 



On Tue, 2010-11-09 at 10:21 +0200, juuso.oikarinen@xxxxxxxxx wrote:

> +struct sk_buff *ieee80211_ap_probereq_get(struct ieee80211_hw *hw,
> +					  struct ieee80211_vif *vif)
> +{
> +	struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
> +	struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
> +	struct sk_buff *skb;
> +	const u8 *ssid;
> +
> +	if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_STATION))
> +		return NULL;
> +
> +	ASSERT_MGD_MTX(ifmgd);

This is interesting locking, you will definitely need to document better
that this may only be called from within the bss_info_changed callback.

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