mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
staging: rtl8192e: Remove function _rtl92e_wx_set_rawtx()
Remove function _rtl92e_wx_set_rawtx() as this functionality is not commonly used and the tool to access it is deprecated. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/96196bf0f45934e8e49f1d185165e2a36f5bca7d.1696360403.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d459c3c0cb
commit
093eeaa28f
@ -122,25 +122,6 @@ static int _rtl92e_wx_get_power(struct net_device *dev,
|
|||||||
return rtllib_wx_get_power(priv->rtllib, info, wrqu, extra);
|
return rtllib_wx_get_power(priv->rtllib, info, wrqu, extra);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _rtl92e_wx_set_rawtx(struct net_device *dev,
|
|
||||||
struct iw_request_info *info,
|
|
||||||
union iwreq_data *wrqu, char *extra)
|
|
||||||
{
|
|
||||||
struct r8192_priv *priv = rtllib_priv(dev);
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (priv->hw_radio_off)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
mutex_lock(&priv->wx_mutex);
|
|
||||||
|
|
||||||
ret = rtllib_wx_set_rawtx(priv->rtllib, info, wrqu, extra);
|
|
||||||
|
|
||||||
mutex_unlock(&priv->wx_mutex);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int _rtl92e_wx_adapter_power_status(struct net_device *dev,
|
static int _rtl92e_wx_adapter_power_status(struct net_device *dev,
|
||||||
struct iw_request_info *info,
|
struct iw_request_info *info,
|
||||||
union iwreq_data *wrqu, char *extra)
|
union iwreq_data *wrqu, char *extra)
|
||||||
@ -1044,9 +1025,6 @@ static const struct iw_priv_args r8192_private_args[] = {
|
|||||||
}, {
|
}, {
|
||||||
SIOCIWFIRSTPRIV + 0x1,
|
SIOCIWFIRSTPRIV + 0x1,
|
||||||
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "activescan"
|
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "activescan"
|
||||||
}, {
|
|
||||||
SIOCIWFIRSTPRIV + 0x2,
|
|
||||||
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "rawtx"
|
|
||||||
}, {
|
}, {
|
||||||
SIOCIWFIRSTPRIV + 0x6,
|
SIOCIWFIRSTPRIV + 0x6,
|
||||||
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, IW_PRIV_TYPE_NONE,
|
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, IW_PRIV_TYPE_NONE,
|
||||||
@ -1072,7 +1050,7 @@ static const struct iw_priv_args r8192_private_args[] = {
|
|||||||
static iw_handler r8192_private_handler[] = {
|
static iw_handler r8192_private_handler[] = {
|
||||||
(iw_handler)_rtl92e_wx_set_debug, /*SIOCIWSECONDPRIV*/
|
(iw_handler)_rtl92e_wx_set_debug, /*SIOCIWSECONDPRIV*/
|
||||||
(iw_handler)_rtl92e_wx_set_scan_type,
|
(iw_handler)_rtl92e_wx_set_scan_type,
|
||||||
(iw_handler)_rtl92e_wx_set_rawtx,
|
(iw_handler)NULL,
|
||||||
(iw_handler)NULL,
|
(iw_handler)NULL,
|
||||||
(iw_handler)NULL,
|
(iw_handler)NULL,
|
||||||
(iw_handler)NULL,
|
(iw_handler)NULL,
|
||||||
|
@ -1755,10 +1755,6 @@ int rtllib_wx_get_freq(struct rtllib_device *ieee, struct iw_request_info *a,
|
|||||||
union iwreq_data *wrqu, char *b);
|
union iwreq_data *wrqu, char *b);
|
||||||
void rtllib_wx_sync_scan_wq(void *data);
|
void rtllib_wx_sync_scan_wq(void *data);
|
||||||
|
|
||||||
int rtllib_wx_set_rawtx(struct rtllib_device *ieee,
|
|
||||||
struct iw_request_info *info,
|
|
||||||
union iwreq_data *wrqu, char *extra);
|
|
||||||
|
|
||||||
int rtllib_wx_get_name(struct rtllib_device *ieee, struct iw_request_info *info,
|
int rtllib_wx_get_name(struct rtllib_device *ieee, struct iw_request_info *info,
|
||||||
union iwreq_data *wrqu, char *extra);
|
union iwreq_data *wrqu, char *extra);
|
||||||
|
|
||||||
|
@ -436,38 +436,6 @@ int rtllib_wx_get_mode(struct rtllib_device *ieee, struct iw_request_info *a,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(rtllib_wx_get_mode);
|
EXPORT_SYMBOL(rtllib_wx_get_mode);
|
||||||
|
|
||||||
int rtllib_wx_set_rawtx(struct rtllib_device *ieee,
|
|
||||||
struct iw_request_info *info,
|
|
||||||
union iwreq_data *wrqu, char *extra)
|
|
||||||
{
|
|
||||||
int *parms = (int *)extra;
|
|
||||||
int enable = (parms[0] > 0);
|
|
||||||
short prev = ieee->raw_tx;
|
|
||||||
|
|
||||||
mutex_lock(&ieee->wx_mutex);
|
|
||||||
|
|
||||||
if (enable)
|
|
||||||
ieee->raw_tx = 1;
|
|
||||||
else
|
|
||||||
ieee->raw_tx = 0;
|
|
||||||
|
|
||||||
netdev_info(ieee->dev, "raw TX is %s\n",
|
|
||||||
ieee->raw_tx ? "enabled" : "disabled");
|
|
||||||
|
|
||||||
if (ieee->iw_mode == IW_MODE_MONITOR) {
|
|
||||||
if (prev == 0 && ieee->raw_tx)
|
|
||||||
netif_carrier_on(ieee->dev);
|
|
||||||
|
|
||||||
if (prev && ieee->raw_tx == 1)
|
|
||||||
netif_carrier_off(ieee->dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
mutex_unlock(&ieee->wx_mutex);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(rtllib_wx_set_rawtx);
|
|
||||||
|
|
||||||
int rtllib_wx_get_name(struct rtllib_device *ieee, struct iw_request_info *info,
|
int rtllib_wx_get_name(struct rtllib_device *ieee, struct iw_request_info *info,
|
||||||
union iwreq_data *wrqu, char *extra)
|
union iwreq_data *wrqu, char *extra)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user