[PATCH] libertas: make more functions static & remove unused functions
Some functions where declared in header files, but used only once. They are now static functions. After doing this, I found out that some functions weren't used at all. I removed this dead code. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
David S. Miller

parent
c23a24f6ae
commit
ac558ca2ae
@@ -446,25 +446,6 @@ void libertas_init_11d(wlan_private * priv)
|
||||
return;
|
||||
}
|
||||
|
||||
static int wlan_enable_11d(wlan_private * priv, u8 flag)
|
||||
{
|
||||
int ret;
|
||||
|
||||
priv->adapter->enable11d = flag;
|
||||
|
||||
/* send cmd to FW to enable/disable 11D function in FW */
|
||||
ret = libertas_prepare_and_send_command(priv,
|
||||
CMD_802_11_SNMP_MIB,
|
||||
CMD_ACT_SET,
|
||||
CMD_OPTION_WAITFORRSP,
|
||||
OID_802_11D_ENABLE,
|
||||
&priv->adapter->enable11d);
|
||||
if (ret)
|
||||
lbs_deb_11d("11D: Fail to enable 11D \n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This function sets DOMAIN INFO to FW
|
||||
* @param priv pointer to wlan_private
|
||||
@@ -577,31 +558,6 @@ done:
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This function implements private cmd: enable/disable 11D
|
||||
* @param priv pointer to wlan_private
|
||||
* @param wrq pointer to user data
|
||||
* @return 0 or -1
|
||||
*/
|
||||
int libertas_cmd_enable_11d(wlan_private * priv, struct iwreq *wrq)
|
||||
{
|
||||
int data = 0;
|
||||
int *val;
|
||||
|
||||
lbs_deb_enter(LBS_DEB_11D);
|
||||
data = SUBCMD_DATA(wrq);
|
||||
|
||||
lbs_deb_11d("enable 11D: %s\n",
|
||||
(data == 1) ? "enable" : "Disable");
|
||||
|
||||
wlan_enable_11d(priv, data);
|
||||
val = (int *)wrq->u.name;
|
||||
*val = priv->adapter->enable11d;
|
||||
|
||||
lbs_deb_enter(LBS_DEB_11D);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This function parses countryinfo from AP and download country info to FW
|
||||
* @param priv pointer to wlan_private
|
||||
|
Reference in New Issue
Block a user