* [PATCH] mac80211: don't export linux/ieee80211.h
@ 2007-04-27 19:54 Michael Wu
2007-04-27 20:17 ` Johannes Berg
2007-04-27 20:22 ` Michael Buesch
0 siblings, 2 replies; 4+ messages in thread
From: Michael Wu @ 2007-04-27 19:54 UTC (permalink / raw)
To: Jiri Benc; +Cc: linux-wireless
From: Michael Wu <flamingice@sourmilk.net>
The definitions in linux/ieee80211.h don't need to be exported.
Signed-off-by: Michael Wu <flamingice@sourmilk.net>
---
include/linux/Kbuild | 1 -
include/linux/ieee80211.h | 56 +++++++++++++++++++++++----------------------
2 files changed, 28 insertions(+), 29 deletions(-)
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 2781d33..7a1bb18 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -70,7 +70,6 @@ header-y += hysdn_if.h
header-y += i2c-dev.h
header-y += i8k.h
header-y += icmp.h
-header-y += ieee80211.h
header-y += if_arcnet.h
header-y += if_arp.h
header-y += if_bonding.h
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index ae19306..ecd61e8 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -98,20 +98,20 @@
struct ieee80211_hdr {
__le16 frame_control;
__le16 duration_id;
- __u8 addr1[6];
- __u8 addr2[6];
- __u8 addr3[6];
+ u8 addr1[6];
+ u8 addr2[6];
+ u8 addr3[6];
__le16 seq_ctrl;
- __u8 addr4[6];
+ u8 addr4[6];
} __attribute__ ((packed));
struct ieee80211_mgmt {
__le16 frame_control;
__le16 duration;
- __u8 da[6];
- __u8 sa[6];
- __u8 bssid[6];
+ u8 da[6];
+ u8 sa[6];
+ u8 bssid[6];
__le16 seq_ctrl;
union {
struct {
@@ -119,7 +119,7 @@ struct ieee80211_mgmt {
__le16 auth_transaction;
__le16 status_code;
/* possibly followed by Challenge text */
- __u8 variable[0];
+ u8 variable[0];
} __attribute__ ((packed)) auth;
struct {
__le16 reason_code;
@@ -135,14 +135,14 @@ struct ieee80211_mgmt {
__le16 status_code;
__le16 aid;
/* followed by Supported rates */
- __u8 variable[0];
+ u8 variable[0];
} __attribute__ ((packed)) assoc_resp, reassoc_resp;
struct {
__le16 capab_info;
__le16 listen_interval;
- __u8 current_ap[6];
+ u8 current_ap[6];
/* followed by SSID and Supported rates */
- __u8 variable[0];
+ u8 variable[0];
} __attribute__ ((packed)) reassoc_req;
struct {
__le16 reason_code;
@@ -153,11 +153,11 @@ struct ieee80211_mgmt {
__le16 capab_info;
/* followed by some of SSID, Supported rates,
* FH Params, DS Params, CF Params, IBSS Params, TIM */
- __u8 variable[0];
+ u8 variable[0];
} __attribute__ ((packed)) beacon;
struct {
/* only variable items: SSID, Supported rates */
- __u8 variable[0];
+ u8 variable[0];
} __attribute__ ((packed)) probe_req;
struct {
__le64 timestamp;
@@ -165,24 +165,24 @@ struct ieee80211_mgmt {
__le16 capab_info;
/* followed by some of SSID, Supported rates,
* FH Params, DS Params, CF Params, IBSS Params */
- __u8 variable[0];
+ u8 variable[0];
} __attribute__ ((packed)) probe_resp;
struct {
- __u8 category;
+ u8 category;
union {
struct {
- __u8 action_code;
- __u8 dialog_token;
- __u8 status_code;
- __u8 variable[0];
+ u8 action_code;
+ u8 dialog_token;
+ u8 status_code;
+ u8 variable[0];
} __attribute__ ((packed)) wme_action;
struct{
- __u8 action_code;
- __u8 element_id;
- __u8 length;
- __u8 switch_mode;
- __u8 new_chan;
- __u8 switch_count;
+ u8 action_code;
+ u8 element_id;
+ u8 length;
+ u8 switch_mode;
+ u8 new_chan;
+ u8 switch_count;
} __attribute__((packed)) chan_switch;
} u;
} __attribute__ ((packed)) action;
@@ -194,14 +194,14 @@ struct ieee80211_mgmt {
struct ieee80211_rts {
__le16 frame_control;
__le16 duration;
- __u8 ra[6];
- __u8 ta[6];
+ u8 ra[6];
+ u8 ta[6];
} __attribute__ ((packed));
struct ieee80211_cts {
__le16 frame_control;
__le16 duration;
- __u8 ra[6];
+ u8 ra[6];
} __attribute__ ((packed));
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] mac80211: don't export linux/ieee80211.h
2007-04-27 19:54 [PATCH] mac80211: don't export linux/ieee80211.h Michael Wu
@ 2007-04-27 20:17 ` Johannes Berg
2007-04-27 20:22 ` Michael Buesch
1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-04-27 20:17 UTC (permalink / raw)
To: Michael Wu; +Cc: Jiri Benc, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
On Fri, 2007-04-27 at 15:54 -0400, Michael Wu wrote:
> The definitions in linux/ieee80211.h don't need to be exported.
Actually, cfg80211 depends on the cipher suite defines. These are of
course well-known constants and can be found in the specs, but I don't
see the point of not just exporting them.
Does anybody remember a reason why this should not be exported?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac80211: don't export linux/ieee80211.h
2007-04-27 19:54 [PATCH] mac80211: don't export linux/ieee80211.h Michael Wu
2007-04-27 20:17 ` Johannes Berg
@ 2007-04-27 20:22 ` Michael Buesch
2007-04-27 20:30 ` Michael Wu
1 sibling, 1 reply; 4+ messages in thread
From: Michael Buesch @ 2007-04-27 20:22 UTC (permalink / raw)
To: Michael Wu; +Cc: Jiri Benc, linux-wireless
On Friday 27 April 2007 21:54:55 Michael Wu wrote:
> From: Michael Wu <flamingice@sourmilk.net>
>
> The definitions in linux/ieee80211.h don't need to be exported.
>
> Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Whether they should be exported or not...
Why change all __u8 to u8? I don't see the point.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-27 20:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-27 19:54 [PATCH] mac80211: don't export linux/ieee80211.h Michael Wu
2007-04-27 20:17 ` Johannes Berg
2007-04-27 20:22 ` Michael Buesch
2007-04-27 20:30 ` Michael Wu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.