Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21234
b: refs/heads/master
c: acfaf10
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Feb 28, 2006
1 parent 3985a3c commit 778d584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c45ae87ec9d03c9adfc466a6b560cb38b154813a
refs/heads/master: acfaf10be5c19f7dceb9d7372039dc45af66b100
16 changes: 5 additions & 11 deletions trunk/net/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ static void update_network(struct ieee80211_network *dst,
/* dst->last_associate is not overwritten */
}

static inline int is_beacon(int fc)
static inline int is_beacon(__le16 fc)
{
return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON);
}
Expand Down Expand Up @@ -1443,9 +1443,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
escape_essid(info_element->data,
info_element->len),
MAC_ARG(beacon->header.addr3),
is_beacon(le16_to_cpu
(beacon->header.
frame_ctl)) ?
is_beacon(beacon->header.frame_ctl) ?
"BEACON" : "PROBE RESPONSE");
return;
}
Expand Down Expand Up @@ -1496,9 +1494,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
escape_essid(network.ssid,
network.ssid_len),
MAC_ARG(network.bssid),
is_beacon(le16_to_cpu
(beacon->header.
frame_ctl)) ?
is_beacon(beacon->header.frame_ctl) ?
"BEACON" : "PROBE RESPONSE");
#endif
memcpy(target, &network, sizeof(*target));
Expand All @@ -1509,17 +1505,15 @@ static void ieee80211_process_probe_response(struct ieee80211_device
escape_essid(target->ssid,
target->ssid_len),
MAC_ARG(target->bssid),
is_beacon(le16_to_cpu
(beacon->header.
frame_ctl)) ?
is_beacon(beacon->header.frame_ctl) ?
"BEACON" : "PROBE RESPONSE");
update_network(target, &network);
network.ibss_dfs = NULL;
}

spin_unlock_irqrestore(&ieee->lock, flags);

if (is_beacon(le16_to_cpu(beacon->header.frame_ctl))) {
if (is_beacon(beacon->header.frame_ctl)) {
if (ieee->handle_beacon != NULL)
ieee->handle_beacon(dev, beacon, &network);
} else {
Expand Down

0 comments on commit 778d584

Please sign in to comment.