aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/11d.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/11d.c')
-rw-r--r--drivers/net/wireless/libertas/11d.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/net/wireless/libertas/11d.c b/drivers/net/wireless/libertas/11d.c
index 26d85ec37d9e..ba4cbcb59113 100644
--- a/drivers/net/wireless/libertas/11d.c
+++ b/drivers/net/wireless/libertas/11d.c
@@ -446,25 +446,6 @@ void libertas_init_11d(wlan_private * priv)
446 return; 446 return;
447} 447}
448 448
449static int wlan_enable_11d(wlan_private * priv, u8 flag)
450{
451 int ret;
452
453 priv->adapter->enable11d = flag;
454
455 /* send cmd to FW to enable/disable 11D function in FW */
456 ret = libertas_prepare_and_send_command(priv,
457 CMD_802_11_SNMP_MIB,
458 CMD_ACT_SET,
459 CMD_OPTION_WAITFORRSP,
460 OID_802_11D_ENABLE,
461 &priv->adapter->enable11d);
462 if (ret)
463 lbs_deb_11d("11D: Fail to enable 11D \n");
464
465 return 0;
466}
467
468/** 449/**
469 * @brief This function sets DOMAIN INFO to FW 450 * @brief This function sets DOMAIN INFO to FW
470 * @param priv pointer to wlan_private 451 * @param priv pointer to wlan_private
@@ -578,31 +559,6 @@ done:
578} 559}
579 560
580/** 561/**
581 * @brief This function implements private cmd: enable/disable 11D
582 * @param priv pointer to wlan_private
583 * @param wrq pointer to user data
584 * @return 0 or -1
585 */
586int libertas_cmd_enable_11d(wlan_private * priv, struct iwreq *wrq)
587{
588 int data = 0;
589 int *val;
590
591 lbs_deb_enter(LBS_DEB_11D);
592 data = SUBCMD_DATA(wrq);
593
594 lbs_deb_11d("enable 11D: %s\n",
595 (data == 1) ? "enable" : "Disable");
596
597 wlan_enable_11d(priv, data);
598 val = (int *)wrq->u.name;
599 *val = priv->adapter->enable11d;
600
601 lbs_deb_enter(LBS_DEB_11D);
602 return 0;
603}
604
605/**
606 * @brief This function parses countryinfo from AP and download country info to FW 562 * @brief This function parses countryinfo from AP and download country info to FW
607 * @param priv pointer to wlan_private 563 * @param priv pointer to wlan_private
608 * @param resp pointer to command response buffer 564 * @param resp pointer to command response buffer