aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ieee80211.h
diff options
context:
space:
mode:
authorJames Ketrenos <jketreno@linux.intel.com>2005-09-13 18:37:22 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-16 03:10:56 -0400
commit68e4e036b841d5fb23ae1ac51b1e40baf9d582bf (patch)
treea5fe3c6c7ef9fa132b5719790f7c1fc0084da083 /include/net/ieee80211.h
parent74079fdce472a2b16d502fe39e06b135ef06c69b (diff)
[PATCH] Changed 802.11 headers to use ieee80211_info_element[0]
Changed 802.11 headers to use ieee80211_info_element as zero sized array so that sizeof calculations do not account for IE sizes. Signed-off-by: James Ketrenos <jketreno@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/net/ieee80211.h')
-rw-r--r--include/net/ieee80211.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h
index d8bb8f74ed7b..6394ae4bf17d 100644
--- a/include/net/ieee80211.h
+++ b/include/net/ieee80211.h
@@ -538,7 +538,7 @@ struct ieee80211_authentication {
538 __le16 algorithm; 538 __le16 algorithm;
539 __le16 transaction; 539 __le16 transaction;
540 __le16 status; 540 __le16 status;
541 struct ieee80211_info_element info_element; 541 struct ieee80211_info_element info_element[0];
542} __attribute__ ((packed)); 542} __attribute__ ((packed));
543 543
544struct ieee80211_probe_response { 544struct ieee80211_probe_response {
@@ -546,14 +546,14 @@ struct ieee80211_probe_response {
546 u32 time_stamp[2]; 546 u32 time_stamp[2];
547 __le16 beacon_interval; 547 __le16 beacon_interval;
548 __le16 capability; 548 __le16 capability;
549 struct ieee80211_info_element info_element; 549 struct ieee80211_info_element info_element[0];
550} __attribute__ ((packed)); 550} __attribute__ ((packed));
551 551
552struct ieee80211_assoc_request_frame { 552struct ieee80211_assoc_request_frame {
553 __le16 capability; 553 __le16 capability;
554 __le16 listen_interval; 554 __le16 listen_interval;
555 u8 current_ap[ETH_ALEN]; 555 u8 current_ap[ETH_ALEN];
556 struct ieee80211_info_element info_element; 556 struct ieee80211_info_element info_element[0];
557} __attribute__ ((packed)); 557} __attribute__ ((packed));
558 558
559struct ieee80211_assoc_response_frame { 559struct ieee80211_assoc_response_frame {
@@ -561,7 +561,7 @@ struct ieee80211_assoc_response_frame {
561 __le16 capability; 561 __le16 capability;
562 __le16 status; 562 __le16 status;
563 __le16 aid; 563 __le16 aid;
564 struct ieee80211_info_element info_element; /* supported rates */ 564 struct ieee80211_info_element info_element[0]; /* supported rates */
565} __attribute__ ((packed)); 565} __attribute__ ((packed));
566 566
567struct ieee80211_txb { 567struct ieee80211_txb {