Commit 358e4ee1 authored by Mateusz Kulikowski's avatar Mateusz Kulikowski Committed by Greg Kroah-Hartman

staging: rtl8192e: Rename CamResetAllEntry

Use naming schema found in other rtlwifi devices.
Rename CamResetAllEntry to rtl92e_cam_reset.
Signed-off-by: default avatarMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad8d5161
...@@ -809,7 +809,7 @@ bool rtl92e_start_adapter(struct net_device *dev) ...@@ -809,7 +809,7 @@ bool rtl92e_start_adapter(struct net_device *dev)
if (priv->ResetProgress == RESET_TYPE_NORESET) if (priv->ResetProgress == RESET_TYPE_NORESET)
rtl8192_SetWirelessMode(dev, priv->rtllib->mode); rtl8192_SetWirelessMode(dev, priv->rtllib->mode);
CamResetAllEntry(dev); rtl92e_cam_reset(dev);
{ {
u8 SECR_value = 0x0; u8 SECR_value = 0x0;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "r8190P_rtl8256.h" /* RTL8225 Radio frontend */ #include "r8190P_rtl8256.h" /* RTL8225 Radio frontend */
#include "r8192E_cmdpkt.h" #include "r8192E_cmdpkt.h"
void CamResetAllEntry(struct net_device *dev) void rtl92e_cam_reset(struct net_device *dev)
{ {
u32 ulcommand = 0; u32 ulcommand = 0;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <linux/types.h> #include <linux/types.h>
struct net_device; struct net_device;
void CamResetAllEntry(struct net_device *dev); void rtl92e_cam_reset(struct net_device *dev);
void EnableHWSecurityConfig8192(struct net_device *dev); void EnableHWSecurityConfig8192(struct net_device *dev);
void setKey(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType, void setKey(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType,
const u8 *MacAddr, u8 DefaultKey, u32 *KeyContent); const u8 *MacAddr, u8 DefaultKey, u32 *KeyContent);
......
...@@ -824,7 +824,7 @@ static int rtl8192_sta_down(struct net_device *dev, bool shutdownrf) ...@@ -824,7 +824,7 @@ static int rtl8192_sta_down(struct net_device *dev, bool shutdownrf)
priv->rtllib->wpa_ie_len = 0; priv->rtllib->wpa_ie_len = 0;
kfree(priv->rtllib->wpa_ie); kfree(priv->rtllib->wpa_ie);
priv->rtllib->wpa_ie = NULL; priv->rtllib->wpa_ie = NULL;
CamResetAllEntry(dev); rtl92e_cam_reset(dev);
memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32); memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
rtl8192_irq_disable(dev); rtl8192_irq_disable(dev);
......
...@@ -711,7 +711,7 @@ static int r8192_wx_set_enc(struct net_device *dev, ...@@ -711,7 +711,7 @@ static int r8192_wx_set_enc(struct net_device *dev,
if (wrqu->encoding.flags & IW_ENCODE_DISABLED) { if (wrqu->encoding.flags & IW_ENCODE_DISABLED) {
ieee->pairwise_key_type = ieee->group_key_type = KEY_TYPE_NA; ieee->pairwise_key_type = ieee->group_key_type = KEY_TYPE_NA;
CamResetAllEntry(dev); rtl92e_cam_reset(dev);
memset(priv->rtllib->swcamtable, 0, memset(priv->rtllib->swcamtable, 0,
sizeof(struct sw_cam_table) * 32); sizeof(struct sw_cam_table) * 32);
goto end_hw_sec; goto end_hw_sec;
...@@ -926,7 +926,7 @@ static int r8192_wx_set_enc_ext(struct net_device *dev, ...@@ -926,7 +926,7 @@ static int r8192_wx_set_enc_ext(struct net_device *dev,
ext->alg == IW_ENCODE_ALG_NONE) { ext->alg == IW_ENCODE_ALG_NONE) {
ieee->pairwise_key_type = ieee->group_key_type ieee->pairwise_key_type = ieee->group_key_type
= KEY_TYPE_NA; = KEY_TYPE_NA;
CamResetAllEntry(dev); rtl92e_cam_reset(dev);
memset(priv->rtllib->swcamtable, 0, memset(priv->rtllib->swcamtable, 0,
sizeof(struct sw_cam_table) * 32); sizeof(struct sw_cam_table) * 32);
goto end_hw_sec; goto end_hw_sec;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment