Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194496
b: refs/heads/master
c: 69c264d
h: refs/heads/master
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Apr 19, 2010
1 parent 48db416 commit 835e50f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 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: c3d415030c1a00cc21935c38f8761db46ef1d7ff
refs/heads/master: 69c264de2ada18bd9da6c9f582a8babd3dcf5f18
12 changes: 0 additions & 12 deletions trunk/drivers/net/wireless/orinoco/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ int orinoco_commit(struct orinoco_private *priv);
void orinoco_reset(struct work_struct *work);

/* Information element helpers - find a home for these... */
static inline u8 *orinoco_get_ie(u8 *data, size_t len,
enum ieee80211_eid eid)
{
u8 *p = data;
while ((p + 2) < (data + len)) {
if (p[0] == eid)
return p;
p += p[1] + 2;
}
return NULL;
}

#define WPA_OUI_TYPE "\x00\x50\xF2\x01"
#define WPA_SELECTOR_LEN 4
static inline u8 *orinoco_get_wpa_ie(u8 *data, size_t len)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/orinoco/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void orinoco_add_extscan_result(struct orinoco_private *priv,
{
struct wiphy *wiphy = priv_to_wiphy(priv);
struct ieee80211_channel *channel;
u8 *ie;
const u8 *ie;
u64 timestamp;
s32 signal;
u16 capability;
Expand All @@ -135,7 +135,7 @@ void orinoco_add_extscan_result(struct orinoco_private *priv,
int chan, freq;

ie_len = len - sizeof(*bss);
ie = orinoco_get_ie(bss->data, ie_len, WLAN_EID_DS_PARAMS);
ie = cfg80211_find_ie(WLAN_EID_DS_PARAMS, bss->data, ie_len);
chan = ie ? ie[2] : 0;
freq = ieee80211_dsss_chan_to_freq(chan);
channel = ieee80211_get_channel(wiphy, freq);
Expand Down

0 comments on commit 835e50f

Please sign in to comment.