diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-30 17:09:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:11:56 -0500 |
commit | 2c706002fc147decdba2658ea48e4436faca3af2 (patch) | |
tree | 3e515fa59e6f7de045579f103cba09cd05293de7 /drivers/net/wireless/libertas/cmd.c | |
parent | 9b1fbae4b242cf86a878771eb59dc600dde72ec8 (diff) |
don't use net/ieee80211.h
Convert all the drivers using net/ieee80211.h to use linux/ieee80211.h.
Contains a bugfix in libertas where the SSID parsing could overrun the
buffer when the AP sends invalid information.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Dan Williams <dcbw@redhat.com> [airo, libertas]
Acked-by: Pavel Roskin <proski@gnu.org> [orinoco]
Acked-by: David Kilroy <kilroyd@googlemail.com> [orinoco]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 38843c8b919c..957fd5a10a8d 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -5,7 +5,6 @@ | |||
5 | 5 | ||
6 | #include <net/iw_handler.h> | 6 | #include <net/iw_handler.h> |
7 | #include <net/lib80211.h> | 7 | #include <net/lib80211.h> |
8 | #include <net/ieee80211.h> | ||
9 | #include <linux/kfifo.h> | 8 | #include <linux/kfifo.h> |
10 | #include "host.h" | 9 | #include "host.h" |
11 | #include "hostcmd.h" | 10 | #include "hostcmd.h" |
@@ -1071,7 +1070,7 @@ int lbs_mesh_config(struct lbs_private *priv, uint16_t action, uint16_t chan) | |||
1071 | 1070 | ||
1072 | switch (action) { | 1071 | switch (action) { |
1073 | case CMD_ACT_MESH_CONFIG_START: | 1072 | case CMD_ACT_MESH_CONFIG_START: |
1074 | ie->hdr.id = MFIE_TYPE_GENERIC; | 1073 | ie->id = WLAN_EID_GENERIC; |
1075 | ie->val.oui[0] = 0x00; | 1074 | ie->val.oui[0] = 0x00; |
1076 | ie->val.oui[1] = 0x50; | 1075 | ie->val.oui[1] = 0x50; |
1077 | ie->val.oui[2] = 0x43; | 1076 | ie->val.oui[2] = 0x43; |
@@ -1083,7 +1082,7 @@ int lbs_mesh_config(struct lbs_private *priv, uint16_t action, uint16_t chan) | |||
1083 | ie->val.mesh_capability = MARVELL_MESH_CAPABILITY; | 1082 | ie->val.mesh_capability = MARVELL_MESH_CAPABILITY; |
1084 | ie->val.mesh_id_len = priv->mesh_ssid_len; | 1083 | ie->val.mesh_id_len = priv->mesh_ssid_len; |
1085 | memcpy(ie->val.mesh_id, priv->mesh_ssid, priv->mesh_ssid_len); | 1084 | memcpy(ie->val.mesh_id, priv->mesh_ssid, priv->mesh_ssid_len); |
1086 | ie->hdr.len = sizeof(struct mrvl_meshie_val) - | 1085 | ie->len = sizeof(struct mrvl_meshie_val) - |
1087 | IW_ESSID_MAX_SIZE + priv->mesh_ssid_len; | 1086 | IW_ESSID_MAX_SIZE + priv->mesh_ssid_len; |
1088 | cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie_val)); | 1087 | cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie_val)); |
1089 | break; | 1088 | break; |