diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:49:58 -0400 |
commit | fef0640e1e5d5f79c48d1de1f54ed285429b4a6c (patch) | |
tree | e14580411b287bd5db9d6b481b94a76c8cee20ca /drivers/net/wireless/libertas/assoc.c | |
parent | e93156e7c4c3e2be355cac27c58664e4385c58fd (diff) |
libertas: remove some references to IW_MODE_abc
... in pursue to quaff the wide-spread references to WEXT constants.
When setting SNMP_MIB_OID_BSS_TYPE, wext.c can directly calculate the value
the firmware wants.
Reading of SNMP_MIB_OID_BSS_TYPE doesn't happen anywhere, so no need to
convert the firmware value into WEXT values anyway.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 4ce554ac900f..751067369ba8 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -1567,7 +1567,8 @@ static int assoc_helper_mode(struct lbs_private *priv, | |||
1567 | } | 1567 | } |
1568 | 1568 | ||
1569 | priv->mode = assoc_req->mode; | 1569 | priv->mode = assoc_req->mode; |
1570 | ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, assoc_req->mode); | 1570 | ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, |
1571 | assoc_req->mode == IW_MODE_ADHOC ? 2 : 1); | ||
1571 | 1572 | ||
1572 | done: | 1573 | done: |
1573 | lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); | 1574 | lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); |