diff options
author | David Kilroy <kilroyd@googlemail.com> | 2009-06-18 18:21:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:44 -0400 |
commit | 98e5f404485d5d11b15e8351535a0e064a37647c (patch) | |
tree | 605b0c37681030337d3a82cc78f83ffd3a1f65b6 /drivers/net/wireless/orinoco | |
parent | 8e638267a896e171e49fb9013f5baf96a4ede754 (diff) |
orinoco: Change set_tkip to use orinoco_private instead of hermes_t
hw.h does not include hermes.h, and none of the other functions
requires types from that file. Also hermes_t is a (discouraged) typedef
so we can't add a forward declaration. Therefore change this function to
use orinoco_private.
Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco')
-rw-r--r-- | drivers/net/wireless/orinoco/hw.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/hw.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/wext.c | 3 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/orinoco/hw.c b/drivers/net/wireless/orinoco/hw.c index 4a26d68083f3..eaa89d3866c9 100644 --- a/drivers/net/wireless/orinoco/hw.c +++ b/drivers/net/wireless/orinoco/hw.c | |||
@@ -677,8 +677,8 @@ int __orinoco_hw_setup_enc(struct orinoco_private *priv) | |||
677 | * rsc must be 8 bytes | 677 | * rsc must be 8 bytes |
678 | * tsc must be 8 bytes or NULL | 678 | * tsc must be 8 bytes or NULL |
679 | */ | 679 | */ |
680 | int __orinoco_hw_set_tkip_key(hermes_t *hw, int key_idx, int set_tx, | 680 | int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx, |
681 | u8 *key, u8 *rsc, u8 *tsc) | 681 | int set_tx, u8 *key, u8 *rsc, u8 *tsc) |
682 | { | 682 | { |
683 | struct { | 683 | struct { |
684 | __le16 idx; | 684 | __le16 idx; |
@@ -688,6 +688,7 @@ int __orinoco_hw_set_tkip_key(hermes_t *hw, int key_idx, int set_tx, | |||
688 | u8 rx_mic[MIC_KEYLEN]; | 688 | u8 rx_mic[MIC_KEYLEN]; |
689 | u8 tsc[IW_ENCODE_SEQ_MAX_SIZE]; | 689 | u8 tsc[IW_ENCODE_SEQ_MAX_SIZE]; |
690 | } __attribute__ ((packed)) buf; | 690 | } __attribute__ ((packed)) buf; |
691 | hermes_t *hw = &priv->hw; | ||
691 | int ret; | 692 | int ret; |
692 | int err; | 693 | int err; |
693 | int k; | 694 | int k; |
diff --git a/drivers/net/wireless/orinoco/hw.h b/drivers/net/wireless/orinoco/hw.h index 89277de90876..84c108cc0f52 100644 --- a/drivers/net/wireless/orinoco/hw.h +++ b/drivers/net/wireless/orinoco/hw.h | |||
@@ -35,8 +35,8 @@ int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate); | |||
35 | int __orinoco_hw_set_wap(struct orinoco_private *priv); | 35 | int __orinoco_hw_set_wap(struct orinoco_private *priv); |
36 | int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv); | 36 | int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv); |
37 | int __orinoco_hw_setup_enc(struct orinoco_private *priv); | 37 | int __orinoco_hw_setup_enc(struct orinoco_private *priv); |
38 | int __orinoco_hw_set_tkip_key(hermes_t *hw, int key_idx, int set_tx, | 38 | int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx, |
39 | u8 *key, u8 *rsc, u8 *tsc); | 39 | int set_tx, u8 *key, u8 *rsc, u8 *tsc); |
40 | int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx); | 40 | int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx); |
41 | int __orinoco_hw_set_multicast_list(struct orinoco_private *priv, | 41 | int __orinoco_hw_set_multicast_list(struct orinoco_private *priv, |
42 | struct dev_addr_list *mc_list, | 42 | struct dev_addr_list *mc_list, |
diff --git a/drivers/net/wireless/orinoco/wext.c b/drivers/net/wireless/orinoco/wext.c index 3f0814234392..74fdfcec9b2c 100644 --- a/drivers/net/wireless/orinoco/wext.c +++ b/drivers/net/wireless/orinoco/wext.c | |||
@@ -1079,7 +1079,6 @@ static int orinoco_ioctl_set_encodeext(struct net_device *dev, | |||
1079 | 1079 | ||
1080 | case IW_ENCODE_ALG_TKIP: | 1080 | case IW_ENCODE_ALG_TKIP: |
1081 | { | 1081 | { |
1082 | hermes_t *hw = &priv->hw; | ||
1083 | u8 *tkip_iv = NULL; | 1082 | u8 *tkip_iv = NULL; |
1084 | 1083 | ||
1085 | if (!priv->has_wpa || | 1084 | if (!priv->has_wpa || |
@@ -1094,7 +1093,7 @@ static int orinoco_ioctl_set_encodeext(struct net_device *dev, | |||
1094 | if (ext->ext_flags & IW_ENCODE_EXT_RX_SEQ_VALID) | 1093 | if (ext->ext_flags & IW_ENCODE_EXT_RX_SEQ_VALID) |
1095 | tkip_iv = &ext->rx_seq[0]; | 1094 | tkip_iv = &ext->rx_seq[0]; |
1096 | 1095 | ||
1097 | err = __orinoco_hw_set_tkip_key(hw, idx, | 1096 | err = __orinoco_hw_set_tkip_key(priv, idx, |
1098 | ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY, | 1097 | ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY, |
1099 | (u8 *) &priv->tkip_key[idx], | 1098 | (u8 *) &priv->tkip_key[idx], |
1100 | tkip_iv, NULL); | 1099 | tkip_iv, NULL); |