Remove typedef from struct.
Rename struct.
Rename uses.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
{
bool rt_status = true;
- struct r8192_priv *priv = rtllib_priv(dev);
+ struct r8192_priv *priv = rtllib_priv(dev);
u16 frag_threshold;
u16 frag_length = 0, frag_offset = 0;
struct rt_firmware *pfirmware = priv->pFirmware;
void
rtl8192e_SetHwReg(struct net_device *dev,u8 variable,u8* val)
{
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
switch (variable)
{
void rtl8192_AllowAllDestAddr(struct net_device* dev,
bool bAllowAllDA, bool WriteIntoReg)
{
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
if (bAllowAllDA)
priv->ReceiveConfig |= RCR_AAP;
void rtl8192_update_ratr_table(struct net_device* dev)
{
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
struct rtllib_device* ieee = priv->rtllib;
u8* pMcsRate = ieee->dot11HTOperationalRateSet;
u32 ratr_value = 0;
bool rtl8192_GetHalfNmodeSupportByAPs(struct net_device* dev)
{
bool Reval;
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
struct rtllib_device* ieee = priv->rtllib;
if (ieee->bHalfWirelessN24GMode == true)
struct channel_access_setting *ChnlAccessSetting
)
{
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
return;
extern void firmware_init_param(struct net_device *dev)
{
- struct r8192_priv *priv = rtllib_priv(dev);
+ struct r8192_priv *priv = rtllib_priv(dev);
struct rt_firmware *pfirmware = priv->pFirmware;
pfirmware->cmdpacket_frag_thresold = GET_COMMAND_PACKET_FRAG_THRESHOLD(MAX_TRANSMIT_BUFFER_SIZE);
bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, u32 buffer_len)
{
- struct r8192_priv *priv = rtllib_priv(dev);
+ struct r8192_priv *priv = rtllib_priv(dev);
bool rt_status = true;
u16 frag_threshold;
u16 frag_length, frag_offset = 0;
)
{
bool rtStatus = true;
- struct r8192_priv *priv = rtllib_priv(dev);
+ struct r8192_priv *priv = rtllib_priv(dev);
struct sk_buff *skb;
struct cb_desc *tcb_desc;
unsigned char *ptr_buf;
inline static bool firmware_check_ready(struct net_device *dev, u8 load_fw_status)
{
- struct r8192_priv *priv = rtllib_priv(dev);
+ struct r8192_priv *priv = rtllib_priv(dev);
struct rt_firmware *pfirmware = priv->pFirmware;
bool rt_status = true;
bool init_firmware(struct net_device *dev)
{
- struct r8192_priv *priv = rtllib_priv(dev);
+ struct r8192_priv *priv = rtllib_priv(dev);
bool rt_status = true;
u8 *firmware_img_buf[3] = { &Rtl8192PciEFwBootArray[0],
}
}
-void rtl8192_refresh_supportrate(struct r8192_priv* priv)
+void rtl8192_refresh_supportrate(struct r8192_priv * priv)
{
struct rtllib_device* ieee = priv->rtllib;
if (ieee->mode == WIRELESS_MODE_N_24G || ieee->mode == WIRELESS_MODE_N_5G) {
}
-static void rtl8192_init_priv_lock(struct r8192_priv* priv)
+static void rtl8192_init_priv_lock(struct r8192_priv * priv)
{
spin_lock_init(&priv->fw_scan_lock);
spin_lock_init(&priv->tx_lock);
void rtl819x_watchdog_wqcallback(void *data)
{
- struct r8192_priv *priv = container_of_dwork_rsl(data,struct r8192_priv,watch_dog_wq);
+ struct r8192_priv *priv = container_of_dwork_rsl(data, struct r8192_priv, watch_dog_wq);
struct net_device *dev = priv->rtllib->dev;
struct rtllib_device* ieee = priv->rtllib;
RESET_TYPE ResetType = RESET_TYPE_NORESET;
/****************************************************************************
---------------------------- NIC START/CLOSE STUFF---------------------------
*****************************************************************************/
-void rtl8192_cancel_deferred_work(struct r8192_priv* priv)
+void rtl8192_cancel_deferred_work(struct r8192_priv * priv)
{
cancel_delayed_work(&priv->watch_dog_wq);
cancel_delayed_work(&priv->update_beacon_wq);
bool NicIFEnableNIC(struct net_device* dev)
{
bool init_status = true;
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
if (IS_NIC_DOWN(priv)){
bool NicIFDisableNIC(struct net_device* dev)
{
bool status = true;
- struct r8192_priv* priv = rtllib_priv(dev);
+ struct r8192_priv * priv = rtllib_priv(dev);
u8 tmp_state = 0;
RT_TRACE(COMP_PS, "=========>%s()\n",__func__);
priv->bdisable_nic = true;
void check_rfctrl_gpio_timer(unsigned long data)
{
- struct r8192_priv* priv = rtllib_priv((struct net_device *)data);
+ struct r8192_priv * priv = rtllib_priv((struct net_device *)data);
priv->polling_timer_on = 1;
#define DRV_NAME "rtl819xE"
-#define IS_HARDWARE_TYPE_819xP(_priv) ((((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8190P)||\
- (((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8192E))
-#define IS_HARDWARE_TYPE_8192SE(_priv) (((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8192SE)
-#define IS_HARDWARE_TYPE_8192CE(_priv) (((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8192CE)
-#define IS_HARDWARE_TYPE_8192CU(_priv) (((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8192CU)
-#define IS_HARDWARE_TYPE_8192DE(_priv) (((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8192DE)
-#define IS_HARDWARE_TYPE_8192DU(_priv) (((struct r8192_priv*)rtllib_priv(dev))->card_8192==NIC_8192DU)
+#define IS_HARDWARE_TYPE_819xP(_priv) ((((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8190P)||\
+ (((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8192E))
+#define IS_HARDWARE_TYPE_8192SE(_priv) (((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8192SE)
+#define IS_HARDWARE_TYPE_8192CE(_priv) (((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8192CE)
+#define IS_HARDWARE_TYPE_8192CU(_priv) (((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8192CU)
+#define IS_HARDWARE_TYPE_8192DE(_priv) (((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8192DE)
+#define IS_HARDWARE_TYPE_8192DU(_priv) (((struct r8192_priv *)rtllib_priv(dev))->card_8192==NIC_8192DU)
#define RTL_PCI_DEVICE(vend, dev, cfg) \
.vendor = (vend), .device = (dev), \
bool (* RxCheckStuckHandler)(struct net_device* dev);
};
-typedef struct r8192_priv
-{
+struct r8192_priv {
struct pci_dev *pdev;
struct pci_dev *bridge_pdev;
u8 H2CTxCmdSeq;
-}r8192_priv;
+};//;
extern const struct ethtool_ops rtl819x_ethtool_ops;
short rtl8192_pci_initdescring(struct net_device *dev);
-void rtl8192_cancel_deferred_work(struct r8192_priv* priv);
+void rtl8192_cancel_deferred_work(struct r8192_priv * priv);
int _rtl8192_up(struct net_device *dev,bool is_silent_reset);
void dm_txpower_trackingcallback(void *data)
{
- struct r8192_priv *priv = container_of_dwork_rsl(data,struct r8192_priv,txpower_tracking_wq);
+ struct r8192_priv *priv = container_of_dwork_rsl(data, struct r8192_priv,txpower_tracking_wq);
struct net_device *dev = priv->rtllib->dev;
if (priv->IC_Cut >= IC_VersionCut_D)
extern void dm_CheckRfCtrlGPIO(void *data)
{
- struct r8192_priv *priv = container_of_dwork_rsl(data,struct r8192_priv,gpio_change_rf_wq);
+ struct r8192_priv *priv = container_of_dwork_rsl(data, struct r8192_priv,gpio_change_rf_wq);
struct net_device *dev = priv->rtllib->dev;
u8 tmp1byte;
RT_RF_POWER_STATE eRfPowerStateToSet;
void dm_rf_pathcheck_workitemcallback(void *data)
{
- struct r8192_priv *priv = container_of_dwork_rsl(data,struct r8192_priv,rfpath_check_wq);
+ struct r8192_priv *priv = container_of_dwork_rsl(data, struct r8192_priv,rfpath_check_wq);
struct net_device *dev =priv->rtllib->dev;
u8 rfpath = 0, i;