Skip to content

Commit

Permalink
[PATCH] mac80211: remove ieee80211_wep_get_keyidx
Browse files Browse the repository at this point in the history
This function is not used any more.

Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
jmberg authored and David S. Miller committed Oct 10, 2007
1 parent 6a22a59 commit af1a90d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions net/mac80211/wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,25 +286,6 @@ int ieee80211_wep_decrypt(struct ieee80211_local *local, struct sk_buff *skb,
}


int ieee80211_wep_get_keyidx(struct sk_buff *skb)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
u16 fc;
int hdrlen;

fc = le16_to_cpu(hdr->frame_control);
if (!(fc & IEEE80211_FCTL_PROTECTED))
return -1;

hdrlen = ieee80211_get_hdrlen(fc);

if (skb->len < 8 + hdrlen)
return -1;

return skb->data[hdrlen + 3] >> 6;
}


u8 * ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
Expand Down
1 change: 0 additions & 1 deletion net/mac80211/wep.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ int ieee80211_wep_encrypt(struct ieee80211_local *local, struct sk_buff *skb,
struct ieee80211_key *key);
int ieee80211_wep_decrypt(struct ieee80211_local *local, struct sk_buff *skb,
struct ieee80211_key *key);
int ieee80211_wep_get_keyidx(struct sk_buff *skb);
u8 * ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key);

ieee80211_txrx_result
Expand Down

0 comments on commit af1a90d

Please sign in to comment.