Search Linux Wireless

Re: [PATCHv5 1/2] mac80211_hwsim: Add tsf to beacons, probe responses and radiotap header.

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

 



> +	struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) skb->data;
> +	struct mac80211_hwsim_data *data = hw->priv;
> +
> +	if (ieee80211_is_beacon(mgmt->frame_control) ||
> +				ieee80211_is_probe_resp(mgmt->frame_control))
> +		mgmt->u.beacon.timestamp = __mac80211_hwsim_get_tsf(data);

In light of the recent discussion ... John will have to point out to you
that the right style is

if (ieee80211...() ||
    ieee80211...()) {
}


:-)

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