Skip to content

Commit

Permalink
[PATCH] ieee80211 Removed ieee80211_info_element_hdr
Browse files Browse the repository at this point in the history
Removed ieee80211_info_element_hdr structure as ieee80211_info_element
provides the same use.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
James Ketrenos authored and Jeff Garzik committed Sep 16, 2005
1 parent 68e4e03 commit 7b1fa54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions include/net/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,6 @@ enum ieee80211_mfie {
MFIE_TYPE_GENERIC = 221,
};

struct ieee80211_info_element_hdr {
u8 id;
u8 len;
} __attribute__ ((packed));

struct ieee80211_info_element {
u8 id;
u8 len;
Expand Down
10 changes: 5 additions & 5 deletions net/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,10 @@ static inline int ieee80211_network_init(struct ieee80211_device *ieee, struct i
network->rsn_ie_len = 0;

info_element = beacon->info_element;
left = stats->len - ((void *)info_element - (void *)beacon);
while (left >= sizeof(struct ieee80211_info_element_hdr)) {
if (sizeof(struct ieee80211_info_element_hdr) +
info_element->len > left) {
left = stats->len - sizeof(*beacon);
while (left >= sizeof(struct ieee80211_info_element)) {
if (sizeof(struct ieee80211_info_element) + info_element->len >
left) {
IEEE80211_DEBUG_SCAN
("SCAN: parse failed: info_element->len + 2 > left : info_element->len+2=%Zd left=%d.\n",
info_element->len +
Expand Down Expand Up @@ -967,7 +967,7 @@ static inline int ieee80211_network_init(struct ieee80211_device *ieee, struct i
break;
}

left -= sizeof(struct ieee80211_info_element_hdr) +
left -= sizeof(struct ieee80211_info_element) +
info_element->len;
info_element = (struct ieee80211_info_element *)
&info_element->data[info_element->len];
Expand Down

0 comments on commit 7b1fa54

Please sign in to comment.