cfg80211: fix whitespace in scan handling

Fix a number of indentation and similar issues.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg
2012-11-28 22:39:37 +01:00
parent b629ea3db4
commit 915de2ff4a

View File

@@ -238,9 +238,8 @@ void cfg80211_bss_age(struct cfg80211_registered_device *dev,
struct cfg80211_internal_bss *bss; struct cfg80211_internal_bss *bss;
unsigned long age_jiffies = msecs_to_jiffies(age_secs * MSEC_PER_SEC); unsigned long age_jiffies = msecs_to_jiffies(age_secs * MSEC_PER_SEC);
list_for_each_entry(bss, &dev->bss_list, list) { list_for_each_entry(bss, &dev->bss_list, list)
bss->ts -= age_jiffies; bss->ts -= age_jiffies;
}
} }
void cfg80211_bss_expire(struct cfg80211_registered_device *dev) void cfg80211_bss_expire(struct cfg80211_registered_device *dev)
@@ -309,8 +308,7 @@ static int cmp_ies(u8 num, u8 *ies1, size_t len1, u8 *ies2, size_t len2)
return memcmp(ie1 + 2, ie2 + 2, ie1[1]); return memcmp(ie1 + 2, ie2 + 2, ie1[1]);
} }
static bool is_bss(struct cfg80211_bss *a, static bool is_bss(struct cfg80211_bss *a, const u8 *bssid,
const u8 *bssid,
const u8 *ssid, size_t ssid_len) const u8 *ssid, size_t ssid_len)
{ {
const u8 *ssidie; const u8 *ssidie;
@@ -389,8 +387,7 @@ static bool is_mesh(struct cfg80211_bss *a,
sizeof(struct ieee80211_meshconf_ie) - 2) == 0; sizeof(struct ieee80211_meshconf_ie) - 2) == 0;
} }
static int cmp_bss_core(struct cfg80211_bss *a, static int cmp_bss_core(struct cfg80211_bss *a, struct cfg80211_bss *b)
struct cfg80211_bss *b)
{ {
int r; int r;
@@ -435,8 +432,7 @@ static int cmp_bss(struct cfg80211_bss *a,
b->len_information_elements); b->len_information_elements);
} }
static int cmp_hidden_bss(struct cfg80211_bss *a, static int cmp_hidden_bss(struct cfg80211_bss *a, struct cfg80211_bss *b)
struct cfg80211_bss *b)
{ {
const u8 *ie1; const u8 *ie1;
const u8 *ie2; const u8 *ie2;
@@ -704,6 +700,7 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
found->pub.len_information_elements = found->pub.len_information_elements =
found->pub.len_proberesp_ies; found->pub.len_proberesp_ies;
} }
if (res->pub.beacon_ies) { if (res->pub.beacon_ies) {
size_t used = dev->wiphy.bss_priv_size + sizeof(*res); size_t used = dev->wiphy.bss_priv_size + sizeof(*res);
size_t ielen = res->pub.len_beacon_ies; size_t ielen = res->pub.len_beacon_ies;