Commit 822ac03a authored by Dan Williams's avatar Dan Williams Committed by John W. Linville

libertas: convert CMD_802_11_ASSOCIATE to a direct command

Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent be0d76e4
This diff is collapsed.
...@@ -8,22 +8,9 @@ ...@@ -8,22 +8,9 @@
void lbs_association_worker(struct work_struct *work); void lbs_association_worker(struct work_struct *work);
struct assoc_request *lbs_get_association_request(struct lbs_private *priv); struct assoc_request *lbs_get_association_request(struct lbs_private *priv);
struct cmd_ds_command;
int lbs_cmd_80211_authenticate(struct lbs_private *priv,
struct cmd_ds_command *cmd,
void *pdata_buf);
int lbs_adhoc_stop(struct lbs_private *priv); int lbs_adhoc_stop(struct lbs_private *priv);
int lbs_cmd_80211_deauthenticate(struct lbs_private *priv, int lbs_cmd_80211_deauthenticate(struct lbs_private *priv,
u8 bssid[ETH_ALEN], u16 reason); u8 bssid[ETH_ALEN], u16 reason);
int lbs_cmd_80211_associate(struct lbs_private *priv,
struct cmd_ds_command *cmd,
void *pdata_buf);
int lbs_ret_80211_ad_hoc_start(struct lbs_private *priv,
struct cmd_ds_command *resp);
int lbs_ret_80211_associate(struct lbs_private *priv,
struct cmd_ds_command *resp);
#endif /* _LBS_ASSOC_H */ #endif /* _LBS_ASSOC_H */
...@@ -1414,11 +1414,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv, ...@@ -1414,11 +1414,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
ret = lbs_cmd_802_11_ps_mode(cmdptr, cmd_action); ret = lbs_cmd_802_11_ps_mode(cmdptr, cmd_action);
break; break;
case CMD_802_11_ASSOCIATE:
case CMD_802_11_REASSOCIATE:
ret = lbs_cmd_80211_associate(priv, cmdptr, pdata_buf);
break;
case CMD_MAC_REG_ACCESS: case CMD_MAC_REG_ACCESS:
case CMD_BBP_REG_ACCESS: case CMD_BBP_REG_ACCESS:
case CMD_RF_REG_ACCESS: case CMD_RF_REG_ACCESS:
......
...@@ -210,12 +210,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, ...@@ -210,12 +210,6 @@ static inline int handle_cmd_response(struct lbs_private *priv,
ret = lbs_ret_reg_access(priv, respcmd, resp); ret = lbs_ret_reg_access(priv, respcmd, resp);
break; break;
case CMD_RET_802_11_ASSOCIATE:
case CMD_RET(CMD_802_11_ASSOCIATE):
case CMD_RET(CMD_802_11_REASSOCIATE):
ret = lbs_ret_80211_associate(priv, resp);
break;
case CMD_RET(CMD_802_11_SET_AFC): case CMD_RET(CMD_802_11_SET_AFC):
case CMD_RET(CMD_802_11_GET_AFC): case CMD_RET(CMD_802_11_GET_AFC):
spin_lock_irqsave(&priv->driver_lock, flags); spin_lock_irqsave(&priv->driver_lock, flags);
......
...@@ -265,22 +265,23 @@ struct cmd_ds_802_11_deauthenticate { ...@@ -265,22 +265,23 @@ struct cmd_ds_802_11_deauthenticate {
} __attribute__ ((packed)); } __attribute__ ((packed));
struct cmd_ds_802_11_associate { struct cmd_ds_802_11_associate {
u8 peerstaaddr[6]; struct cmd_header hdr;
u8 bssid[6];
__le16 capability; __le16 capability;
__le16 listeninterval; __le16 listeninterval;
__le16 bcnperiod; __le16 bcnperiod;
u8 dtimperiod; u8 dtimperiod;
u8 iebuf[512]; /* Enough for required and most optional IEs */
#if 0
mrvlietypes_ssidparamset_t ssidParamSet;
mrvlietypes_phyparamset_t phyparamset;
mrvlietypes_ssparamset_t ssparamset;
mrvlietypes_ratesparamset_t ratesParamSet;
#endif
} __attribute__ ((packed)); } __attribute__ ((packed));
struct cmd_ds_802_11_associate_rsp { struct cmd_ds_802_11_associate_response {
struct ieee_assoc_response response; struct cmd_header hdr;
__le16 capability;
__le16 statuscode;
__le16 aid;
u8 iebuf[512];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct cmd_ds_802_11_set_wep { struct cmd_ds_802_11_set_wep {
...@@ -771,7 +772,6 @@ struct cmd_ds_command { ...@@ -771,7 +772,6 @@ struct cmd_ds_command {
/* command Body */ /* command Body */
union { union {
struct cmd_ds_802_11_ps_mode psmode; struct cmd_ds_802_11_ps_mode psmode;
struct cmd_ds_802_11_associate associate;
struct cmd_ds_802_11_get_stat gstat; struct cmd_ds_802_11_get_stat gstat;
struct cmd_ds_802_3_get_stat gstat_8023; struct cmd_ds_802_3_get_stat gstat_8023;
struct cmd_ds_802_11_rf_antenna rant; struct cmd_ds_802_11_rf_antenna rant;
......
...@@ -54,13 +54,6 @@ union ieee_phy_param_set { ...@@ -54,13 +54,6 @@ union ieee_phy_param_set {
struct ieee_ie_ds_param_set ds; struct ieee_ie_ds_param_set ds;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct ieee_assoc_response {
__le16 capability;
__le16 statuscode;
__le16 aid;
u8 iebuffer[1];
} __attribute__ ((packed));
/** TLV type ID definition */ /** TLV type ID definition */
#define PROPRIETARY_TLV_BASE_ID 0x0100 #define PROPRIETARY_TLV_BASE_ID 0x0100
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment