staging: rtl8192e: Various cleanups
cover staging: rtl8192e: Various cleanups
This series contains various cleanups for rtl8192e driver.
It will apply cleanly to staging-next/testing only after static function rename series is applied.
Series was target tested (although only patches #8 and #9 may affect driver behavior).
Patches #2, #8 and #9 generate some checkpatch warnings, but changing them will obfuscate real patch intention, and most of the checks/warnings were already there.
Mateusz Kulikowski (9):
staging: rtl8192e: rtl_wx: Fix BRACES warning
staging: rtl8192e: Fix SUSPECT_CODE_INDENT warnings
staging: rtl8192e: Fix CONSTANT_COMPARISON warnings
staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings
staging: rtl8192e: Remove _rtl92e_silent_reset_mesh
staging: rtl8192e: Remove _rtl92e_dm_check_pbc_gpio
staging: rtl8192e: Remove extra braces
staging: rtl8192e: Simplify _rtl92e_calculate_bit_shift
staging: rtl8192e: Merge/Remove _rtl92e_dm_bb_initialgain_backup
drivers/staging/rtl8192e/dot11d.c | 4 --- drivers/staging/rtl8192e/dot11d.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 8 ++--- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 10 ++---- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h | 4 --- .../staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 --- .../staging/rtl8192e/rtl8192e/r8192E_firmware.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.c | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 19 ++++------- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h | 4 --- drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_cam.c | 8 ++--- drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 13 -------- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 39 ++++------------------ drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_pci.c | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_pm.c | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_pm.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_ps.h | 4 --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 15 +++------ drivers/staging/rtl8192e/rtl8192e/rtl_wx.h | 4 --- drivers/staging/rtl8192e/rtl819x_BA.h | 4 --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++--- drivers/staging/rtl8192e/rtl819x_HT.h | 4 --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 --- drivers/staging/rtl8192e/rtl819x_Qos.h | 4 --- drivers/staging/rtl8192e/rtl819x_TS.h | 4 --- drivers/staging/rtl8192e/rtl819x_TSProc.c | 4 --- drivers/staging/rtl8192e/rtllib_debug.h | 4 --- drivers/staging/rtl8192e/rtllib_module.c | 4 --- drivers/staging/rtl8192e/rtllib_rx.c | 14 ++++---- drivers/staging/rtl8192e/rtllib_softmac.c | 14 ++++---- drivers/staging/rtl8192e/rtllib_tx.c | 12 +++---- drivers/staging/rtl8192e/rtllib_wx.c | 4 --- 47 files changed, 42 insertions(+), 262 deletions(-)
Signature · 1 line
1.8.4.1
PATCH 1/9 staging: rtl8192e: rtl_wx: Fix BRACES warning
Fix checkpatch BRACES warning.
--- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +2 -5
@@ -819,13 +819,10 @@ static int _rtl92e_wx_set_retry(struct net_device *dev, err = -EINVAL ; goto exit; } -if (wrqu->retry.flags &IW_RETRY_MAX ) { +if (wrqu->retry.flags &IW_RETRY_MAX ) priv->retry_rts = wrqu->retry.value; - - }else { +else priv->retry_data = wrqu->retry.value; - } -rtl92e_commit (dev); exit:
Signature · 1 line
1.8.4.1
PATCH 2/9 staging: rtl8192e: Fix SUSPECT_CODE_INDENT warnings
In reply to Mateusz KulikowskiFix SUSPECT_CODE_INDENT warnings (indentation).
--- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 10 +++++----- drivers/staging/rtl8192e/rtllib_rx.c | 8 +++----- drivers/staging/rtl8192e/rtllib_softmac.c | 6 +++--- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 6 files changed, 16 insertions(+), 18 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c +2 -2
@@ -36,7 +36,7 @@ void rtl92e_set_bandwidth(struct net_device *dev,for (eRFPath =0 ; eRFPath < priv->NumTotalRFPath; eRFPath++) {if (!rtl92e_is_legal_rf_path (dev, eRFPath)) -continue ; +continue ;switch (Bandwidth) {case HT_CHANNEL_WIDTH_20 :
@@ -82,7 +82,7 @@ bool rtl92e_config_rf(struct net_device *dev)for (eRFPath = (enum rf90_radio_path )RF90_PATH_A ; eRFPath < priv->NumTotalRFPath; eRFPath++) {if (!rtl92e_is_legal_rf_path (dev, eRFPath)) -continue ; +continue ; pPhyReg = &priv->PHYRegDef[eRFPath];
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +2 -2
@@ -756,8 +756,8 @@ u8 rtl92e_config_rf_path(struct net_device *dev, enum rf90_radio_path eRFPath)case RF90_PATH_D :for (i =0 ; i < RadioD_ArrayLength; i +=2 ) {if (Rtl819XRadioD_Array[i] ==0xfe ) { -msleep (100 ); -continue ; +msleep (100 ); +continue ; } rtl92e_set_rf_reg(dev, eRFPath, Rtl819XRadioD_Array[i], bMask12Bits,
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +5 -5
@@ -713,7 +713,7 @@ static void _rtl92e_dm_tx_power_tracking_callback_tssi(struct net_device *dev)"TSSI_report_value = %d\n" , tmp_report[k]); -if (tmp_report[k] <=20 ) { +if (tmp_report[k] <=20 ) { viviflag = true;break ; }
@@ -1497,7 +1497,7 @@ static void _rtl92e_dm_ctrl_initgain_byrssi_highpwr(struct net_device *dev) dm_digtable.dig_highpwr_state =DM_STA_DIG_ON ;if (priv->CurrentChannelBW !=HT_CHANNEL_WIDTH_20 ) -rtl92e_writeb (dev, (rOFDM0_XATxAFE+3 ),0x10 ); +rtl92e_writeb (dev, (rOFDM0_XATxAFE+3 ),0x10 );else rtl92e_writeb (dev, rOFDM0_RxDetector1,0x43 ); }else {
@@ -2444,9 +2444,9 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev) RegC38_TH) {if (reg_c38_State != RegC38_NonFsync_Other_AP) { -rtl92e_writeb (dev, - rOFDM0_RxDetector3, -0x90 ); +rtl92e_writeb (dev, + rOFDM0_RxDetector3, +0x90 ); reg_c38_State = RegC38_NonFsync_Other_AP;
drivers/staging/rtl8192e/rtllib_rx.c +3 -5
@@ -1200,11 +1200,9 @@ static int rtllib_rx_decrypt(struct rtllib_device *ieee, struct sk_buff *skb,if (crypt && !(fc &RTLLIB_FCTL_WEP ) &&rtllib_is_eapol_frame (ieee, skb, hdrlen)) { -struct eapol *eap = (struct eapol *)(skb->data + -24 ); -netdev_dbg (ieee->dev, -"RX: IEEE 802.1X EAPOL frame: %s\n" , -eap_get_type (eap->type)); +struct eapol *eap = (struct eapol *)(skb->data +24 ); +netdev_dbg (ieee->dev,"RX: IEEE 802.1X EAPOL frame: %s\n" , +eap_get_type (eap->type)); } if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep &&
drivers/staging/rtl8192e/rtllib_softmac.c +3 -3
@@ -709,7 +709,7 @@ EXPORT_SYMBOL(rtllib_stop_scan);void rtllib_stop_scan_syncro (struct rtllib_device *ieee) {if (ieee->softmac_features &IEEE_SOFTMAC_SCAN ) { - ieee->sync_scan_hurryup =1 ; + ieee->sync_scan_hurryup =1 ; }else {if (ieee->rtllib_stop_hw_scan) ieee->rtllib_stop_hw_scan (ieee->dev);
@@ -2762,10 +2762,10 @@ void rtllib_disassociate(struct rtllib_device *ieee) {netif_carrier_off (ieee->dev);if (ieee->softmac_features &IEEE_SOFTMAC_TX_QUEUE ) -rtllib_reset_queue (ieee); +rtllib_reset_queue (ieee);if (ieee->data_hard_stop) - ieee->data_hard_stop (ieee->dev); + ieee->data_hard_stop (ieee->dev);if (IS_DOT11D_ENABLE (ieee))Dot11d_Reset (ieee); ieee->state =RTLLIB_NOLINK ;
drivers/staging/rtl8192e/rtllib_tx.c +1 -1
@@ -487,7 +487,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,if (ieee->current_network.capability &WLAN_CAPABILITY_SHORT_PREAMBLE ) tcb_desc->bUseShortPreamble = true;if (ieee->iw_mode ==IW_MODE_MASTER ) - goto NO_PROTECTION; + goto NO_PROTECTION;return ; NO_PROTECTION: tcb_desc->bRTSEnable = false;
Signature · 1 line
1.8.4.1
PATCH 3/9 staging: rtl8192e: Fix CONSTANT_COMPARISON warnings
In reply to Mateusz KulikowskiRemove yoda conditions where pointed by checkpatch.
--- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 6 +++--- drivers/staging/rtl8192e/rtl8192e/rtl_cam.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 4 ++-- drivers/staging/rtl8192e/rtl819x_BAProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 6 +++--- drivers/staging/rtl8192e/rtllib_softmac.c | 8 ++++---- drivers/staging/rtl8192e/rtllib_tx.c | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +3 -3
@@ -995,8 +995,8 @@ void rtl92e_link_change(struct net_device *dev)if (ieee->state ==RTLLIB_LINKED ) {_rtl92e_net_update (dev); priv->ops->update_ratr_table (dev); -if ((KEY_TYPE_WEP40 == ieee->pairwise_key_type) || - (KEY_TYPE_WEP104 == ieee->pairwise_key_type)) +if ((ieee->pairwise_key_type ==KEY_TYPE_WEP40 ) || + (ieee->pairwise_key_type ==KEY_TYPE_WEP104 ))rtl92e_enable_hw_security_config (dev); }else {rtl92e_writeb (dev,0x173 ,0 );
@@ -1885,7 +1885,7 @@ static void _rtl92e_translate_rx_signal_stats(struct net_device *dev, praddr = hdr->addr1; bpacket_match_bssid = - ((RTLLIB_FTYPE_CTL != type) && + ((type !=RTLLIB_FTYPE_CTL ) && ether_addr_equal(priv->rtllib->current_network.bssid, (fc & RTLLIB_FCTL_TODS) ? hdr->addr1 : (fc & RTLLIB_FCTL_FROMDS) ? hdr->addr2 :
drivers/staging/rtl8192e/rtl8192e/rtl_cam.c +2 -2
@@ -43,8 +43,8 @@ void rtl92e_enable_hw_security_config(struct net_device *dev)struct rtllib_device *ieee = priv->rtllib; SECR_value = SCR_TxEncEnable | SCR_RxDecEnable; -if (((KEY_TYPE_WEP40 == ieee->pairwise_key_type) || - (KEY_TYPE_WEP104 == ieee->pairwise_key_type)) && +if (((ieee->pairwise_key_type ==KEY_TYPE_WEP40 ) || + (ieee->pairwise_key_type ==KEY_TYPE_WEP104 )) && (priv->rtllib->auth_mode !=2 )) { SECR_value |= SCR_RxUseDK; SECR_value |= SCR_TxUseDK;
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +2 -2
@@ -938,7 +938,7 @@ static int _rtl92e_wx_set_encode_ext(struct net_device *dev, idx--; group = ext->ext_flags &IW_ENCODE_EXT_GROUP_KEY ; -if ((!group) || (IW_MODE_ADHOC == ieee->iw_mode) || +if ((!group) || (ieee->iw_mode ==IW_MODE_ADHOC ) || (alg ==KEY_TYPE_WEP40 )) {if ((ext->key_len ==13 ) && (alg ==KEY_TYPE_WEP40 )) alg =KEY_TYPE_WEP104 ;
@@ -1073,7 +1073,7 @@ static int _rtl92e_wx_set_promisc_mode(struct net_device *dev, bPromiscuousOn = info_buf[1 ]; bFilterSourceStationFrame = info_buf[2 ]; -if (OID_RT_INTEL_PROMISCUOUS_MODE == oid) { +if (oid ==OID_RT_INTEL_PROMISCUOUS_MODE ) { ieee->IntelPromiscuousModeInfo.bPromiscuousOn = (bPromiscuousOn) ? (true) : (false); ieee->IntelPromiscuousModeInfo.bFilterSourceStationFrame =
drivers/staging/rtl8192e/rtl819x_BAProc.c +2 -2
@@ -113,7 +113,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, *tag++ = type; *tag++ = pBA->DialogToken; -if (ACT_ADDBARSP == type) { +if (type ==ACT_ADDBARSP ) {RT_TRACE (COMP_DBG ,"====>to send ADDBARSP\n" );put_unaligned_le16 (StatusCode, tag);
@@ -126,7 +126,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,put_unaligned_le16 (pBA->BaTimeoutValue, tag); tag +=2 ; -if (ACT_ADDBAREQ == type) { +if (type ==ACT_ADDBAREQ ) {memcpy (tag, (u8 *)&(pBA->BaStartSeqCtrl),2 ); tag +=2 ; }
drivers/staging/rtl8192e/rtllib_rx.c +3 -3
@@ -1530,7 +1530,7 @@ int rtllib_rx(struct rtllib_device *ieee, struct sk_buff *skb, {int ret =0 ; -if ((NULL == ieee) || (NULL == skb) || (NULL == rx_stats)) { +if (!ieee || !skb || !rx_stats) {pr_info ("%s: Input parameters NULL!\n" , __func__); goto rx_dropped; }
@@ -2554,7 +2554,7 @@ static inline int is_beacon(u16 fc)static int IsPassiveChannel (struct rtllib_device *rtllib,u8 channel) { -if (MAX_CHANNEL_NUMBER < channel) { +if (channel >MAX_CHANNEL_NUMBER ) {netdev_info (rtllib->dev,"%s(): Invalid Channel\n" , __func__);return 0 ; }
@@ -2567,7 +2567,7 @@ static int IsPassiveChannel(struct rtllib_device *rtllib, u8 channel)int rtllib_legal_channel (struct rtllib_device *rtllib,u8 channel) { -if (MAX_CHANNEL_NUMBER < channel) { +if (channel >MAX_CHANNEL_NUMBER ) {netdev_info (rtllib->dev,"%s(): Invalid Channel\n" , __func__);return 0 ; }
drivers/staging/rtl8192e/rtllib_softmac.c +4 -4
@@ -858,7 +858,7 @@ static struct sk_buff *rtllib_probe_resp(struct rtllib_device *ieee, crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; encrypt = ieee->host_encrypt && crypt && crypt->ops && - ((0 ==strcmp (crypt->ops->name,"R-WEP" ) || wpa_ie_len)); + ((strcmp (crypt->ops->name,"R-WEP" ) ==0 || wpa_ie_len));if (ieee->pHTInfo->bCurrentHTSupport) { tmp_ht_cap_buf = (u8 *) &(ieee->pHTInfo->SelfHTCap); tmp_ht_cap_len =sizeof (ieee->pHTInfo->SelfHTCap);
@@ -1180,7 +1180,7 @@ inline struct sk_buff *rtllib_association_req(struct rtllib_network *beacon, crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];if (crypt !=NULL ) encrypt = ieee->host_encrypt && crypt && crypt->ops && - ((0 ==strcmp (crypt->ops->name,"R-WEP" ) || + ((strcmp (crypt->ops->name,"R-WEP" ) ==0 || wpa_ie_len));else encrypt =0 ;
@@ -2229,7 +2229,7 @@ inline int rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb, ieee->state == RTLLIB_ASSOCIATING_AUTHENTICATED && (ieee->iw_mode == IW_MODE_INFRA)) { errcode =assoc_parse (ieee, skb, &aid); -if (0 == errcode) { +if (!errcode) {struct rtllib_network *network =kzalloc (sizeof (struct rtllib_network ),GFP_ATOMIC );
@@ -3480,7 +3480,7 @@ u8 rtllib_ap_sec_type(struct rtllib_device *ieee) crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; encrypt = (ieee->current_network.capability &WLAN_CAPABILITY_PRIVACY ) || (ieee->host_encrypt && crypt && crypt->ops && - (0 ==strcmp (crypt->ops->name,"R-WEP" ))); + (strcmp (crypt->ops->name,"R-WEP" ) ==0 ));/* simply judge */ if (encrypt && (wpa_ie_len ==0 )) {
drivers/staging/rtl8192e/rtllib_tx.c +3 -3
@@ -635,10 +635,10 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev) }if (skb->len >282 ) { -if (ETH_P_IP == ether_type) { +if (ether_type ==ETH_P_IP ) {const struct iphdr *ip = (struct iphdr *) ((u8 *)skb->data+14 ); -if (IPPROTO_UDP == ip->protocol) { +if (ip->protocol ==IPPROTO_UDP ) {struct udphdr *udp; udp = (struct udphdr *)((u8 *)ip +
@@ -651,7 +651,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev) ieee->LPSDelayCnt =200 ; } } - }else if (ETH_P_ARP == ether_type) { + }else if (ether_type ==ETH_P_ARP ) {netdev_info (ieee->dev,"=================>DHCP Protocol start tx ARP pkt!!\n" ); bdhcp = true;
Signature · 1 line
1.8.4.1
PATCH 4/9 staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings
In reply to Mateusz KulikowskiRemove FSF address from licenses at the beginning of files.
--- drivers/staging/rtl8192e/dot11d.c | 4 ---- drivers/staging/rtl8192e/dot11d.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_cam.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_pci.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_pm.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_pm.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_ps.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 4 ---- drivers/staging/rtl8192e/rtl8192e/rtl_wx.h | 4 ---- drivers/staging/rtl8192e/rtl819x_BA.h | 4 ---- drivers/staging/rtl8192e/rtl819x_BAProc.c | 4 ---- drivers/staging/rtl8192e/rtl819x_HT.h | 4 ---- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ---- drivers/staging/rtl8192e/rtl819x_Qos.h | 4 ---- drivers/staging/rtl8192e/rtl819x_TS.h | 4 ---- drivers/staging/rtl8192e/rtl819x_TSProc.c | 4 ---- drivers/staging/rtl8192e/rtllib_debug.h | 4 ---- drivers/staging/rtl8192e/rtllib_module.c | 4 ---- drivers/staging/rtl8192e/rtllib_tx.c | 4 ---- drivers/staging/rtl8192e/rtllib_wx.c | 4 ---- 45 files changed, 180 deletions(-)
drivers/staging/rtl8192e/dot11d.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/dot11d.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_cam.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_core.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_pci.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_pm.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_pm.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_ps.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl8192e/rtl_wx.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_BA.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_BAProc.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_HT.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_HTProc.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_Qos.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_TS.h +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtl819x_TSProc.c +0 -4
@@ -6,10 +6,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtllib_debug.h +0 -4
@@ -12,10 +12,6 @@* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* * The full GNU General Public License is included in this distribution in the * file called LICENSE. *
drivers/staging/rtl8192e/rtllib_module.c +0 -4
@@ -17,10 +17,6 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program; if not, write to the Free Software Foundation, Inc., 59 - Temple Place - Suite 330, Boston, MA 02111-1307, USA. - The full GNU General Public License is included in this distribution in the file called LICENSE.
drivers/staging/rtl8192e/rtllib_tx.c +0 -4
@@ -11,10 +11,6 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program; if not, write to the Free Software Foundation, Inc., 59 - Temple Place - Suite 330, Boston, MA 02111-1307, USA. - The full GNU General Public License is included in this distribution in the file called LICENSE.
drivers/staging/rtl8192e/rtllib_wx.c +0 -4
@@ -17,10 +17,6 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program; if not, write to the Free Software Foundation, Inc., 59 - Temple Place - Suite 330, Boston, MA 02111-1307, USA. - The full GNU General Public License is included in this distribution in the file called LICENSE.
Signature · 1 line
1.8.4.1
PATCH 5/9 staging: rtl8192e: Remove _rtl92e_silent_reset_mesh
In reply to Mateusz KulikowskiFunction is empty.
--- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +0 -9
@@ -1223,10 +1223,6 @@ static enum reset_type _rtl92e_if_check_reset(struct net_device *dev) } -static void _rtl92e_silent_reset_mesh (struct net_device *dev,u8 IsPortal) -{ -} -static void _rtl92e_if_silent_reset (struct net_device *dev) {struct r8192_priv *priv =rtllib_priv (dev);
@@ -1235,9 +1231,6 @@ static void _rtl92e_if_silent_reset(struct net_device *dev)struct rtllib_device *ieee = priv->rtllib;unsigned long flag; -u8 IsPortal =0 ; - -if (priv->ResetProgress ==RESET_TYPE_NORESET ) {RT_TRACE (COMP_RESET ,"=========>Reset progress!!\n" );
@@ -1347,8 +1340,6 @@ RESET_START:rtllib_start_send_beacons (ieee);netif_carrier_on (ieee->dev); - }else if (ieee->iw_mode ==IW_MODE_MESH ) { -_rtl92e_silent_reset_mesh (dev, IsPortal); }rtl92e_cam_restore (dev);
Signature · 1 line
1.8.4.1
PATCH 6/9 staging: rtl8192e: Remove _rtl92e_dm_check_pbc_gpio
In reply to Mateusz KulikowskiFunction is empty.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +0 -9
@@ -186,10 +186,6 @@ static void _rtl92e_dm_init_cts_to_self(struct net_device *dev);static void _rtl92e_dm_init_wa_broadcom_iot (struct net_device *dev);static void _rtl92e_dm_check_edca_turbo (struct net_device *dev); - -static void _rtl92e_dm_check_pbc_gpio (struct net_device *dev); - -static void _rtl92e_dm_check_rx_path_selection (struct net_device *dev);static void _rtl92e_dm_init_rx_path_selection (struct net_device *dev);static void _rtl92e_dm_rx_path_sel_byrssi (struct net_device *dev);
@@ -254,7 +250,6 @@ void rtl92e_dm_watchdog(struct net_device *dev)_rtl92e_dm_check_ac_dc_power (dev); -_rtl92e_dm_check_pbc_gpio (dev);_rtl92e_dm_check_txrateandretrycount (dev);_rtl92e_dm_check_edca_turbo (dev);
@@ -1834,10 +1829,6 @@ static void _rtl92e_dm_init_wa_broadcom_iot(struct net_device *dev) pHTInfo->WAIotTH = WAIotTHVal; } -static void _rtl92e_dm_check_pbc_gpio (struct net_device *dev) -{ -} -static void _rtl92e_dm_check_rf_ctrl_gpio (void *data) { struct r8192_priv *priv = container_of_dwork_rsl(data,
Signature · 1 line
1.8.4.1
PATCH 7/9 staging: rtl8192e: Remove extra braces
In reply to Mateusz KulikowskiRemove extra braces in _rtl92e_dm_check_tx_power_tracking_thermal.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +0 -2
@@ -1022,12 +1022,10 @@ static void _rtl92e_dm_check_tx_power_tracking_thermal(struct net_device *dev) }if (!TM_Trigger) { - {rtl92e_set_rf_reg (dev,RF90_PATH_A ,0x02 , bMask12Bits,0x4d );rtl92e_set_rf_reg (dev,RF90_PATH_A ,0x02 , bMask12Bits,0x4f );rtl92e_set_rf_reg (dev,RF90_PATH_A ,0x02 , bMask12Bits,0x4d );rtl92e_set_rf_reg (dev,RF90_PATH_A ,0x02 , bMask12Bits,0x4f ); - } TM_Trigger =1 ;return ; }
Signature · 1 line
1.8.4.1
PATCH 8/9 staging: rtl8192e: Simplify _rtl92e_calculate_bit_shift
In reply to Mateusz KulikowskiUse ffs instead of iteration. Behaviour of function doesn't change.
--- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +4 -7
@@ -13,6 +13,7 @@* wlanfae <[email protected]> ******************************************************************************/ +#include <linux/bitops.h> #include "rtl_core.h" #include "r8192E_hw.h" #include "r8192E_phyreg.h"
@@ -50,13 +51,9 @@ static void _rtl92e_phy_rf_fw_write(struct net_device *dev,static u32 _rtl92e_calculate_bit_shift (u32 dwBitMask) { -u32 i; - -for (i =0 ; i <=31 ; i++) { -if (((dwBitMask >> i) &0x1 ) ==1 ) -break ; - } -return i; +if (!dwBitMask) +return 32 ; +return ffs (dwBitMask) -1 ; }u8 rtl92e_is_legal_rf_path (struct net_device *dev,u32 eRFPath)
Signature · 1 line
1.8.4.1
PATCH 9/9 staging: rtl8192e: Merge/Remove _rtl92e_dm_bb_initialgain_backup
In reply to Mateusz KulikowskiMerge rtl92e_dm_backup_state and _rtl92e_dm_bb_initialgain_backup. Static function is called only once and dm_backup_state had short body.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +1 -13
@@ -171,8 +171,6 @@ static void _rtl92e_dm_bandwidth_autoswitch(struct net_device *dev);static void _rtl92e_dm_check_tx_power_tracking (struct net_device *dev);static void _rtl92e_dm_bb_initialgain_restore (struct net_device *dev); -static void _rtl92e_dm_bb_initialgain_backup (struct net_device *dev); -static void _rtl92e_dm_dig_init (struct net_device *dev);static void _rtl92e_dm_ctrl_initgain_byrssi (struct net_device *dev);static void _rtl92e_dm_ctrl_initgain_byrssi_highpwr (struct net_device *dev);
@@ -1242,22 +1240,13 @@ static void _rtl92e_dm_bb_initialgain_restore(struct net_device *dev) } -void rtl92e_dm_backup_state (struct net_device *dev) {struct r8192_priv *priv =rtllib_priv (dev); +u32 bit_mask = bMaskByte0; priv->bswitch_fsync = false; priv->bfsync_processing = false; -_rtl92e_dm_bb_initialgain_backup (dev); - -} - - -static void _rtl92e_dm_bb_initialgain_backup (struct net_device *dev) -{ -struct r8192_priv *priv =rtllib_priv (dev); -u32 bit_mask = bMaskByte0;if (dm_digtable.dig_algorithm ==DIG_ALGO_BY_RSSI )return ;
@@ -1280,7 +1269,6 @@ static void _rtl92e_dm_bb_initialgain_backup(struct net_device *dev) priv->initgain_backup.xdagccore1);RT_TRACE (COMP_DIG ,"BBInitialGainBackup 0xa0a is %x\n" , priv->initgain_backup.cca); - }static void _rtl92e_dm_dig_init (struct net_device *dev)
Signature · 1 line
1.8.4.1