diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2012-03-13 08:57:04 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-03-13 14:54:20 -0400 |
| commit | 7b8bcff2e0f11981dd6840f9feefe0914e4ea521 (patch) | |
| tree | d9e59a47b7a4932a43d5c50ef47afd79f29ecddd | |
| parent | 8e6cffb3b42f03a47a56ede928b006f117628646 (diff) | |
cfg80211: clarify timestamp in cfg80211_inform_bss
This is intended to be the timestamp sent by the
peer in the beacon/probe response, not any form
of host timestamp. Clarify the documentation and
variable names.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
| -rw-r--r-- | include/net/cfg80211.h | 7 | ||||
| -rw-r--r-- | net/wireless/scan.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 66f460325e24..69b7ad3a9925 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
| @@ -2697,7 +2697,7 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy, | |||
| 2697 | * @wiphy: the wiphy reporting the BSS | 2697 | * @wiphy: the wiphy reporting the BSS |
| 2698 | * @channel: The channel the frame was received on | 2698 | * @channel: The channel the frame was received on |
| 2699 | * @bssid: the BSSID of the BSS | 2699 | * @bssid: the BSSID of the BSS |
| 2700 | * @timestamp: the TSF timestamp sent by the peer | 2700 | * @tsf: the TSF sent by the peer in the beacon/probe response (or 0) |
| 2701 | * @capability: the capability field sent by the peer | 2701 | * @capability: the capability field sent by the peer |
| 2702 | * @beacon_interval: the beacon interval announced by the peer | 2702 | * @beacon_interval: the beacon interval announced by the peer |
| 2703 | * @ie: additional IEs sent by the peer | 2703 | * @ie: additional IEs sent by the peer |
| @@ -2713,9 +2713,8 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy, | |||
| 2713 | struct cfg80211_bss * __must_check | 2713 | struct cfg80211_bss * __must_check |
| 2714 | cfg80211_inform_bss(struct wiphy *wiphy, | 2714 | cfg80211_inform_bss(struct wiphy *wiphy, |
| 2715 | struct ieee80211_channel *channel, | 2715 | struct ieee80211_channel *channel, |
| 2716 | const u8 *bssid, | 2716 | const u8 *bssid, u64 tsf, u16 capability, |
| 2717 | u64 timestamp, u16 capability, u16 beacon_interval, | 2717 | u16 beacon_interval, const u8 *ie, size_t ielen, |
| 2718 | const u8 *ie, size_t ielen, | ||
| 2719 | s32 signal, gfp_t gfp); | 2718 | s32 signal, gfp_t gfp); |
| 2720 | 2719 | ||
| 2721 | struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, | 2720 | struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, |
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index afde7e5f0010..70faadf16a32 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
| @@ -734,9 +734,8 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev, | |||
| 734 | struct cfg80211_bss* | 734 | struct cfg80211_bss* |
| 735 | cfg80211_inform_bss(struct wiphy *wiphy, | 735 | cfg80211_inform_bss(struct wiphy *wiphy, |
| 736 | struct ieee80211_channel *channel, | 736 | struct ieee80211_channel *channel, |
| 737 | const u8 *bssid, | 737 | const u8 *bssid, u64 tsf, u16 capability, |
| 738 | u64 timestamp, u16 capability, u16 beacon_interval, | 738 | u16 beacon_interval, const u8 *ie, size_t ielen, |
| 739 | const u8 *ie, size_t ielen, | ||
| 740 | s32 signal, gfp_t gfp) | 739 | s32 signal, gfp_t gfp) |
| 741 | { | 740 | { |
| 742 | struct cfg80211_internal_bss *res; | 741 | struct cfg80211_internal_bss *res; |
| @@ -758,7 +757,7 @@ cfg80211_inform_bss(struct wiphy *wiphy, | |||
| 758 | memcpy(res->pub.bssid, bssid, ETH_ALEN); | 757 | memcpy(res->pub.bssid, bssid, ETH_ALEN); |
| 759 | res->pub.channel = channel; | 758 | res->pub.channel = channel; |
| 760 | res->pub.signal = signal; | 759 | res->pub.signal = signal; |
| 761 | res->pub.tsf = timestamp; | 760 | res->pub.tsf = tsf; |
| 762 | res->pub.beacon_interval = beacon_interval; | 761 | res->pub.beacon_interval = beacon_interval; |
| 763 | res->pub.capability = capability; | 762 | res->pub.capability = capability; |
| 764 | /* | 763 | /* |
