Search Linux Wireless

Re: [PATCH 3/9] [mac80211] enable radar detection

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

 



On Mon, Feb 28, 2011 at 08:47:44AM -0800, Bernhard Schmidt wrote:
> +	if (sdata && (sdata->vif.type == NL80211_IFTYPE_ADHOC ||
> +		      sdata->vif.type == NL80211_IFTYPE_AP ||
> +		      sdata->vif.type == NL80211_IFTYPE_AP_VLAN ||
> +		      sdata->vif.type == NL80211_IFTYPE_MESH_POINT ||
> +		      sdata->vif.type == NL80211_IFTYPE_P2P_GO) &&

How about adding a helper as a separate patch that checks this
for us and then sprinkling in other areas of code we have that uses
the same check?

Some thing like ieee80211_sdata_can_beacon(sdata) or whatever.

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