summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/assoc.c
diff options
context:
space:
mode:
authorDan Williams2008-09-10 18:49:00 +0200
committerJohn W. Linville2008-09-15 22:48:20 +0200
commit39fcf7a315e098430e878a5c0c4d39561c93ebf6 (patch)
treee616eb6085e4c99c8920edbd6ebbec65627b7445 /drivers/net/wireless/libertas/assoc.c
parentath9k: Add RF kill support (diff)
downloadkernel-qcow2-linux-39fcf7a315e098430e878a5c0c4d39561c93ebf6.tar.gz
kernel-qcow2-linux-39fcf7a315e098430e878a5c0c4d39561c93ebf6.tar.xz
kernel-qcow2-linux-39fcf7a315e098430e878a5c0c4d39561c93ebf6.zip
libertas: convert SNMP_MIB to a direct command
And support setting both long and short retries independently. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r--drivers/net/wireless/libertas/assoc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c
index 4ddf44b2758b..92be60415d04 100644
--- a/drivers/net/wireless/libertas/assoc.c
+++ b/drivers/net/wireless/libertas/assoc.c
@@ -823,11 +823,7 @@ static int assoc_helper_mode(struct lbs_private *priv,
}
priv->mode = assoc_req->mode;
- ret = lbs_prepare_and_send_command(priv,
- CMD_802_11_SNMP_MIB,
- 0, CMD_OPTION_WAITFORRSP,
- OID_802_11_INFRASTRUCTURE_MODE,
- /* Shoot me now */ (void *) (size_t) assoc_req->mode);
+ ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, assoc_req->mode);
done:
lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);