aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2014-03-19 02:36:50 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-19 12:14:58 -0400
commit0d89475861f984a89c4998a98e94a3d19e0bbb20 (patch)
tree8266451e656964474c23ece9f1ec0bf595fe2d7e
parent66d8a3938e42cddd6115e3c92062e0515085a4fd (diff)
staging: rtl8821ae: Fix braces {} are not necessary.
Fix checkpatch.pl issues with braces {} are not necessary in base.c Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8821ae/base.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/staging/rtl8821ae/base.c b/drivers/staging/rtl8821ae/base.c
index c65703d955dd..e5073fe24770 100644
--- a/drivers/staging/rtl8821ae/base.c
+++ b/drivers/staging/rtl8821ae/base.c
@@ -666,26 +666,23 @@ static void _rtl_txrate_selectmode(struct ieee80211_hw *hw,
666 if (mac->opmode == NL80211_IFTYPE_STATION || 666 if (mac->opmode == NL80211_IFTYPE_STATION ||
667 mac->opmode == NL80211_IFTYPE_MESH_POINT) { 667 mac->opmode == NL80211_IFTYPE_MESH_POINT) {
668 tcb_desc->mac_id = 0; 668 tcb_desc->mac_id = 0;
669 669 if (mac->mode == WIRELESS_MODE_N_24G)
670 if (mac->mode == WIRELESS_MODE_N_24G) {
671 tcb_desc->ratr_index = RATR_INX_WIRELESS_NGB; 670 tcb_desc->ratr_index = RATR_INX_WIRELESS_NGB;
672 } else if (mac->mode == WIRELESS_MODE_N_5G) { 671 else if (mac->mode == WIRELESS_MODE_N_5G)
673 tcb_desc->ratr_index = RATR_INX_WIRELESS_NG; 672 tcb_desc->ratr_index = RATR_INX_WIRELESS_NG;
674 } else if (mac->mode & WIRELESS_MODE_G) { 673 else if (mac->mode & WIRELESS_MODE_G)
675 tcb_desc->ratr_index = RATR_INX_WIRELESS_GB; 674 tcb_desc->ratr_index = RATR_INX_WIRELESS_GB;
676 } else if (mac->mode & WIRELESS_MODE_B) { 675 else if (mac->mode & WIRELESS_MODE_B)
677 tcb_desc->ratr_index = RATR_INX_WIRELESS_B; 676 tcb_desc->ratr_index = RATR_INX_WIRELESS_B;
678 } else if (mac->mode & WIRELESS_MODE_A) { 677 else if (mac->mode & WIRELESS_MODE_A)
679 tcb_desc->ratr_index = RATR_INX_WIRELESS_G; 678 tcb_desc->ratr_index = RATR_INX_WIRELESS_G;
680 }
681 } else if (mac->opmode == NL80211_IFTYPE_AP || 679 } else if (mac->opmode == NL80211_IFTYPE_AP ||
682 mac->opmode == NL80211_IFTYPE_ADHOC) { 680 mac->opmode == NL80211_IFTYPE_ADHOC) {
683 if (NULL != sta) { 681 if (NULL != sta) {
684 if (sta->aid > 0) { 682 if (sta->aid > 0)
685 tcb_desc->mac_id = sta->aid + 1; 683 tcb_desc->mac_id = sta->aid + 1;
686 } else { 684 else
687 tcb_desc->mac_id = 1; 685 tcb_desc->mac_id = 1;
688 }
689 } else { 686 } else {
690 tcb_desc->mac_id = 0; 687 tcb_desc->mac_id = 0;
691 } 688 }
@@ -1652,9 +1649,8 @@ void rtl_recognize_peer(struct ieee80211_hw *hw, u8 *data, unsigned int len)
1652 if (ether_addr_equal(hdr->addr3, rtlpriv->mac80211.bssid)) 1649 if (ether_addr_equal(hdr->addr3, rtlpriv->mac80211.bssid))
1653 return; 1650 return;
1654 1651
1655 if (rtl_find_221_ie(hw, data, len)) { 1652 if (rtl_find_221_ie(hw, data, len))
1656 vendor = mac->vendor; 1653 vendor = mac->vendor;
1657 }
1658 1654
1659 if ((memcmp(mac->bssid, ap5_1, 3) == 0) || 1655 if ((memcmp(mac->bssid, ap5_1, 3) == 0) ||
1660 (memcmp(mac->bssid, ap5_2, 3) == 0) || 1656 (memcmp(mac->bssid, ap5_2, 3) == 0) ||