Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: brcm80211: Fix WL_<type> logging macros

These macros use the equivalent of "#define WL_<type>(x) printk x"
which requires an extra level of parentheses.

Convert the macros to use the normal WL_<type>(fmt, args...) style
and remove the extra parentheses from the uses.

Add format argument verification using no_printk as appropriate.
Couple of spelling typo fixes in the formats and argument alignment
at the same time. Also coalesced long formats.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Joe Perches and committed by
Greg Kroah-Hartman
f4528696 12b9d5bf

+1136 -1057
+17 -17
drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c
··· 24 24 #include <wlioctl.h> 25 25 #include <wl_iw.h> 26 26 27 - #define WL_ERROR(x) printf x 28 - #define WL_TRACE(x) 27 + #define WL_ERROR(fmt, args...) printk(fmt, ##args) 28 + #define WL_TRACE(fmt, args...) no_printk(fmt, ##args) 29 29 30 30 #ifdef CUSTOMER_HW 31 31 extern void bcm_wlan_power_off(int); ··· 67 67 #endif 68 68 69 69 if (dhd_oob_gpio_num < 0) { 70 - WL_ERROR(("%s: ERROR customer specific Host GPIO is NOT defined\n", 71 - __func__)); 70 + WL_ERROR("%s: ERROR customer specific Host GPIO is NOT defined\n", 71 + __func__); 72 72 return dhd_oob_gpio_num; 73 73 } 74 74 75 - WL_ERROR(("%s: customer specific Host GPIO number is (%d)\n", 76 - __func__, dhd_oob_gpio_num)); 75 + WL_ERROR("%s: customer specific Host GPIO number is (%d)\n", 76 + __func__, dhd_oob_gpio_num); 77 77 78 78 #if defined CUSTOMER_HW 79 79 host_oob_irq = MSM_GPIO_TO_INT(dhd_oob_gpio_num); ··· 93 93 { 94 94 switch (onoff) { 95 95 case WLAN_RESET_OFF: 96 - WL_TRACE(("%s: call customer specific GPIO to insert WLAN RESET\n", 97 - __func__)); 96 + WL_TRACE("%s: call customer specific GPIO to insert WLAN RESET\n", 97 + __func__); 98 98 #ifdef CUSTOMER_HW 99 99 bcm_wlan_power_off(2); 100 100 #endif /* CUSTOMER_HW */ 101 101 #ifdef CUSTOMER_HW2 102 102 wifi_set_power(0, 0); 103 103 #endif 104 - WL_ERROR(("=========== WLAN placed in RESET ========\n")); 104 + WL_ERROR("=========== WLAN placed in RESET ========\n"); 105 105 break; 106 106 107 107 case WLAN_RESET_ON: 108 - WL_TRACE(("%s: callc customer specific GPIO to remove WLAN RESET\n", 109 - __func__)); 108 + WL_TRACE("%s: callc customer specific GPIO to remove WLAN RESET\n", 109 + __func__); 110 110 #ifdef CUSTOMER_HW 111 111 bcm_wlan_power_on(2); 112 112 #endif /* CUSTOMER_HW */ 113 113 #ifdef CUSTOMER_HW2 114 114 wifi_set_power(1, 0); 115 115 #endif 116 - WL_ERROR(("=========== WLAN going back to live ========\n")); 116 + WL_ERROR("=========== WLAN going back to live ========\n"); 117 117 break; 118 118 119 119 case WLAN_POWER_OFF: 120 - WL_TRACE(("%s: call customer specific GPIO to turn off WL_REG_ON\n", 121 - __func__)); 120 + WL_TRACE("%s: call customer specific GPIO to turn off WL_REG_ON\n", 121 + __func__); 122 122 #ifdef CUSTOMER_HW 123 123 bcm_wlan_power_off(1); 124 124 #endif /* CUSTOMER_HW */ 125 125 break; 126 126 127 127 case WLAN_POWER_ON: 128 - WL_TRACE(("%s: call customer specific GPIO to turn on WL_REG_ON\n", 129 - __func__)); 128 + WL_TRACE("%s: call customer specific GPIO to turn on WL_REG_ON\n", 129 + __func__); 130 130 #ifdef CUSTOMER_HW 131 131 bcm_wlan_power_on(1); 132 132 #endif /* CUSTOMER_HW */ ··· 140 140 /* Function to get custom MAC address */ 141 141 int dhd_custom_get_mac_address(unsigned char *buf) 142 142 { 143 - WL_TRACE(("%s Enter\n", __func__)); 143 + WL_TRACE("%s Enter\n", __func__); 144 144 if (!buf) 145 145 return -EINVAL; 146 146
+259 -259
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
··· 337 337 struct wl_iface *ci; \ 338 338 if (unlikely(!(wl_cfg80211_dev && \ 339 339 (ci = wl_get_drvdata(wl_cfg80211_dev))))) { \ 340 - WL_ERR(("wl_cfg80211_dev is unavailable\n")); \ 340 + WL_ERR("wl_cfg80211_dev is unavailable\n"); \ 341 341 BUG(); \ 342 342 } \ 343 343 ci_to_wl(ci); \ ··· 347 347 do { \ 348 348 struct wl_priv *wl = wiphy_to_wl(wiphy); \ 349 349 if (unlikely(!test_bit(WL_STATUS_READY, &wl->status))) { \ 350 - WL_INFO(("device is not ready : status (%d)\n", \ 351 - (int)wl->status)); \ 350 + WL_INFO("device is not ready : status (%d)\n", \ 351 + (int)wl->status); \ 352 352 return -EIO; \ 353 353 } \ 354 354 } while (0) ··· 613 613 switch (type) { 614 614 case NL80211_IFTYPE_MONITOR: 615 615 case NL80211_IFTYPE_WDS: 616 - WL_ERR(("type (%d) : currently we do not support this type\n", 617 - type)); 616 + WL_ERR("type (%d) : currently we do not support this type\n", 617 + type); 618 618 return -EOPNOTSUPP; 619 619 case NL80211_IFTYPE_ADHOC: 620 620 wl->conf->mode = WL_MODE_IBSS; ··· 630 630 ap = htod32(ap); 631 631 wdev = ndev->ieee80211_ptr; 632 632 wdev->iftype = type; 633 - WL_DBG(("%s : ap (%d), infra (%d)\n", ndev->name, ap, infra)); 633 + WL_DBG("%s : ap (%d), infra (%d)\n", ndev->name, ap, infra); 634 634 err = wl_dev_ioctl(ndev, WLC_SET_INFRA, &infra, sizeof(infra)); 635 635 if (unlikely(err)) { 636 - WL_ERR(("WLC_SET_INFRA error (%d)\n", err)); 636 + WL_ERR("WLC_SET_INFRA error (%d)\n", err); 637 637 return err; 638 638 } 639 639 err = wl_dev_ioctl(ndev, WLC_SET_AP, &ap, sizeof(ap)); 640 640 if (unlikely(err)) { 641 - WL_ERR(("WLC_SET_AP error (%d)\n", err)); 641 + WL_ERR("WLC_SET_AP error (%d)\n", err); 642 642 return err; 643 643 } 644 644 ··· 717 717 iscan->ioctl_buf, WLC_IOCTL_SMLEN); 718 718 if (unlikely(err)) { 719 719 if (err == -EBUSY) { 720 - WL_INFO(("system busy : iscan canceled\n")); 720 + WL_INFO("system busy : iscan canceled\n"); 721 721 } else { 722 - WL_ERR(("error (%d)\n", err)); 722 + WL_ERR("error (%d)\n", err); 723 723 } 724 724 } 725 725 kfree(params); ··· 743 743 err = wl_dev_ioctl(wl_to_ndev(wl), WLC_SET_PASSIVE_SCAN, 744 744 &passive_scan, sizeof(passive_scan)); 745 745 if (unlikely(err)) { 746 - WL_DBG(("error (%d)\n", err)); 746 + WL_DBG("error (%d)\n", err); 747 747 return err; 748 748 } 749 749 wl_set_mpc(ndev, 0); ··· 769 769 s32 err = 0; 770 770 771 771 if (unlikely(test_bit(WL_STATUS_SCANNING, &wl->status))) { 772 - WL_ERR(("Scanning already : status (%d)\n", (int)wl->status)); 772 + WL_ERR("Scanning already : status (%d)\n", (int)wl->status); 773 773 return -EAGAIN; 774 774 } 775 775 if (unlikely(test_bit(WL_STATUS_SCAN_ABORTING, &wl->status))) { 776 - WL_ERR(("Scanning being aborted : status (%d)\n", 777 - (int)wl->status)); 776 + WL_ERR("Scanning being aborted : status (%d)\n", 777 + (int)wl->status); 778 778 return -EAGAIN; 779 779 } 780 780 ··· 806 806 else 807 807 goto scan_out; 808 808 } else { 809 - WL_DBG(("ssid \"%s\", ssid_len (%d)\n", 810 - ssids->ssid, ssids->ssid_len)); 809 + WL_DBG("ssid \"%s\", ssid_len (%d)\n", 810 + ssids->ssid, ssids->ssid_len); 811 811 memset(&sr->ssid, 0, sizeof(sr->ssid)); 812 812 sr->ssid.SSID_len = 813 813 min_t(u8, sizeof(sr->ssid.SSID), ssids->ssid_len); 814 814 if (sr->ssid.SSID_len) { 815 815 memcpy(sr->ssid.SSID, ssids->ssid, sr->ssid.SSID_len); 816 816 sr->ssid.SSID_len = htod32(sr->ssid.SSID_len); 817 - WL_DBG(("Specific scan ssid=\"%s\" len=%d\n", 818 - sr->ssid.SSID, sr->ssid.SSID_len)); 817 + WL_DBG("Specific scan ssid=\"%s\" len=%d\n", 818 + sr->ssid.SSID, sr->ssid.SSID_len); 819 819 spec_scan = true; 820 820 } else { 821 - WL_DBG(("Broadcast scan\n")); 821 + WL_DBG("Broadcast scan\n"); 822 822 } 823 - WL_DBG(("sr->ssid.SSID_len (%d)\n", sr->ssid.SSID_len)); 823 + WL_DBG("sr->ssid.SSID_len (%d)\n", sr->ssid.SSID_len); 824 824 passive_scan = wl->active_scan ? 0 : 1; 825 825 err = wl_dev_ioctl(ndev, WLC_SET_PASSIVE_SCAN, 826 826 &passive_scan, sizeof(passive_scan)); 827 827 if (unlikely(err)) { 828 - WL_ERR(("WLC_SET_PASSIVE_SCAN error (%d)\n", err)); 828 + WL_ERR("WLC_SET_PASSIVE_SCAN error (%d)\n", err); 829 829 goto scan_out; 830 830 } 831 831 wl_set_mpc(ndev, 0); ··· 833 833 sizeof(sr->ssid)); 834 834 if (err) { 835 835 if (err == -EBUSY) { 836 - WL_INFO(("system busy : scan for \"%s\" " 837 - "canceled\n", sr->ssid.SSID)); 836 + WL_INFO("system busy : scan for \"%s\" canceled\n", 837 + sr->ssid.SSID); 838 838 } else { 839 - WL_ERR(("WLC_SCAN error (%d)\n", err)); 839 + WL_ERR("WLC_SCAN error (%d)\n", err); 840 840 } 841 841 wl_set_mpc(ndev, 1); 842 842 goto scan_out; ··· 860 860 CHECK_SYS_UP(); 861 861 err = __wl_cfg80211_scan(wiphy, ndev, request, NULL); 862 862 if (unlikely(err)) { 863 - WL_DBG(("scan error (%d)\n", err)); 863 + WL_DBG("scan error (%d)\n", err); 864 864 return err; 865 865 } 866 866 ··· 879 879 880 880 err = wl_dev_ioctl(dev, WLC_SET_VAR, buf, len); 881 881 if (unlikely(err)) { 882 - WL_ERR(("error (%d)\n", err)); 882 + WL_ERR("error (%d)\n", err); 883 883 } 884 884 885 885 return err; ··· 902 902 BUG_ON(unlikely(!len)); 903 903 err = wl_dev_ioctl(dev, WLC_GET_VAR, &var, len); 904 904 if (unlikely(err)) { 905 - WL_ERR(("error (%d)\n", err)); 905 + WL_ERR("error (%d)\n", err); 906 906 } 907 907 *retval = dtoh32(var.val); 908 908 ··· 915 915 916 916 err = wl_dev_intvar_set(dev, "rtsthresh", rts_threshold); 917 917 if (unlikely(err)) { 918 - WL_ERR(("Error (%d)\n", err)); 918 + WL_ERR("Error (%d)\n", err); 919 919 return err; 920 920 } 921 921 return err; ··· 927 927 928 928 err = wl_dev_intvar_set(dev, "fragthresh", frag_threshold); 929 929 if (unlikely(err)) { 930 - WL_ERR(("Error (%d)\n", err)); 930 + WL_ERR("Error (%d)\n", err); 931 931 return err; 932 932 } 933 933 return err; ··· 941 941 retry = htod32(retry); 942 942 err = wl_dev_ioctl(dev, cmd, &retry, sizeof(retry)); 943 943 if (unlikely(err)) { 944 - WL_ERR(("cmd (%d) , error (%d)\n", cmd, err)); 944 + WL_ERR("cmd (%d) , error (%d)\n", cmd, err); 945 945 return err; 946 946 } 947 947 return err; ··· 1001 1001 1002 1002 CHECK_SYS_UP(); 1003 1003 if (params->bssid) { 1004 - WL_ERR(("Invalid bssid\n")); 1004 + WL_ERR("Invalid bssid\n"); 1005 1005 return -EOPNOTSUPP; 1006 1006 } 1007 1007 bss = cfg80211_get_ibss(wiphy, NULL, params->ssid, params->ssid_len); ··· 1027 1027 } 1028 1028 if (bss) { 1029 1029 wl->ibss_starter = false; 1030 - WL_DBG(("Found IBSS\n")); 1030 + WL_DBG("Found IBSS\n"); 1031 1031 } else { 1032 1032 wl->ibss_starter = true; 1033 1033 } ··· 1051 1051 err = wl_dev_ioctl(dev, WLC_SET_SSID, &join_params, 1052 1052 sizeof(join_params)); 1053 1053 if (unlikely(err)) { 1054 - WL_ERR(("Error (%d)\n", err)); 1054 + WL_ERR("Error (%d)\n", err); 1055 1055 return err; 1056 1056 } 1057 1057 return err; ··· 1082 1082 val = WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED; 1083 1083 else 1084 1084 val = WPA_AUTH_DISABLED; 1085 - WL_DBG(("setting wpa_auth to 0x%0x\n", val)); 1085 + WL_DBG("setting wpa_auth to 0x%0x\n", val); 1086 1086 err = wl_dev_intvar_set(dev, "wpa_auth", val); 1087 1087 if (unlikely(err)) { 1088 - WL_ERR(("set wpa_auth failed (%d)\n", err)); 1088 + WL_ERR("set wpa_auth failed (%d)\n", err); 1089 1089 return err; 1090 1090 } 1091 1091 sec = wl_read_prof(wl, WL_PROF_SEC); ··· 1104 1104 switch (sme->auth_type) { 1105 1105 case NL80211_AUTHTYPE_OPEN_SYSTEM: 1106 1106 val = 0; 1107 - WL_DBG(("open system\n")); 1107 + WL_DBG("open system\n"); 1108 1108 break; 1109 1109 case NL80211_AUTHTYPE_SHARED_KEY: 1110 1110 val = 1; 1111 - WL_DBG(("shared key\n")); 1111 + WL_DBG("shared key\n"); 1112 1112 break; 1113 1113 case NL80211_AUTHTYPE_AUTOMATIC: 1114 1114 val = 2; 1115 - WL_DBG(("automatic\n")); 1115 + WL_DBG("automatic\n"); 1116 1116 break; 1117 1117 case NL80211_AUTHTYPE_NETWORK_EAP: 1118 - WL_DBG(("network eap\n")); 1118 + WL_DBG("network eap\n"); 1119 1119 default: 1120 1120 val = 2; 1121 - WL_ERR(("invalid auth type (%d)\n", sme->auth_type)); 1121 + WL_ERR("invalid auth type (%d)\n", sme->auth_type); 1122 1122 break; 1123 1123 } 1124 1124 1125 1125 err = wl_dev_intvar_set(dev, "auth", val); 1126 1126 if (unlikely(err)) { 1127 - WL_ERR(("set auth failed (%d)\n", err)); 1127 + WL_ERR("set auth failed (%d)\n", err); 1128 1128 return err; 1129 1129 } 1130 1130 sec = wl_read_prof(wl, WL_PROF_SEC); ··· 1157 1157 pval = AES_ENABLED; 1158 1158 break; 1159 1159 default: 1160 - WL_ERR(("invalid cipher pairwise (%d)\n", 1161 - sme->crypto.ciphers_pairwise[0])); 1160 + WL_ERR("invalid cipher pairwise (%d)\n", 1161 + sme->crypto.ciphers_pairwise[0]); 1162 1162 return -EINVAL; 1163 1163 } 1164 1164 } ··· 1178 1178 gval = AES_ENABLED; 1179 1179 break; 1180 1180 default: 1181 - WL_ERR(("invalid cipher group (%d)\n", 1182 - sme->crypto.cipher_group)); 1181 + WL_ERR("invalid cipher group (%d)\n", 1182 + sme->crypto.cipher_group); 1183 1183 return -EINVAL; 1184 1184 } 1185 1185 } 1186 1186 1187 - WL_DBG(("pval (%d) gval (%d)\n", pval, gval)); 1187 + WL_DBG("pval (%d) gval (%d)\n", pval, gval); 1188 1188 err = wl_dev_intvar_set(dev, "wsec", pval | gval); 1189 1189 if (unlikely(err)) { 1190 - WL_ERR(("error (%d)\n", err)); 1190 + WL_ERR("error (%d)\n", err); 1191 1191 return err; 1192 1192 } 1193 1193 ··· 1209 1209 if (sme->crypto.n_akm_suites) { 1210 1210 err = wl_dev_intvar_get(dev, "wpa_auth", &val); 1211 1211 if (unlikely(err)) { 1212 - WL_ERR(("could not get wpa_auth (%d)\n", err)); 1212 + WL_ERR("could not get wpa_auth (%d)\n", err); 1213 1213 return err; 1214 1214 } 1215 1215 if (val & (WPA_AUTH_PSK | WPA_AUTH_UNSPECIFIED)) { ··· 1221 1221 val = WPA_AUTH_PSK; 1222 1222 break; 1223 1223 default: 1224 - WL_ERR(("invalid cipher group (%d)\n", 1225 - sme->crypto.cipher_group)); 1224 + WL_ERR("invalid cipher group (%d)\n", 1225 + sme->crypto.cipher_group); 1226 1226 return -EINVAL; 1227 1227 } 1228 1228 } else if (val & (WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED)) { ··· 1234 1234 val = WPA2_AUTH_PSK; 1235 1235 break; 1236 1236 default: 1237 - WL_ERR(("invalid cipher group (%d)\n", 1238 - sme->crypto.cipher_group)); 1237 + WL_ERR("invalid cipher group (%d)\n", 1238 + sme->crypto.cipher_group); 1239 1239 return -EINVAL; 1240 1240 } 1241 1241 } 1242 1242 1243 - WL_DBG(("setting wpa_auth to %d\n", val)); 1243 + WL_DBG("setting wpa_auth to %d\n", val); 1244 1244 err = wl_dev_intvar_set(dev, "wpa_auth", val); 1245 1245 if (unlikely(err)) { 1246 - WL_ERR(("could not set wpa_auth (%d)\n", err)); 1246 + WL_ERR("could not set wpa_auth (%d)\n", err); 1247 1247 return err; 1248 1248 } 1249 1249 } ··· 1263 1263 s32 val; 1264 1264 s32 err = 0; 1265 1265 1266 - WL_DBG(("key len (%d)\n", sme->key_len)); 1266 + WL_DBG("key len (%d)\n", sme->key_len); 1267 1267 if (sme->key_len) { 1268 1268 sec = wl_read_prof(wl, WL_PROF_SEC); 1269 - WL_DBG(("wpa_versions 0x%x cipher_pairwise 0x%x\n", 1270 - sec->wpa_versions, sec->cipher_pairwise)); 1269 + WL_DBG("wpa_versions 0x%x cipher_pairwise 0x%x\n", 1270 + sec->wpa_versions, sec->cipher_pairwise); 1271 1271 if (! 1272 1272 (sec->wpa_versions & (NL80211_WPA_VERSION_1 | 1273 1273 NL80211_WPA_VERSION_2)) ··· 1277 1277 key.len = (u32) sme->key_len; 1278 1278 key.index = (u32) sme->key_idx; 1279 1279 if (unlikely(key.len > sizeof(key.data))) { 1280 - WL_ERR(("Too long key length (%u)\n", key.len)); 1280 + WL_ERR("Too long key length (%u)\n", key.len); 1281 1281 return -EINVAL; 1282 1282 } 1283 1283 memcpy(key.data, sme->key, key.len); ··· 1290 1290 key.algo = CRYPTO_ALGO_WEP128; 1291 1291 break; 1292 1292 default: 1293 - WL_ERR(("Invalid algorithm (%d)\n", 1294 - sme->crypto.ciphers_pairwise[0])); 1293 + WL_ERR("Invalid algorithm (%d)\n", 1294 + sme->crypto.ciphers_pairwise[0]); 1295 1295 return -EINVAL; 1296 1296 } 1297 1297 /* Set the new key/index */ 1298 - WL_DBG(("key length (%d) key index (%d) algo (%d)\n", 1299 - key.len, key.index, key.algo)); 1300 - WL_DBG(("key \"%s\"\n", key.data)); 1298 + WL_DBG("key length (%d) key index (%d) algo (%d)\n", 1299 + key.len, key.index, key.algo); 1300 + WL_DBG("key \"%s\"\n", key.data); 1301 1301 swap_key_from_BE(&key); 1302 1302 err = wl_dev_ioctl(dev, WLC_SET_KEY, &key, 1303 1303 sizeof(key)); 1304 1304 if (unlikely(err)) { 1305 - WL_ERR(("WLC_SET_KEY error (%d)\n", err)); 1305 + WL_ERR("WLC_SET_KEY error (%d)\n", err); 1306 1306 return err; 1307 1307 } 1308 1308 if (sec->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) { 1309 - WL_DBG(("set auth_type to shared key\n")); 1309 + WL_DBG("set auth_type to shared key\n"); 1310 1310 val = 1; /* shared key */ 1311 1311 err = wl_dev_intvar_set(dev, "auth", val); 1312 1312 if (unlikely(err)) { 1313 - WL_ERR(("set auth failed (%d)\n", err)); 1313 + WL_ERR("set auth failed (%d)\n", err); 1314 1314 return err; 1315 1315 } 1316 1316 } ··· 1332 1332 1333 1333 CHECK_SYS_UP(); 1334 1334 if (unlikely(!sme->ssid)) { 1335 - WL_ERR(("Invalid ssid\n")); 1335 + WL_ERR("Invalid ssid\n"); 1336 1336 return -EOPNOTSUPP; 1337 1337 } 1338 1338 if (chan) { 1339 1339 wl->channel = ieee80211_frequency_to_channel(chan->center_freq); 1340 - WL_DBG(("channel (%d), center_req (%d)\n", wl->channel, 1341 - chan->center_freq)); 1340 + WL_DBG("channel (%d), center_req (%d)\n", 1341 + wl->channel, chan->center_freq); 1342 1342 } 1343 - WL_DBG(("ie (%p), ie_len (%zd)\n", sme->ie, sme->ie_len)); 1343 + WL_DBG("ie (%p), ie_len (%zd)\n", sme->ie, sme->ie_len); 1344 1344 err = wl_set_wpa_version(dev, sme); 1345 1345 if (unlikely(err)) 1346 1346 return err; ··· 1376 1376 memcpy(&join_params.params.bssid, &ether_bcast, ETH_ALEN); 1377 1377 1378 1378 wl_ch_to_chanspec(wl->channel, &join_params, &join_params_size); 1379 - WL_DBG(("join_param_size %d\n", join_params_size)); 1379 + WL_DBG("join_param_size %d\n", join_params_size); 1380 1380 1381 1381 if (join_params.ssid.SSID_len < IEEE80211_MAX_SSID_LEN) { 1382 - WL_DBG(("ssid \"%s\", len (%d)\n", join_params.ssid.SSID, 1383 - join_params.ssid.SSID_len)); 1382 + WL_DBG("ssid \"%s\", len (%d)\n", 1383 + join_params.ssid.SSID, join_params.ssid.SSID_len); 1384 1384 } 1385 1385 err = wl_dev_ioctl(dev, WLC_SET_SSID, &join_params, join_params_size); 1386 1386 if (unlikely(err)) { 1387 - WL_ERR(("error (%d)\n", err)); 1387 + WL_ERR("error (%d)\n", err); 1388 1388 return err; 1389 1389 } 1390 1390 set_bit(WL_STATUS_CONNECTING, &wl->status); ··· 1401 1401 bool act = false; 1402 1402 s32 err = 0; 1403 1403 1404 - WL_DBG(("Reason %d\n", reason_code)); 1404 + WL_DBG("Reason %d\n", reason_code); 1405 1405 CHECK_SYS_UP(); 1406 1406 act = *(bool *) wl_read_prof(wl, WL_PROF_ACT); 1407 1407 if (likely(act)) { ··· 1411 1411 err = wl_dev_ioctl(dev, WLC_DISASSOC, &scbval, 1412 1412 sizeof(scb_val_t)); 1413 1413 if (unlikely(err)) { 1414 - WL_ERR(("error (%d)\n", err)); 1414 + WL_ERR("error (%d)\n", err); 1415 1415 return err; 1416 1416 } 1417 1417 } ··· 1436 1436 break; 1437 1437 case NL80211_TX_POWER_LIMITED: 1438 1438 if (dbm < 0) { 1439 - WL_ERR(("TX_POWER_LIMITTED - dbm is negative\n")); 1439 + WL_ERR("TX_POWER_LIMITED - dbm is negative\n"); 1440 1440 return -EINVAL; 1441 1441 } 1442 1442 break; 1443 1443 case NL80211_TX_POWER_FIXED: 1444 1444 if (dbm < 0) { 1445 - WL_ERR(("TX_POWER_FIXED - dbm is negative..\n")); 1445 + WL_ERR("TX_POWER_FIXED - dbm is negative\n"); 1446 1446 return -EINVAL; 1447 1447 } 1448 1448 break; ··· 1452 1452 disable = htod32(disable); 1453 1453 err = wl_dev_ioctl(ndev, WLC_SET_RADIO, &disable, sizeof(disable)); 1454 1454 if (unlikely(err)) { 1455 - WL_ERR(("WLC_SET_RADIO error (%d)\n", err)); 1455 + WL_ERR("WLC_SET_RADIO error (%d)\n", err); 1456 1456 return err; 1457 1457 } 1458 1458 ··· 1463 1463 err = wl_dev_intvar_set(ndev, "qtxpower", 1464 1464 (s32) (bcm_mw_to_qdbm(txpwrmw))); 1465 1465 if (unlikely(err)) { 1466 - WL_ERR(("qtxpower error (%d)\n", err)); 1466 + WL_ERR("qtxpower error (%d)\n", err); 1467 1467 return err; 1468 1468 } 1469 1469 wl->conf->tx_power = dbm; ··· 1482 1482 CHECK_SYS_UP(); 1483 1483 err = wl_dev_intvar_get(ndev, "qtxpower", &txpwrdbm); 1484 1484 if (unlikely(err)) { 1485 - WL_ERR(("error (%d)\n", err)); 1485 + WL_ERR("error (%d)\n", err); 1486 1486 return err; 1487 1487 } 1488 1488 result = (u8) (txpwrdbm & ~WL_TXPWR_OVERRIDE); ··· 1499 1499 s32 wsec; 1500 1500 s32 err = 0; 1501 1501 1502 - WL_DBG(("key index (%d)\n", key_idx)); 1502 + WL_DBG("key index (%d)\n", key_idx); 1503 1503 CHECK_SYS_UP(); 1504 1504 1505 1505 err = wl_dev_ioctl(dev, WLC_GET_WSEC, &wsec, sizeof(wsec)); 1506 1506 if (unlikely(err)) { 1507 - WL_ERR(("WLC_GET_WSEC error (%d)\n", err)); 1507 + WL_ERR("WLC_GET_WSEC error (%d)\n", err); 1508 1508 return err; 1509 1509 } 1510 1510 wsec = dtoh32(wsec); ··· 1515 1515 err = wl_dev_ioctl(dev, WLC_SET_KEY_PRIMARY, &index, 1516 1516 sizeof(index)); 1517 1517 if (unlikely(err)) { 1518 - WL_ERR(("error (%d)\n", err)); 1518 + WL_ERR("error (%d)\n", err); 1519 1519 } 1520 1520 } 1521 1521 return err; ··· 1541 1541 swap_key_from_BE(&key); 1542 1542 err = wl_dev_ioctl(dev, WLC_SET_KEY, &key, sizeof(key)); 1543 1543 if (unlikely(err)) { 1544 - WL_ERR(("key delete error (%d)\n", err)); 1544 + WL_ERR("key delete error (%d)\n", err); 1545 1545 return err; 1546 1546 } 1547 1547 } else { 1548 1548 if (key.len > sizeof(key.data)) { 1549 - WL_ERR(("Invalid key length (%d)\n", key.len)); 1549 + WL_ERR("Invalid key length (%d)\n", key.len); 1550 1550 return -EINVAL; 1551 1551 } 1552 1552 1553 - WL_DBG(("Setting the key index %d\n", key.index)); 1553 + WL_DBG("Setting the key index %d\n", key.index); 1554 1554 memcpy(key.data, params->key, key.len); 1555 1555 1556 1556 if (params->cipher == WLAN_CIPHER_SUITE_TKIP) { ··· 1574 1574 switch (params->cipher) { 1575 1575 case WLAN_CIPHER_SUITE_WEP40: 1576 1576 key.algo = CRYPTO_ALGO_WEP1; 1577 - WL_DBG(("WLAN_CIPHER_SUITE_WEP40\n")); 1577 + WL_DBG("WLAN_CIPHER_SUITE_WEP40\n"); 1578 1578 break; 1579 1579 case WLAN_CIPHER_SUITE_WEP104: 1580 1580 key.algo = CRYPTO_ALGO_WEP128; 1581 - WL_DBG(("WLAN_CIPHER_SUITE_WEP104\n")); 1581 + WL_DBG("WLAN_CIPHER_SUITE_WEP104\n"); 1582 1582 break; 1583 1583 case WLAN_CIPHER_SUITE_TKIP: 1584 1584 key.algo = CRYPTO_ALGO_TKIP; 1585 - WL_DBG(("WLAN_CIPHER_SUITE_TKIP\n")); 1585 + WL_DBG("WLAN_CIPHER_SUITE_TKIP\n"); 1586 1586 break; 1587 1587 case WLAN_CIPHER_SUITE_AES_CMAC: 1588 1588 key.algo = CRYPTO_ALGO_AES_CCM; 1589 - WL_DBG(("WLAN_CIPHER_SUITE_AES_CMAC\n")); 1589 + WL_DBG("WLAN_CIPHER_SUITE_AES_CMAC\n"); 1590 1590 break; 1591 1591 case WLAN_CIPHER_SUITE_CCMP: 1592 1592 key.algo = CRYPTO_ALGO_AES_CCM; 1593 - WL_DBG(("WLAN_CIPHER_SUITE_CCMP\n")); 1593 + WL_DBG("WLAN_CIPHER_SUITE_CCMP\n"); 1594 1594 break; 1595 1595 default: 1596 - WL_ERR(("Invalid cipher (0x%x)\n", params->cipher)); 1596 + WL_ERR("Invalid cipher (0x%x)\n", params->cipher); 1597 1597 return -EINVAL; 1598 1598 } 1599 1599 swap_key_from_BE(&key); ··· 1601 1601 dhd_wait_pend8021x(dev); 1602 1602 err = wl_dev_ioctl(dev, WLC_SET_KEY, &key, sizeof(key)); 1603 1603 if (unlikely(err)) { 1604 - WL_ERR(("WLC_SET_KEY error (%d)\n", err)); 1604 + WL_ERR("WLC_SET_KEY error (%d)\n", err); 1605 1605 return err; 1606 1606 } 1607 1607 } ··· 1618 1618 s32 wsec; 1619 1619 s32 err = 0; 1620 1620 1621 - WL_DBG(("key index (%d)\n", key_idx)); 1621 + WL_DBG("key index (%d)\n", key_idx); 1622 1622 CHECK_SYS_UP(); 1623 1623 1624 1624 if (mac_addr) ··· 1629 1629 key.index = (u32) key_idx; 1630 1630 1631 1631 if (unlikely(key.len > sizeof(key.data))) { 1632 - WL_ERR(("Too long key length (%u)\n", key.len)); 1632 + WL_ERR("Too long key length (%u)\n", key.len); 1633 1633 return -EINVAL; 1634 1634 } 1635 1635 memcpy(key.data, params->key, key.len); ··· 1638 1638 switch (params->cipher) { 1639 1639 case WLAN_CIPHER_SUITE_WEP40: 1640 1640 key.algo = CRYPTO_ALGO_WEP1; 1641 - WL_DBG(("WLAN_CIPHER_SUITE_WEP40\n")); 1641 + WL_DBG("WLAN_CIPHER_SUITE_WEP40\n"); 1642 1642 break; 1643 1643 case WLAN_CIPHER_SUITE_WEP104: 1644 1644 key.algo = CRYPTO_ALGO_WEP128; 1645 - WL_DBG(("WLAN_CIPHER_SUITE_WEP104\n")); 1645 + WL_DBG("WLAN_CIPHER_SUITE_WEP104\n"); 1646 1646 break; 1647 1647 case WLAN_CIPHER_SUITE_TKIP: 1648 1648 key.algo = CRYPTO_ALGO_TKIP; 1649 - WL_DBG(("WLAN_CIPHER_SUITE_TKIP\n")); 1649 + WL_DBG("WLAN_CIPHER_SUITE_TKIP\n"); 1650 1650 break; 1651 1651 case WLAN_CIPHER_SUITE_AES_CMAC: 1652 1652 key.algo = CRYPTO_ALGO_AES_CCM; 1653 - WL_DBG(("WLAN_CIPHER_SUITE_AES_CMAC\n")); 1653 + WL_DBG("WLAN_CIPHER_SUITE_AES_CMAC\n"); 1654 1654 break; 1655 1655 case WLAN_CIPHER_SUITE_CCMP: 1656 1656 key.algo = CRYPTO_ALGO_AES_CCM; 1657 - WL_DBG(("WLAN_CIPHER_SUITE_CCMP\n")); 1657 + WL_DBG("WLAN_CIPHER_SUITE_CCMP\n"); 1658 1658 break; 1659 1659 default: 1660 - WL_ERR(("Invalid cipher (0x%x)\n", params->cipher)); 1660 + WL_ERR("Invalid cipher (0x%x)\n", params->cipher); 1661 1661 return -EINVAL; 1662 1662 } 1663 1663 ··· 1665 1665 swap_key_from_BE(&key); 1666 1666 err = wl_dev_ioctl(dev, WLC_SET_KEY, &key, sizeof(key)); 1667 1667 if (unlikely(err)) { 1668 - WL_ERR(("WLC_SET_KEY error (%d)\n", err)); 1668 + WL_ERR("WLC_SET_KEY error (%d)\n", err); 1669 1669 return err; 1670 1670 } 1671 1671 1672 1672 val = WEP_ENABLED; 1673 1673 err = wl_dev_intvar_get(dev, "wsec", &wsec); 1674 1674 if (unlikely(err)) { 1675 - WL_ERR(("get wsec error (%d)\n", err)); 1675 + WL_ERR("get wsec error (%d)\n", err); 1676 1676 return err; 1677 1677 } 1678 1678 wsec &= ~(WEP_ENABLED); 1679 1679 wsec |= val; 1680 1680 err = wl_dev_intvar_set(dev, "wsec", wsec); 1681 1681 if (unlikely(err)) { 1682 - WL_ERR(("set wsec error (%d)\n", err)); 1682 + WL_ERR("set wsec error (%d)\n", err); 1683 1683 return err; 1684 1684 } 1685 1685 ··· 1687 1687 val = htod32(val); 1688 1688 err = wl_dev_ioctl(dev, WLC_SET_AUTH, &val, sizeof(val)); 1689 1689 if (unlikely(err)) { 1690 - WL_ERR(("WLC_SET_AUTH error (%d)\n", err)); 1690 + WL_ERR("WLC_SET_AUTH error (%d)\n", err); 1691 1691 return err; 1692 1692 } 1693 1693 return err; ··· 1709 1709 key.flags = WL_PRIMARY_KEY; 1710 1710 key.algo = CRYPTO_ALGO_OFF; 1711 1711 1712 - WL_DBG(("key index (%d)\n", key_idx)); 1712 + WL_DBG("key index (%d)\n", key_idx); 1713 1713 /* Set the new key/index */ 1714 1714 swap_key_from_BE(&key); 1715 1715 err = wl_dev_ioctl(dev, WLC_SET_KEY, &key, sizeof(key)); ··· 1717 1717 if (err == -EINVAL) { 1718 1718 if (key.index >= DOT11_MAX_DEFAULT_KEYS) { 1719 1719 /* we ignore this key index in this case */ 1720 - WL_DBG(("invalid key index (%d)\n", key_idx)); 1720 + WL_DBG("invalid key index (%d)\n", key_idx); 1721 1721 } 1722 1722 } else { 1723 - WL_ERR(("WLC_SET_KEY error (%d)\n", err)); 1723 + WL_ERR("WLC_SET_KEY error (%d)\n", err); 1724 1724 } 1725 1725 return err; 1726 1726 } ··· 1728 1728 val = 0; 1729 1729 err = wl_dev_intvar_get(dev, "wsec", &wsec); 1730 1730 if (unlikely(err)) { 1731 - WL_ERR(("get wsec error (%d)\n", err)); 1731 + WL_ERR("get wsec error (%d)\n", err); 1732 1732 return err; 1733 1733 } 1734 1734 wsec &= ~(WEP_ENABLED); 1735 1735 wsec |= val; 1736 1736 err = wl_dev_intvar_set(dev, "wsec", wsec); 1737 1737 if (unlikely(err)) { 1738 - WL_ERR(("set wsec error (%d)\n", err)); 1738 + WL_ERR("set wsec error (%d)\n", err); 1739 1739 return err; 1740 1740 } 1741 1741 ··· 1743 1743 val = htod32(val); 1744 1744 err = wl_dev_ioctl(dev, WLC_SET_AUTH, &val, sizeof(val)); 1745 1745 if (unlikely(err)) { 1746 - WL_ERR(("WLC_SET_AUTH error (%d)\n", err)); 1746 + WL_ERR("WLC_SET_AUTH error (%d)\n", err); 1747 1747 return err; 1748 1748 } 1749 1749 return err; ··· 1761 1761 s32 wsec; 1762 1762 s32 err = 0; 1763 1763 1764 - WL_DBG(("key index (%d)\n", key_idx)); 1764 + WL_DBG("key index (%d)\n", key_idx); 1765 1765 CHECK_SYS_UP(); 1766 1766 1767 1767 memset(&key, 0, sizeof(key)); ··· 1773 1773 1774 1774 err = wl_dev_ioctl(dev, WLC_GET_WSEC, &wsec, sizeof(wsec)); 1775 1775 if (unlikely(err)) { 1776 - WL_ERR(("WLC_GET_WSEC error (%d)\n", err)); 1776 + WL_ERR("WLC_GET_WSEC error (%d)\n", err); 1777 1777 return err; 1778 1778 } 1779 1779 wsec = dtoh32(wsec); ··· 1782 1782 sec = wl_read_prof(wl, WL_PROF_SEC); 1783 1783 if (sec->cipher_pairwise & WLAN_CIPHER_SUITE_WEP40) { 1784 1784 params.cipher = WLAN_CIPHER_SUITE_WEP40; 1785 - WL_DBG(("WLAN_CIPHER_SUITE_WEP40\n")); 1785 + WL_DBG("WLAN_CIPHER_SUITE_WEP40\n"); 1786 1786 } else if (sec->cipher_pairwise & WLAN_CIPHER_SUITE_WEP104) { 1787 1787 params.cipher = WLAN_CIPHER_SUITE_WEP104; 1788 - WL_DBG(("WLAN_CIPHER_SUITE_WEP104\n")); 1788 + WL_DBG("WLAN_CIPHER_SUITE_WEP104\n"); 1789 1789 } 1790 1790 break; 1791 1791 case TKIP_ENABLED: 1792 1792 params.cipher = WLAN_CIPHER_SUITE_TKIP; 1793 - WL_DBG(("WLAN_CIPHER_SUITE_TKIP\n")); 1793 + WL_DBG("WLAN_CIPHER_SUITE_TKIP\n"); 1794 1794 break; 1795 1795 case AES_ENABLED: 1796 1796 params.cipher = WLAN_CIPHER_SUITE_AES_CMAC; 1797 - WL_DBG(("WLAN_CIPHER_SUITE_AES_CMAC\n")); 1797 + WL_DBG("WLAN_CIPHER_SUITE_AES_CMAC\n"); 1798 1798 break; 1799 1799 default: 1800 - WL_ERR(("Invalid algo (0x%x)\n", wsec)); 1800 + WL_ERR("Invalid algo (0x%x)\n", wsec); 1801 1801 return -EINVAL; 1802 1802 } 1803 1803 ··· 1809 1809 wl_cfg80211_config_default_mgmt_key(struct wiphy *wiphy, 1810 1810 struct net_device *dev, u8 key_idx) 1811 1811 { 1812 - WL_INFO(("Not supported\n")); 1812 + WL_INFO("Not supported\n"); 1813 1813 CHECK_SYS_UP(); 1814 1814 return -EOPNOTSUPP; 1815 1815 } ··· 1827 1827 CHECK_SYS_UP(); 1828 1828 if (unlikely 1829 1829 (memcmp(mac, wl_read_prof(wl, WL_PROF_BSSID), ETH_ALEN))) { 1830 - WL_ERR(("Wrong Mac address\n")); 1830 + WL_ERR("Wrong Mac address\n"); 1831 1831 return -ENOENT; 1832 1832 } 1833 1833 1834 1834 /* Report the current tx rate */ 1835 1835 err = wl_dev_ioctl(dev, WLC_GET_RATE, &rate, sizeof(rate)); 1836 1836 if (err) { 1837 - WL_ERR(("Could not get rate (%d)\n", err)); 1837 + WL_ERR("Could not get rate (%d)\n", err); 1838 1838 } else { 1839 1839 rate = dtoh32(rate); 1840 1840 sinfo->filled |= STATION_INFO_TX_BITRATE; 1841 1841 sinfo->txrate.legacy = rate * 5; 1842 - WL_DBG(("Rate %d Mbps\n", (rate / 2))); 1842 + WL_DBG("Rate %d Mbps\n", rate / 2); 1843 1843 } 1844 1844 1845 1845 if (test_bit(WL_STATUS_CONNECTED, &wl->status)) { ··· 1847 1847 err = wl_dev_ioctl(dev, WLC_GET_RSSI, &scb_val, 1848 1848 sizeof(scb_val_t)); 1849 1849 if (unlikely(err)) { 1850 - WL_ERR(("Could not get rssi (%d)\n", err)); 1850 + WL_ERR("Could not get rssi (%d)\n", err); 1851 1851 return err; 1852 1852 } 1853 1853 rssi = dtoh32(scb_val.val); 1854 1854 sinfo->filled |= STATION_INFO_SIGNAL; 1855 1855 sinfo->signal = rssi; 1856 - WL_DBG(("RSSI %d dBm\n", rssi)); 1856 + WL_DBG("RSSI %d dBm\n", rssi); 1857 1857 } 1858 1858 1859 1859 return err; ··· 1869 1869 CHECK_SYS_UP(); 1870 1870 pm = enabled ? PM_FAST : PM_OFF; 1871 1871 pm = htod32(pm); 1872 - WL_DBG(("power save %s\n", (pm ? "enabled" : "disabled"))); 1872 + WL_DBG("power save %s\n", (pm ? "enabled" : "disabled")); 1873 1873 err = wl_dev_ioctl(dev, WLC_SET_PM, &pm, sizeof(pm)); 1874 1874 if (unlikely(err)) { 1875 1875 if (err == -ENODEV) 1876 - WL_DBG(("net_device is not ready yet\n")); 1876 + WL_DBG("net_device is not ready yet\n"); 1877 1877 else 1878 - WL_ERR(("error (%d)\n", err)); 1878 + WL_ERR("error (%d)\n", err); 1879 1879 return err; 1880 1880 } 1881 1881 return err; ··· 1927 1927 err = wl_dev_ioctl(dev, WLC_GET_CURR_RATESET, &rateset, 1928 1928 sizeof(rateset)); 1929 1929 if (unlikely(err)) { 1930 - WL_ERR(("could not get current rateset (%d)\n", err)); 1930 + WL_ERR("could not get current rateset (%d)\n", err); 1931 1931 return err; 1932 1932 } 1933 1933 ··· 1947 1947 rate = val / 500000; 1948 1948 } 1949 1949 1950 - WL_DBG(("rate %d mbps\n", (rate / 2))); 1950 + WL_DBG("rate %d mbps\n", rate / 2); 1951 1951 1952 1952 /* 1953 1953 * ··· 1957 1957 err_bg = wl_dev_intvar_set(dev, "bg_rate", rate); 1958 1958 err_a = wl_dev_intvar_set(dev, "a_rate", rate); 1959 1959 if (unlikely(err_bg && err_a)) { 1960 - WL_ERR(("could not set fixed rate (%d) (%d)\n", err_bg, err_a)); 1960 + WL_ERR("could not set fixed rate (%d) (%d)\n", err_bg, err_a); 1961 1961 return err_bg | err_a; 1962 1962 } 1963 1963 ··· 2002 2002 { 2003 2003 int i, j; 2004 2004 2005 - WL_DBG(("No of elements %d\n", pmk_list->pmkids.npmkid)); 2005 + WL_DBG("No of elements %d\n", pmk_list->pmkids.npmkid); 2006 2006 for (i = 0; i < pmk_list->pmkids.npmkid; i++) { 2007 - WL_DBG(("PMKID[%d]: %pM =\n", i, 2008 - &pmk_list->pmkids.pmkid[i].BSSID)); 2007 + WL_DBG("PMKID[%d]: %pM =\n", i, 2008 + &pmk_list->pmkids.pmkid[i].BSSID); 2009 2009 for (j = 0; j < WPA2_PMKID_LEN; j++) { 2010 - WL_DBG(("%02x\n", pmk_list->pmkids.pmkid[i].PMKID[j])); 2010 + WL_DBG("%02x\n", pmk_list->pmkids.pmkid[i].PMKID[j]); 2011 2011 } 2012 2012 } 2013 2013 if (likely(!err)) { ··· 2041 2041 } else { 2042 2042 err = -EINVAL; 2043 2043 } 2044 - WL_DBG(("set_pmksa,IW_PMKSA_ADD - PMKID: %pM =\n", 2045 - &wl->pmk_list->pmkids.pmkid[wl->pmk_list->pmkids.npmkid].BSSID)); 2044 + WL_DBG("set_pmksa,IW_PMKSA_ADD - PMKID: %pM =\n", 2045 + &wl->pmk_list->pmkids.pmkid[wl->pmk_list->pmkids.npmkid].BSSID); 2046 2046 for (i = 0; i < WPA2_PMKID_LEN; i++) { 2047 - WL_DBG(("%02x\n", 2048 - wl->pmk_list->pmkids.pmkid[wl->pmk_list->pmkids.npmkid]. 2049 - PMKID[i])); 2047 + WL_DBG("%02x\n", 2048 + wl->pmk_list->pmkids.pmkid[wl->pmk_list->pmkids.npmkid]. 2049 + PMKID[i]); 2050 2050 } 2051 2051 2052 2052 err = wl_update_pmklist(dev, wl->pmk_list, err); ··· 2067 2067 memcpy(&pmkid.pmkid[0].BSSID, pmksa->bssid, ETH_ALEN); 2068 2068 memcpy(&pmkid.pmkid[0].PMKID, pmksa->pmkid, WPA2_PMKID_LEN); 2069 2069 2070 - WL_DBG(("del_pmksa,IW_PMKSA_REMOVE - PMKID: %pM =\n", 2071 - &pmkid.pmkid[0].BSSID)); 2070 + WL_DBG("del_pmksa,IW_PMKSA_REMOVE - PMKID: %pM =\n", 2071 + &pmkid.pmkid[0].BSSID); 2072 2072 for (i = 0; i < WPA2_PMKID_LEN; i++) { 2073 - WL_DBG(("%02x\n", pmkid.pmkid[0].PMKID[i])); 2073 + WL_DBG("%02x\n", pmkid.pmkid[0].PMKID[i]); 2074 2074 } 2075 2075 2076 2076 for (i = 0; i < wl->pmk_list->pmkids.npmkid; i++) ··· 2163 2163 2164 2164 wdev = kzalloc(sizeof(*wdev), GFP_KERNEL); 2165 2165 if (unlikely(!wdev)) { 2166 - WL_ERR(("Could not allocate wireless device\n")); 2166 + WL_ERR("Could not allocate wireless device\n"); 2167 2167 return ERR_PTR(-ENOMEM); 2168 2168 } 2169 2169 wdev->wiphy = 2170 2170 wiphy_new(&wl_cfg80211_ops, sizeof(struct wl_priv) + sizeof_iface); 2171 2171 if (unlikely(!wdev->wiphy)) { 2172 - WL_ERR(("Couldn not allocate wiphy device\n")); 2172 + WL_ERR("Couldn not allocate wiphy device\n"); 2173 2173 err = -ENOMEM; 2174 2174 goto wiphy_new_out; 2175 2175 } ··· 2199 2199 #endif /* !WL_POWERSAVE_DISABLED */ 2200 2200 err = wiphy_register(wdev->wiphy); 2201 2201 if (unlikely(err < 0)) { 2202 - WL_ERR(("Couldn not register wiphy device (%d)\n", err)); 2202 + WL_ERR("Couldn not register wiphy device (%d)\n", err); 2203 2203 goto wiphy_register_out; 2204 2204 } 2205 2205 return wdev; ··· 2218 2218 struct wireless_dev *wdev = wl_to_wdev(wl); 2219 2219 2220 2220 if (unlikely(!wdev)) { 2221 - WL_ERR(("wdev is invalid\n")); 2221 + WL_ERR("wdev is invalid\n"); 2222 2222 return; 2223 2223 } 2224 2224 wiphy_unregister(wdev->wiphy); ··· 2236 2236 2237 2237 bss_list = wl->bss_list; 2238 2238 if (unlikely(bss_list->version != WL_BSS_INFO_VERSION)) { 2239 - WL_ERR(("Version %d != WL_BSS_INFO_VERSION\n", 2240 - bss_list->version)); 2239 + WL_ERR("Version %d != WL_BSS_INFO_VERSION\n", 2240 + bss_list->version); 2241 2241 return -EOPNOTSUPP; 2242 2242 } 2243 - WL_DBG(("scanned AP count (%d)\n", bss_list->count)); 2243 + WL_DBG("scanned AP count (%d)\n", bss_list->count); 2244 2244 bi = next_bss(bss_list, bi); 2245 2245 for_each_bss(bss_list, bi, i) { 2246 2246 err = wl_inform_single_bss(wl, bi); ··· 2265 2265 s32 err = 0; 2266 2266 2267 2267 if (unlikely(dtoh32(bi->length) > WL_BSS_INFO_MAX)) { 2268 - WL_DBG(("Beacon is larger than buffer. Discarding\n")); 2268 + WL_DBG("Beacon is larger than buffer. Discarding\n"); 2269 2269 return err; 2270 2270 } 2271 2271 notif_bss_info = 2272 2272 kzalloc(sizeof(*notif_bss_info) + sizeof(*mgmt) - sizeof(u8) + 2273 2273 WL_BSS_INFO_MAX, GFP_KERNEL); 2274 2274 if (unlikely(!notif_bss_info)) { 2275 - WL_ERR(("notif_bss_info alloc failed\n")); 2275 + WL_ERR("notif_bss_info alloc failed\n"); 2276 2276 return -ENOMEM; 2277 2277 } 2278 2278 mgmt = (struct ieee80211_mgmt *)notif_bss_info->frame_buf; ··· 2316 2316 freq = ieee80211_channel_to_frequency(notif_bss_info->channel); 2317 2317 channel = ieee80211_get_channel(wiphy, freq); 2318 2318 2319 - WL_DBG(("SSID : \"%s\", rssi %d, channel %d, capability : 0x04%x, bssid %pM\n", 2320 - bi->SSID, 2321 - notif_bss_info->rssi, notif_bss_info->channel, 2322 - mgmt->u.beacon.capab_info, &bi->BSSID)); 2319 + WL_DBG("SSID : \"%s\", rssi %d, channel %d, capability : 0x04%x, bssid %pM\n", 2320 + bi->SSID, 2321 + notif_bss_info->rssi, notif_bss_info->channel, 2322 + mgmt->u.beacon.capab_info, &bi->BSSID); 2323 2323 2324 2324 signal = notif_bss_info->rssi * 100; 2325 2325 if (unlikely(!cfg80211_inform_bss_frame(wiphy, channel, mgmt, 2326 2326 le16_to_cpu 2327 2327 (notif_bss_info->frame_len), 2328 2328 signal, GFP_KERNEL))) { 2329 - WL_ERR(("cfg80211_inform_bss_frame error\n")); 2329 + WL_ERR("cfg80211_inform_bss_frame error\n"); 2330 2330 kfree(notif_bss_info); 2331 2331 return -EINVAL; 2332 2332 } ··· 2394 2394 if (wl_is_ibssmode(wl)) { 2395 2395 cfg80211_ibss_joined(ndev, (s8 *)&e->addr, 2396 2396 GFP_KERNEL); 2397 - WL_DBG(("joined in IBSS network\n")); 2397 + WL_DBG("joined in IBSS network\n"); 2398 2398 } else { 2399 2399 wl_bss_connect_done(wl, ndev, e, data, true); 2400 - WL_DBG(("joined in BSS network \"%s\"\n", 2401 - ((struct wlc_ssid *) 2402 - wl_read_prof(wl, WL_PROF_SSID))->SSID)); 2400 + WL_DBG("joined in BSS network \"%s\"\n", 2401 + ((struct wlc_ssid *) 2402 + wl_read_prof(wl, WL_PROF_SSID))->SSID); 2403 2403 } 2404 2404 act = true; 2405 2405 wl_update_prof(wl, e, &act, WL_PROF_ACT); ··· 2454 2454 err = wl_dev_ioctl(dev, WLC_GET_VAR, (void *)wl->ioctl_buf, 2455 2455 WL_IOCTL_LEN_MAX); 2456 2456 if (unlikely(err)) { 2457 - WL_ERR(("error (%d)\n", err)); 2457 + WL_ERR("error (%d)\n", err); 2458 2458 return err; 2459 2459 } 2460 2460 memcpy(buf, wl->ioctl_buf, buf_len); ··· 2474 2474 err = wl_dev_bufvar_get(ndev, "assoc_info", wl->extra_buf, 2475 2475 WL_ASSOC_INFO_MAX); 2476 2476 if (unlikely(err)) { 2477 - WL_ERR(("could not get assoc info (%d)\n", err)); 2477 + WL_ERR("could not get assoc info (%d)\n", err); 2478 2478 return err; 2479 2479 } 2480 2480 assoc_info = (struct wl_assoc_ielen *)wl->extra_buf; ··· 2484 2484 err = wl_dev_bufvar_get(ndev, "assoc_req_ies", wl->extra_buf, 2485 2485 WL_ASSOC_INFO_MAX); 2486 2486 if (unlikely(err)) { 2487 - WL_ERR(("could not get assoc req (%d)\n", err)); 2487 + WL_ERR("could not get assoc req (%d)\n", err); 2488 2488 return err; 2489 2489 } 2490 2490 conn_info->req_ie_len = req_len; ··· 2498 2498 err = wl_dev_bufvar_get(ndev, "assoc_resp_ies", wl->extra_buf, 2499 2499 WL_ASSOC_INFO_MAX); 2500 2500 if (unlikely(err)) { 2501 - WL_ERR(("could not get assoc resp (%d)\n", err)); 2501 + WL_ERR("could not get assoc resp (%d)\n", err); 2502 2502 return err; 2503 2503 } 2504 2504 conn_info->resp_ie_len = resp_len; ··· 2508 2508 conn_info->resp_ie_len = 0; 2509 2509 conn_info->resp_ie = NULL; 2510 2510 } 2511 - WL_DBG(("req len (%d) resp len (%d)\n", conn_info->req_ie_len, 2512 - conn_info->resp_ie_len)); 2511 + WL_DBG("req len (%d) resp len (%d)\n", 2512 + conn_info->req_ie_len, conn_info->resp_ie_len); 2513 2513 2514 2514 return err; 2515 2515 } ··· 2542 2542 join_params->params.chanspec_num = 2543 2543 htod32(join_params->params.chanspec_num); 2544 2544 2545 - WL_DBG(("join_params->params.chanspec_list[0]= %#X, channel %d, chanspec %#X\n", 2546 - join_params->params.chanspec_list[0], ch, chanspec)); 2545 + WL_DBG("join_params->params.chanspec_list[0]= %#X, channel %d, chanspec %#X\n", 2546 + join_params->params.chanspec_list[0], ch, chanspec); 2547 2547 } 2548 2548 } 2549 2549 ··· 2570 2570 2571 2571 rtnl_lock(); 2572 2572 if (unlikely(!bss)) { 2573 - WL_DBG(("Could not find the AP\n")); 2573 + WL_DBG("Could not find the AP\n"); 2574 2574 *(u32 *) wl->extra_buf = htod32(WL_EXTRA_BUF_MAX); 2575 2575 err = wl_dev_ioctl(wl_to_ndev(wl), WLC_GET_BSS_INFO, 2576 2576 wl->extra_buf, WL_EXTRA_BUF_MAX); 2577 2577 if (unlikely(err)) { 2578 - WL_ERR(("Could not get bss info %d\n", err)); 2578 + WL_ERR("Could not get bss info %d\n", err); 2579 2579 goto update_bss_info_out; 2580 2580 } 2581 2581 bi = (struct wl_bss_info *)(wl->extra_buf + 4); ··· 2591 2591 ie_len = bi->ie_length; 2592 2592 beacon_interval = cpu_to_le16(bi->beacon_period); 2593 2593 } else { 2594 - WL_DBG(("Found the AP in the list - BSSID %pM\n", bss->bssid)); 2594 + WL_DBG("Found the AP in the list - BSSID %pM\n", bss->bssid); 2595 2595 ie = bss->information_elements; 2596 2596 ie_len = bss->len_information_elements; 2597 2597 beacon_interval = bss->beacon_interval; ··· 2610 2610 err = wl_dev_ioctl(wl_to_ndev(wl), WLC_GET_DTIMPRD, 2611 2611 &dtim_period, sizeof(dtim_period)); 2612 2612 if (unlikely(err)) { 2613 - WL_ERR(("WLC_GET_DTIMPRD error (%d)\n", err)); 2613 + WL_ERR("WLC_GET_DTIMPRD error (%d)\n", err); 2614 2614 goto update_bss_info_out; 2615 2615 } 2616 2616 } ··· 2637 2637 (u8 *)&wl->bssid, 2638 2638 conn_info->req_ie, conn_info->req_ie_len, 2639 2639 conn_info->resp_ie, conn_info->resp_ie_len, GFP_KERNEL); 2640 - WL_DBG(("Report roaming result\n")); 2640 + WL_DBG("Report roaming result\n"); 2641 2641 2642 2642 set_bit(WL_STATUS_CONNECTED, &wl->status); 2643 2643 ··· 2663 2663 conn_info->resp_ie_len, 2664 2664 completed ? WLAN_STATUS_SUCCESS : WLAN_STATUS_AUTH_TIMEOUT, 2665 2665 GFP_KERNEL); 2666 - WL_DBG(("Report connect result - connection %s\n", 2667 - completed ? "succeeded" : "failed")); 2666 + WL_DBG("Report connect result - connection %s\n", 2667 + completed ? "succeeded" : "failed"); 2668 2668 } else { 2669 2669 cfg80211_roamed(ndev, 2670 2670 (u8 *)&wl->bssid, 2671 2671 conn_info->req_ie, conn_info->req_ie_len, 2672 2672 conn_info->resp_ie, conn_info->resp_ie_len, 2673 2673 GFP_KERNEL); 2674 - WL_DBG(("Report roaming result\n")); 2674 + WL_DBG("Report roaming result\n"); 2675 2675 } 2676 2676 set_bit(WL_STATUS_CONNECTED, &wl->status); 2677 2677 ··· 2711 2711 return wl_wakeup_iscan(wl_to_iscan(wl)); 2712 2712 2713 2713 if (unlikely(!test_and_clear_bit(WL_STATUS_SCANNING, &wl->status))) { 2714 - WL_ERR(("Scan complete while device not scanning\n")); 2714 + WL_ERR("Scan complete while device not scanning\n"); 2715 2715 return -EINVAL; 2716 2716 } 2717 2717 if (unlikely(!wl->scan_request)) { ··· 2720 2720 err = wl_dev_ioctl(ndev, WLC_GET_CHANNEL, &channel_inform, 2721 2721 sizeof(channel_inform)); 2722 2722 if (unlikely(err)) { 2723 - WL_ERR(("scan busy (%d)\n", err)); 2723 + WL_ERR("scan busy (%d)\n", err); 2724 2724 goto scan_done_out; 2725 2725 } 2726 2726 channel_inform.scan_channel = dtoh32(channel_inform.scan_channel); 2727 2727 if (unlikely(channel_inform.scan_channel)) { 2728 2728 2729 - WL_DBG(("channel_inform.scan_channel (%d)\n", 2730 - channel_inform.scan_channel)); 2729 + WL_DBG("channel_inform.scan_channel (%d)\n", 2730 + channel_inform.scan_channel); 2731 2731 } 2732 2732 wl->bss_list = wl->scan_results; 2733 2733 bss_list = wl->bss_list; ··· 2735 2735 bss_list->buflen = htod32(len); 2736 2736 err = wl_dev_ioctl(ndev, WLC_SCAN_RESULTS, bss_list, len); 2737 2737 if (unlikely(err)) { 2738 - WL_ERR(("%s Scan_results error (%d)\n", ndev->name, err)); 2738 + WL_ERR("%s Scan_results error (%d)\n", ndev->name, err); 2739 2739 err = -EINVAL; 2740 2740 goto scan_done_out; 2741 2741 } ··· 2791 2791 { 2792 2792 wl->scan_results = kzalloc(WL_SCAN_BUF_MAX, GFP_KERNEL); 2793 2793 if (unlikely(!wl->scan_results)) { 2794 - WL_ERR(("Scan results alloc failed\n")); 2794 + WL_ERR("Scan results alloc failed\n"); 2795 2795 goto init_priv_mem_out; 2796 2796 } 2797 2797 wl->conf = kzalloc(sizeof(*wl->conf), GFP_KERNEL); 2798 2798 if (unlikely(!wl->conf)) { 2799 - WL_ERR(("wl_conf alloc failed\n")); 2799 + WL_ERR("wl_conf alloc failed\n"); 2800 2800 goto init_priv_mem_out; 2801 2801 } 2802 2802 wl->profile = kzalloc(sizeof(*wl->profile), GFP_KERNEL); 2803 2803 if (unlikely(!wl->profile)) { 2804 - WL_ERR(("wl_profile alloc failed\n")); 2804 + WL_ERR("wl_profile alloc failed\n"); 2805 2805 goto init_priv_mem_out; 2806 2806 } 2807 2807 wl->bss_info = kzalloc(WL_BSS_INFO_MAX, GFP_KERNEL); 2808 2808 if (unlikely(!wl->bss_info)) { 2809 - WL_ERR(("Bss information alloc failed\n")); 2809 + WL_ERR("Bss information alloc failed\n"); 2810 2810 goto init_priv_mem_out; 2811 2811 } 2812 2812 wl->scan_req_int = kzalloc(sizeof(*wl->scan_req_int), GFP_KERNEL); 2813 2813 if (unlikely(!wl->scan_req_int)) { 2814 - WL_ERR(("Scan req alloc failed\n")); 2814 + WL_ERR("Scan req alloc failed\n"); 2815 2815 goto init_priv_mem_out; 2816 2816 } 2817 2817 wl->ioctl_buf = kzalloc(WL_IOCTL_LEN_MAX, GFP_KERNEL); 2818 2818 if (unlikely(!wl->ioctl_buf)) { 2819 - WL_ERR(("Ioctl buf alloc failed\n")); 2819 + WL_ERR("Ioctl buf alloc failed\n"); 2820 2820 goto init_priv_mem_out; 2821 2821 } 2822 2822 wl->extra_buf = kzalloc(WL_EXTRA_BUF_MAX, GFP_KERNEL); 2823 2823 if (unlikely(!wl->extra_buf)) { 2824 - WL_ERR(("Extra buf alloc failed\n")); 2824 + WL_ERR("Extra buf alloc failed\n"); 2825 2825 goto init_priv_mem_out; 2826 2826 } 2827 2827 wl->iscan = kzalloc(sizeof(*wl->iscan), GFP_KERNEL); 2828 2828 if (unlikely(!wl->iscan)) { 2829 - WL_ERR(("Iscan buf alloc failed\n")); 2829 + WL_ERR("Iscan buf alloc failed\n"); 2830 2830 goto init_priv_mem_out; 2831 2831 } 2832 2832 wl->fw = kzalloc(sizeof(*wl->fw), GFP_KERNEL); 2833 2833 if (unlikely(!wl->fw)) { 2834 - WL_ERR(("fw object alloc failed\n")); 2834 + WL_ERR("fw object alloc failed\n"); 2835 2835 goto init_priv_mem_out; 2836 2836 } 2837 2837 wl->pmk_list = kzalloc(sizeof(*wl->pmk_list), GFP_KERNEL); 2838 2838 if (unlikely(!wl->pmk_list)) { 2839 - WL_ERR(("pmk list alloc failed\n")); 2839 + WL_ERR("pmk list alloc failed\n"); 2840 2840 goto init_priv_mem_out; 2841 2841 } 2842 2842 ··· 2878 2878 wl->event_tsk = kthread_run(wl_event_handler, wl, "wl_event_handler"); 2879 2879 if (IS_ERR(wl->event_tsk)) { 2880 2880 wl->event_tsk = NULL; 2881 - WL_ERR(("failed to create event thread\n")); 2881 + WL_ERR("failed to create event thread\n"); 2882 2882 return -ENOMEM; 2883 2883 } 2884 2884 return 0; ··· 2911 2911 struct net_device *ndev = wl_to_ndev(wl); 2912 2912 2913 2913 if (unlikely(!test_and_clear_bit(WL_STATUS_SCANNING, &wl->status))) { 2914 - WL_ERR(("Scan complete while device not scanning\n")); 2914 + WL_ERR("Scan complete while device not scanning\n"); 2915 2915 return; 2916 2916 } 2917 2917 if (likely(wl->scan_request)) { ··· 2925 2925 static s32 wl_wakeup_iscan(struct wl_iscan_ctrl *iscan) 2926 2926 { 2927 2927 if (likely(iscan->state != WL_ISCAN_STATE_IDLE)) { 2928 - WL_DBG(("wake up iscan\n")); 2928 + WL_DBG("wake up iscan\n"); 2929 2929 up(&iscan->sync); 2930 2930 return 0; 2931 2931 } ··· 2955 2955 WL_ISCAN_RESULTS_FIXED_SIZE, iscan->scan_buf, 2956 2956 WL_ISCAN_BUF_MAX); 2957 2957 if (unlikely(err)) { 2958 - WL_ERR(("error (%d)\n", err)); 2958 + WL_ERR("error (%d)\n", err); 2959 2959 return err; 2960 2960 } 2961 2961 results->buflen = dtoh32(results->buflen); 2962 2962 results->version = dtoh32(results->version); 2963 2963 results->count = dtoh32(results->count); 2964 - WL_DBG(("results->count = %d\n", results->count)); 2965 - WL_DBG(("results->buflen = %d\n", results->buflen)); 2964 + WL_DBG("results->count = %d\n", results->count); 2965 + WL_DBG("results->buflen = %d\n", results->buflen); 2966 2966 *status = dtoh32(list_buf->status); 2967 2967 *bss_list = results; 2968 2968 ··· 3047 3047 err = wl_get_iscan_results(iscan, &status, &wl->bss_list); 3048 3048 if (unlikely(err)) { 3049 3049 status = WL_SCAN_RESULTS_ABORTED; 3050 - WL_ERR(("Abort iscan\n")); 3050 + WL_ERR("Abort iscan\n"); 3051 3051 } 3052 3052 rtnl_unlock(); 3053 3053 el->handler[status] (wl); ··· 3056 3056 del_timer_sync(&iscan->timer); 3057 3057 iscan->timer_on = 0; 3058 3058 } 3059 - WL_DBG(("%s was terminated\n", __func__)); 3059 + WL_DBG("%s was terminated\n", __func__); 3060 3060 3061 3061 return 0; 3062 3062 } ··· 3067 3067 3068 3068 if (iscan) { 3069 3069 iscan->timer_on = 0; 3070 - WL_DBG(("timer expired\n")); 3070 + WL_DBG("timer expired\n"); 3071 3071 wl_wakeup_iscan(iscan); 3072 3072 } 3073 3073 } ··· 3082 3082 sema_init(&iscan->sync, 0); 3083 3083 iscan->tsk = kthread_run(wl_iscan_thread, iscan, "wl_iscan"); 3084 3084 if (IS_ERR(iscan->tsk)) { 3085 - WL_ERR(("Could not create iscan thread\n")); 3085 + WL_ERR("Could not create iscan thread\n"); 3086 3086 iscan->tsk = NULL; 3087 3087 return -ENOMEM; 3088 3088 } ··· 3117 3117 sema_init(&iscan->sync, 0); 3118 3118 iscan->tsk = kthread_run(wl_iscan_thread, iscan, "wl_iscan"); 3119 3119 if (IS_ERR(iscan->tsk)) { 3120 - WL_ERR(("Could not create iscan thread\n")); 3120 + WL_ERR("Could not create iscan thread\n"); 3121 3121 iscan->tsk = NULL; 3122 3122 return -ENOMEM; 3123 3123 } ··· 3186 3186 s32 err = 0; 3187 3187 3188 3188 if (unlikely(!ndev)) { 3189 - WL_ERR(("ndev is invaild\n")); 3189 + WL_ERR("ndev is invalid\n"); 3190 3190 return -ENODEV; 3191 3191 } 3192 3192 wl_cfg80211_dev = kzalloc(sizeof(struct wl_dev), GFP_KERNEL); 3193 3193 if (unlikely(!wl_cfg80211_dev)) { 3194 - WL_ERR(("wl_cfg80211_dev is invalid\n")); 3194 + WL_ERR("wl_cfg80211_dev is invalid\n"); 3195 3195 return -ENOMEM; 3196 3196 } 3197 - WL_DBG(("func %p\n", wl_cfg80211_get_sdio_func())); 3197 + WL_DBG("func %p\n", wl_cfg80211_get_sdio_func()); 3198 3198 wdev = wl_alloc_wdev(sizeof(struct wl_iface), &wl_cfg80211_get_sdio_func()->dev); 3199 3199 if (IS_ERR(wdev)) 3200 3200 return -ENOMEM; ··· 3210 3210 wdev->netdev = ndev; 3211 3211 err = wl_init_priv(wl); 3212 3212 if (unlikely(err)) { 3213 - WL_ERR(("Failed to init iwm_priv (%d)\n", err)); 3213 + WL_ERR("Failed to init iwm_priv (%d)\n", err); 3214 3214 goto cfg80211_attach_out; 3215 3215 } 3216 3216 wl_set_drvdata(wl_cfg80211_dev, ci); ··· 3255 3255 break; 3256 3256 e = wl_deq_event(wl); 3257 3257 if (unlikely(!e)) { 3258 - WL_ERR(("eqeue empty..\n")); 3258 + WL_ERR("event queue empty...\n"); 3259 3259 BUG(); 3260 3260 } 3261 - WL_DBG(("event type (%d)\n", e->etype)); 3261 + WL_DBG("event type (%d)\n", e->etype); 3262 3262 if (wl->el.handler[e->etype]) { 3263 3263 wl->el.handler[e->etype] (wl, wl_to_ndev(wl), &e->emsg, 3264 3264 e->edata); 3265 3265 } else { 3266 - WL_DBG(("Unknown Event (%d): ignoring\n", e->etype)); 3266 + WL_DBG("Unknown Event (%d): ignoring\n", e->etype); 3267 3267 } 3268 3268 wl_put_event(e); 3269 3269 } 3270 - WL_DBG(("%s was terminated\n", __func__)); 3270 + WL_DBG("%s was terminated\n", __func__); 3271 3271 return 0; 3272 3272 } 3273 3273 ··· 3280 3280 s8 *estr = (event_type <= sizeof(wl_dbg_estr) / WL_DBG_ESTR_MAX - 1) ? 3281 3281 wl_dbg_estr[event_type] : (s8 *) "Unknown"; 3282 3282 #endif /* (WL_DBG_LEVEL > 0) */ 3283 - WL_DBG(("event_type (%d):" "WLC_E_" "%s\n", event_type, estr)); 3283 + WL_DBG("event_type (%d):" "WLC_E_" "%s\n", event_type, estr); 3284 3284 if (likely(!wl_enq_event(wl, event_type, e, data))) 3285 3285 wl_wakeup_event(wl); 3286 3286 } ··· 3335 3335 3336 3336 e = kzalloc(sizeof(struct wl_event_q), GFP_KERNEL); 3337 3337 if (unlikely(!e)) { 3338 - WL_ERR(("event alloc failed\n")); 3338 + WL_ERR("event alloc failed\n"); 3339 3339 return -ENOMEM; 3340 3340 } 3341 3341 ··· 3379 3379 switch (iftype) { 3380 3380 case NL80211_IFTYPE_MONITOR: 3381 3381 case NL80211_IFTYPE_WDS: 3382 - WL_ERR(("type (%d) : currently we do not support this mode\n", 3383 - iftype)); 3382 + WL_ERR("type (%d) : currently we do not support this mode\n", 3383 + iftype); 3384 3384 err = -EINVAL; 3385 3385 return err; 3386 3386 case NL80211_IFTYPE_ADHOC: ··· 3390 3390 break; 3391 3391 default: 3392 3392 err = -EINVAL; 3393 - WL_ERR(("invalid type (%d)\n", iftype)); 3393 + WL_ERR("invalid type (%d)\n", iftype); 3394 3394 return err; 3395 3395 } 3396 3396 infra = htod32(infra); 3397 3397 ap = htod32(ap); 3398 - WL_DBG(("%s ap (%d), infra (%d)\n", ndev->name, ap, infra)); 3398 + WL_DBG("%s ap (%d), infra (%d)\n", ndev->name, ap, infra); 3399 3399 err = wl_dev_ioctl(ndev, WLC_SET_INFRA, &infra, sizeof(infra)); 3400 3400 if (unlikely(err)) { 3401 - WL_ERR(("WLC_SET_INFRA error (%d)\n", err)); 3401 + WL_ERR("WLC_SET_INFRA error (%d)\n", err); 3402 3402 return err; 3403 3403 } 3404 3404 err = wl_dev_ioctl(ndev, WLC_SET_AP, &ap, sizeof(ap)); 3405 3405 if (unlikely(err)) { 3406 - WL_ERR(("WLC_SET_AP error (%d)\n", err)); 3406 + WL_ERR("WLC_SET_AP error (%d)\n", err); 3407 3407 return err; 3408 3408 } 3409 3409 ··· 3425 3425 3426 3426 err = wl_dev_ioctl(ndev, WLC_UP, &up, sizeof(up)); 3427 3427 if (unlikely(err)) { 3428 - WL_ERR(("WLC_UP error (%d)\n", err)); 3428 + WL_ERR("WLC_UP error (%d)\n", err); 3429 3429 } 3430 3430 return err; 3431 3431 } ··· 3436 3436 3437 3437 err = wl_dev_ioctl(ndev, WLC_SET_PM, &power_mode, sizeof(power_mode)); 3438 3438 if (unlikely(err)) { 3439 - WL_ERR(("WLC_SET_PM error (%d)\n", err)); 3439 + WL_ERR("WLC_SET_PM error (%d)\n", err); 3440 3440 } 3441 3441 return err; 3442 3442 } ··· 3453 3453 sizeof(iovbuf)); 3454 3454 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3455 3455 if (unlikely(err)) { 3456 - WL_ERR(("txglomalign error (%d)\n", err)); 3456 + WL_ERR("txglomalign error (%d)\n", err); 3457 3457 goto dongle_glom_out; 3458 3458 } 3459 3459 /* disable glom option per default */ 3460 3460 bcm_mkiovar("bus:txglom", (char *)&glom, 4, iovbuf, sizeof(iovbuf)); 3461 3461 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3462 3462 if (unlikely(err)) { 3463 - WL_ERR(("txglom error (%d)\n", err)); 3463 + WL_ERR("txglom error (%d)\n", err); 3464 3464 goto dongle_glom_out; 3465 3465 } 3466 3466 dongle_glom_out: ··· 3481 3481 sizeof(iovbuf)); 3482 3482 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3483 3483 if (unlikely(err)) { 3484 - WL_ERR(("bcn_timeout error (%d)\n", err)); 3484 + WL_ERR("bcn_timeout error (%d)\n", err); 3485 3485 goto dongle_rom_out; 3486 3486 } 3487 3487 } ··· 3490 3490 bcm_mkiovar("roam_off", (char *)&roamvar, 4, iovbuf, sizeof(iovbuf)); 3491 3491 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3492 3492 if (unlikely(err)) { 3493 - WL_ERR(("roam_off error (%d)\n", err)); 3493 + WL_ERR("roam_off error (%d)\n", err); 3494 3494 goto dongle_rom_out; 3495 3495 } 3496 3496 dongle_rom_out: ··· 3510 3510 sizeof(iovbuf)); 3511 3511 err = wl_dev_ioctl(ndev, WLC_GET_VAR, iovbuf, sizeof(iovbuf)); 3512 3512 if (unlikely(err)) { 3513 - WL_ERR(("Get event_msgs error (%d)\n", err)); 3513 + WL_ERR("Get event_msgs error (%d)\n", err); 3514 3514 goto dongle_eventmsg_out; 3515 3515 } 3516 3516 memcpy(eventmask, iovbuf, WL_EVENTING_MASK_LEN); ··· 3538 3538 sizeof(iovbuf)); 3539 3539 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3540 3540 if (unlikely(err)) { 3541 - WL_ERR(("Set event_msgs error (%d)\n", err)); 3541 + WL_ERR("Set event_msgs error (%d)\n", err); 3542 3542 goto dongle_eventmsg_out; 3543 3543 } 3544 3544 ··· 3556 3556 sizeof(scan_assoc_time)); 3557 3557 if (err) { 3558 3558 if (err == -EOPNOTSUPP) { 3559 - WL_INFO(("Scan assoc time is not supported\n")); 3559 + WL_INFO("Scan assoc time is not supported\n"); 3560 3560 } else { 3561 - WL_ERR(("Scan assoc time error (%d)\n", err)); 3561 + WL_ERR("Scan assoc time error (%d)\n", err); 3562 3562 } 3563 3563 goto dongle_scantime_out; 3564 3564 } ··· 3566 3566 sizeof(scan_unassoc_time)); 3567 3567 if (err) { 3568 3568 if (err == -EOPNOTSUPP) { 3569 - WL_INFO(("Scan unassoc time is not supported\n")); 3569 + WL_INFO("Scan unassoc time is not supported\n"); 3570 3570 } else { 3571 - WL_ERR(("Scan unassoc time error (%d)\n", err)); 3571 + WL_ERR("Scan unassoc time error (%d)\n", err); 3572 3572 } 3573 3573 goto dongle_scantime_out; 3574 3574 } ··· 3589 3589 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3590 3590 if (err) { 3591 3591 if (err == -EOPNOTSUPP) 3592 - WL_INFO(("arpoe is not supported\n")); 3592 + WL_INFO("arpoe is not supported\n"); 3593 3593 else 3594 - WL_ERR(("arpoe error (%d)\n", err)); 3594 + WL_ERR("arpoe error (%d)\n", err); 3595 3595 3596 3596 goto dongle_offload_out; 3597 3597 } ··· 3599 3599 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3600 3600 if (err) { 3601 3601 if (err == -EOPNOTSUPP) 3602 - WL_INFO(("arp_ol is not supported\n")); 3602 + WL_INFO("arp_ol is not supported\n"); 3603 3603 else 3604 - WL_ERR(("arp_ol error (%d)\n", err)); 3604 + WL_ERR("arp_ol error (%d)\n", err); 3605 3605 3606 3606 goto dongle_offload_out; 3607 3607 } ··· 3614 3614 { 3615 3615 int i; 3616 3616 if (strncmp(src, "0x", 2) != 0 && strncmp(src, "0X", 2) != 0) { 3617 - WL_ERR(("Mask invalid format. Needs to start with 0x\n")); 3617 + WL_ERR("Mask invalid format. Needs to start with 0x\n"); 3618 3618 return -1; 3619 3619 } 3620 3620 src = src + 2; /* Skip past 0x */ 3621 3621 if (strlen(src) % 2 != 0) { 3622 - WL_ERR(("Mask invalid format. Needs to be of even length\n")); 3622 + WL_ERR("Mask invalid format. Needs to be of even length\n"); 3623 3623 return -1; 3624 3624 } 3625 3625 for (i = 0; *src != '\0'; i++) { ··· 3678 3678 mask_and_pattern[mask_size])); 3679 3679 3680 3680 if (mask_size != pattern_size) { 3681 - WL_ERR(("Mask and pattern not the same size\n")); 3681 + WL_ERR("Mask and pattern not the same size\n"); 3682 3682 err = -EINVAL; 3683 3683 goto dongle_filter_out; 3684 3684 } ··· 3698 3698 err = wl_dev_ioctl(ndev, WLC_SET_VAR, buf, buf_len); 3699 3699 if (err) { 3700 3700 if (err == -EOPNOTSUPP) { 3701 - WL_INFO(("filter not supported\n")); 3701 + WL_INFO("filter not supported\n"); 3702 3702 } else { 3703 - WL_ERR(("filter (%d)\n", err)); 3703 + WL_ERR("filter (%d)\n", err); 3704 3704 } 3705 3705 goto dongle_filter_out; 3706 3706 } ··· 3711 3711 err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); 3712 3712 if (err) { 3713 3713 if (err == -EOPNOTSUPP) { 3714 - WL_INFO(("filter_mode not supported\n")); 3714 + WL_INFO("filter_mode not supported\n"); 3715 3715 } else { 3716 - WL_ERR(("filter_mode (%d)\n", err)); 3716 + WL_ERR("filter_mode (%d)\n", err); 3717 3717 } 3718 3718 goto dongle_filter_out; 3719 3719 } ··· 3794 3794 err = wl_dev_ioctl(wl_to_ndev(wl), WLC_GET_PHYLIST, &phy_list, 3795 3795 sizeof(phy_list)); 3796 3796 if (unlikely(err)) { 3797 - WL_ERR(("error (%d)\n", err)); 3797 + WL_ERR("error (%d)\n", err); 3798 3798 return err; 3799 3799 } 3800 3800 3801 3801 phy = ((char *)&phy_list)[1]; 3802 - WL_DBG(("%c phy\n", phy)); 3802 + WL_DBG("%c phy\n", phy); 3803 3803 if (phy == 'n' || phy == 'a') { 3804 3804 wiphy = wl_to_wiphy(wl); 3805 3805 wiphy->bands[IEEE80211_BAND_5GHZ] = &__wl_band_5ghz_n; ··· 3905 3905 case WL_PROF_SSID: 3906 3906 return &wl->profile->ssid; 3907 3907 } 3908 - WL_ERR(("invalid item (%d)\n", item)); 3908 + WL_ERR("invalid item (%d)\n", item); 3909 3909 return NULL; 3910 3910 } 3911 3911 ··· 3943 3943 wl->profile->dtim_period = *(u8 *)data; 3944 3944 break; 3945 3945 default: 3946 - WL_ERR(("unsupported item (%d)\n", item)); 3946 + WL_ERR("unsupported item (%d)\n", item); 3947 3947 err = -EOPNOTSUPP; 3948 3948 break; 3949 3949 } ··· 3985 3985 s32 err = 0; 3986 3986 3987 3987 if (unlikely(ie->offset + l + 2 > WL_TLV_INFO_MAX)) { 3988 - WL_ERR(("ei crosses buffer boundary\n")); 3988 + WL_ERR("ei crosses buffer boundary\n"); 3989 3989 return -ENOSPC; 3990 3990 } 3991 3991 ie->buf[ie->offset] = t; ··· 4002 4002 s32 err = 0; 4003 4003 4004 4004 if (unlikely(ie->offset + ie_size > WL_TLV_INFO_MAX)) { 4005 - WL_ERR(("ei_stream crosses buffer boundary\n")); 4005 + WL_ERR("ei_stream crosses buffer boundary\n"); 4006 4006 return -ENOSPC; 4007 4007 } 4008 4008 memcpy(&ie->buf[ie->offset], ie_stream, ie_size); ··· 4017 4017 s32 err = 0; 4018 4018 4019 4019 if (unlikely(ie->offset > dst_size)) { 4020 - WL_ERR(("dst_size is not enough\n")); 4020 + WL_ERR("dst_size is not enough\n"); 4021 4021 return -ENOSPC; 4022 4022 } 4023 4023 memcpy(dst, &ie->buf[0], ie->offset); ··· 4117 4117 const struct firmware *fw_entry = NULL; 4118 4118 s32 err = 0; 4119 4119 4120 - WL_DBG(("file name : \"%s\"\n", file_name)); 4120 + WL_DBG("file name : \"%s\"\n", file_name); 4121 4121 wl = WL_PRIV_GET(); 4122 4122 4123 4123 if (!test_bit(WL_FW_LOADING_DONE, &wl->fw->status)) { 4124 4124 err = request_firmware(&wl->fw->fw_entry, file_name, 4125 4125 &wl_cfg80211_get_sdio_func()->dev); 4126 4126 if (unlikely(err)) { 4127 - WL_ERR(("Could not download fw (%d)\n", err)); 4127 + WL_ERR("Could not download fw (%d)\n", err); 4128 4128 goto req_fw_out; 4129 4129 } 4130 4130 set_bit(WL_FW_LOADING_DONE, &wl->fw->status); 4131 4131 fw_entry = wl->fw->fw_entry; 4132 4132 if (fw_entry) { 4133 - WL_DBG(("fw size (%zd), data (%p)\n", fw_entry->size, 4134 - fw_entry->data)); 4133 + WL_DBG("fw size (%zd), data (%p)\n", 4134 + fw_entry->size, fw_entry->data); 4135 4135 } 4136 4136 } else if (!test_bit(WL_NVRAM_LOADING_DONE, &wl->fw->status)) { 4137 4137 err = request_firmware(&wl->fw->fw_entry, file_name, 4138 4138 &wl_cfg80211_get_sdio_func()->dev); 4139 4139 if (unlikely(err)) { 4140 - WL_ERR(("Could not download nvram (%d)\n", err)); 4140 + WL_ERR("Could not download nvram (%d)\n", err); 4141 4141 goto req_fw_out; 4142 4142 } 4143 4143 set_bit(WL_NVRAM_LOADING_DONE, &wl->fw->status); 4144 4144 fw_entry = wl->fw->fw_entry; 4145 4145 if (fw_entry) { 4146 - WL_DBG(("nvram size (%zd), data (%p)\n", fw_entry->size, 4147 - fw_entry->data)); 4146 + WL_DBG("nvram size (%zd), data (%p)\n", 4147 + fw_entry->size, fw_entry->data); 4148 4148 } 4149 4149 } else { 4150 - WL_DBG(("Downloading already done. Nothing to do more\n")); 4150 + WL_DBG("Downloading already done. Nothing to do more\n"); 4151 4151 err = -EPERM; 4152 4152 } 4153 4153 ··· 4183 4183 4184 4184 err = wl_dev_intvar_set(ndev, "mpc", mpc); 4185 4185 if (unlikely(err)) { 4186 - WL_ERR(("fail to set mpc\n")); 4186 + WL_ERR("fail to set mpc\n"); 4187 4187 return; 4188 4188 } 4189 - WL_DBG(("MPC : %d\n", mpc)); 4189 + WL_DBG("MPC : %d\n", mpc); 4190 4190 } 4191 4191 4192 4192 static int wl_debugfs_add_netdev_params(struct wl_priv *wl)
+24 -22
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.h
··· 54 54 55 55 #define WL_DBG_LEVEL 1 /* 0 invalidates all debug messages. 56 56 default is 1 */ 57 - #define WL_ERR(args) \ 58 - do { \ 59 - if (wl_dbg_level & WL_DBG_ERR) { \ 60 - if (net_ratelimit()) { \ 61 - printk(KERN_ERR "ERROR @%s : ", __func__); \ 62 - printk args; \ 63 - } \ 64 - } \ 57 + #define WL_ERR(fmt, args...) \ 58 + do { \ 59 + if (wl_dbg_level & WL_DBG_ERR) { \ 60 + if (net_ratelimit()) { \ 61 + printk(KERN_ERR "ERROR @%s : " fmt, \ 62 + __func__, ##args); \ 63 + } \ 64 + } \ 65 65 } while (0) 66 - #define WL_INFO(args) \ 67 - do { \ 68 - if (wl_dbg_level & WL_DBG_INFO) { \ 69 - if (net_ratelimit()) { \ 70 - printk(KERN_ERR "INFO @%s : ", __func__); \ 71 - printk args; \ 72 - } \ 73 - } \ 66 + 67 + #define WL_INFO(fmt, args...) \ 68 + do { \ 69 + if (wl_dbg_level & WL_DBG_INFO) { \ 70 + if (net_ratelimit()) { \ 71 + printk(KERN_ERR "INFO @%s : " fmt, \ 72 + __func__, ##args); \ 73 + } \ 74 + } \ 74 75 } while (0) 76 + 75 77 #if (WL_DBG_LEVEL > 0) 76 - #define WL_DBG(args) \ 77 - do { \ 78 + #define WL_DBG(fmt, args...) \ 79 + do { \ 78 80 if (wl_dbg_level & WL_DBG_DBG) { \ 79 - printk(KERN_ERR "DEBUG @%s :", __func__); \ 80 - printk args; \ 81 - } \ 81 + printk(KERN_ERR "DEBUG @%s :" fmt, \ 82 + __func__, ##args); \ 83 + } \ 82 84 } while (0) 83 85 #else /* !(WL_DBG_LEVEL > 0) */ 84 - #define WL_DBG(args) 86 + #define WL_DBG(fmt, args...) noprintk(fmt, ##args) 85 87 #endif /* (WL_DBG_LEVEL > 0) */ 86 88 87 89 #define WL_SCAN_RETRY_MAX 3 /* used for ibss scan */
+234 -246
drivers/staging/brcm80211/brcmfmac/wl_iw.c
··· 39 39 #include <dngl_stats.h> 40 40 #include <dhd.h> 41 41 42 - #define WL_ERROR(x) printf x 43 - #define WL_TRACE(x) 44 - #define WL_ASSOC(x) 45 - #define WL_INFORM(x) 46 - #define WL_WSEC(x) 47 - #define WL_SCAN(x) 42 + #define WL_ERROR(fmt, args...) printk(fmt, ##args) 43 + #define WL_TRACE(fmt, args...) no_printk(fmt, ##args) 44 + #define WL_INFORM(fmt, args...) no_printk(fmt, ##args) 45 + #define WL_WSEC(fmt, args...) no_printk(fmt, ##args) 46 + #define WL_SCAN(fmt, args...) no_printk(fmt, ##args) 48 47 49 48 #include <wl_iw.h> 50 49 ··· 186 187 int ret = -EINVAL; 187 188 188 189 if (!dev) { 189 - WL_ERROR(("%s: dev is null\n", __func__)); 190 + WL_ERROR("%s: dev is null\n", __func__); 190 191 return ret; 191 192 } 192 193 193 - WL_INFORM(("\n%s, PID:%x: send Local IOCTL -> dhd: cmd:0x%x, buf:%p, " 194 - "len:%d ,\n", __func__, current->pid, cmd, arg, len)); 194 + WL_INFORM("\n%s, PID:%x: send Local IOCTL -> dhd: cmd:0x%x, buf:%p, len:%d\n", 195 + __func__, current->pid, cmd, arg, len); 195 196 196 197 if (g_onoff == G_WLAN_SET_ON) { 197 198 memset(&ioc, 0, sizeof(ioc)); ··· 204 205 205 206 ret = dev_open(dev); 206 207 if (ret) { 207 - WL_ERROR(("%s: Error dev_open: %d\n", __func__, ret)); 208 + WL_ERROR("%s: Error dev_open: %d\n", __func__, ret); 208 209 return ret; 209 210 } 210 211 ··· 213 214 ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); 214 215 set_fs(fs); 215 216 } else { 216 - WL_TRACE(("%s: call after driver stop : ignored\n", __func__)); 217 + WL_TRACE("%s: call after driver stop : ignored\n", __func__); 217 218 } 218 219 return ret; 219 220 } ··· 334 335 int error; 335 336 struct sockaddr bssid; 336 337 337 - WL_TRACE(("%s: SIOCSIWCOMMIT\n", dev->name)); 338 + WL_TRACE("%s: SIOCSIWCOMMIT\n", dev->name); 338 339 339 340 error = dev_wlc_ioctl(dev, WLC_GET_SSID, &ssid, sizeof(ssid)); 340 341 if (error) ··· 348 349 memset(&bssid, 0, sizeof(struct sockaddr)); 349 350 error = dev_wlc_ioctl(dev, WLC_REASSOC, &bssid, ETH_ALEN); 350 351 if (error) { 351 - WL_ERROR(("%s: WLC_REASSOC to %s failed\n", __func__, 352 - ssid.SSID)); 352 + WL_ERROR("%s: WLC_REASSOC to %s failed\n", 353 + __func__, ssid.SSID); 353 354 return error; 354 355 } 355 356 ··· 360 361 wl_iw_get_name(struct net_device *dev, 361 362 struct iw_request_info *info, char *cwrq, char *extra) 362 363 { 363 - WL_TRACE(("%s: SIOCGIWNAME\n", dev->name)); 364 + WL_TRACE("%s: SIOCGIWNAME\n", dev->name); 364 365 365 366 strcpy(cwrq, "IEEE 802.11-DS"); 366 367 ··· 374 375 int error, chan; 375 376 uint sf = 0; 376 377 377 - WL_TRACE(("\n %s %s: SIOCSIWFREQ\n", __func__, dev->name)); 378 + WL_TRACE("\n %s %s: SIOCSIWFREQ\n", __func__, dev->name); 378 379 379 380 if (fwrq->e == 0 && fwrq->m < MAXCHANNEL) { 380 381 chan = fwrq->m; ··· 409 410 channel_info_t ci; 410 411 int error; 411 412 412 - WL_TRACE(("%s: SIOCGIWFREQ\n", dev->name)); 413 + WL_TRACE("%s: SIOCGIWFREQ\n", dev->name); 413 414 414 415 error = dev_wlc_ioctl(dev, WLC_GET_CHANNEL, &ci, sizeof(ci)); 415 416 if (error) ··· 426 427 { 427 428 int infra = 0, ap = 0, error = 0; 428 429 429 - WL_TRACE(("%s: SIOCSIWMODE\n", dev->name)); 430 + WL_TRACE("%s: SIOCSIWMODE\n", dev->name); 430 431 431 432 switch (*uwrq) { 432 433 case IW_MODE_MASTER: ··· 461 462 { 462 463 int error, infra = 0, ap = 0; 463 464 464 - WL_TRACE(("%s: SIOCGIWMODE\n", dev->name)); 465 + WL_TRACE("%s: SIOCGIWMODE\n", dev->name); 465 466 466 467 error = dev_wlc_ioctl(dev, WLC_GET_INFRA, &infra, sizeof(infra)); 467 468 if (error) ··· 500 501 {30, 60, 90, 120, 180, 240, 270, 300} 501 502 }; 502 503 503 - WL_TRACE(("%s: SIOCGIWRANGE\n", dev->name)); 504 + WL_TRACE("%s: SIOCGIWRANGE\n", dev->name); 504 505 505 506 if (!extra) 506 507 return -EINVAL; 507 508 508 509 channels = kmalloc((MAXCHANNEL + 1) * 4, GFP_KERNEL); 509 510 if (!channels) { 510 - WL_ERROR(("Could not alloc channels\n")); 511 + WL_ERROR("Could not alloc channels\n"); 511 512 return -ENOMEM; 512 513 } 513 514 list = (wl_u32_list_t *) channels; ··· 683 684 struct sockaddr *addr = (struct sockaddr *)extra; 684 685 int i; 685 686 686 - WL_TRACE(("%s: SIOCSIWSPY\n", dev->name)); 687 + WL_TRACE("%s: SIOCSIWSPY\n", dev->name); 687 688 688 689 if (!extra) 689 690 return -EINVAL; ··· 705 706 struct iw_quality *qual = (struct iw_quality *)&addr[iw->spy_num]; 706 707 int i; 707 708 708 - WL_TRACE(("%s: SIOCGIWSPY\n", dev->name)); 709 + WL_TRACE("%s: SIOCGIWSPY\n", dev->name); 709 710 710 711 if (!extra) 711 712 return -EINVAL; ··· 750 751 join_params->params.chanspec_num = 751 752 htod32(join_params->params.chanspec_num); 752 753 753 - WL_TRACE(("%s join_params->params.chanspec_list[0]= %X\n", 754 - __func__, join_params->params.chanspec_list[0])); 754 + WL_TRACE("%s join_params->params.chanspec_list[0]= %X\n", 755 + __func__, join_params->params.chanspec_list[0]); 755 756 } 756 757 return 1; 757 758 } ··· 764 765 wl_join_params_t join_params; 765 766 int join_params_size; 766 767 767 - WL_TRACE(("%s: SIOCSIWAP\n", dev->name)); 768 + WL_TRACE("%s: SIOCSIWAP\n", dev->name); 768 769 769 770 if (awrq->sa_family != ARPHRD_ETHER) { 770 - WL_ERROR(("Invalid Header...sa_family\n")); 771 + WL_ERROR("Invalid Header...sa_family\n"); 771 772 return -EINVAL; 772 773 } 773 774 ··· 787 788 join_params.ssid.SSID_len = htod32(g_ssid.SSID_len); 788 789 memcpy(&join_params.params.bssid, awrq->sa_data, ETH_ALEN); 789 790 790 - WL_TRACE(("%s target_channel=%d\n", __func__, 791 - g_wl_iw_params.target_channel)); 791 + WL_TRACE("%s target_channel=%d\n", 792 + __func__, g_wl_iw_params.target_channel); 792 793 wl_iw_ch_to_chanspec(g_wl_iw_params.target_channel, &join_params, 793 794 &join_params_size); 794 795 795 796 error = dev_wlc_ioctl(dev, WLC_SET_SSID, &join_params, 796 797 join_params_size); 797 798 if (error) { 798 - WL_ERROR(("%s Invalid ioctl data=%d\n", __func__, error)); 799 + WL_ERROR("%s Invalid ioctl data=%d\n", __func__, error); 799 800 } 800 801 801 802 if (g_ssid.SSID_len) { 802 - WL_TRACE(("%s: join SSID=%s BSSID=%pM ch=%d\n", 803 - __func__, g_ssid.SSID, awrq->sa_data, 804 - g_wl_iw_params.target_channel)); 803 + WL_TRACE("%s: join SSID=%s BSSID=%pM ch=%d\n", 804 + __func__, g_ssid.SSID, awrq->sa_data, 805 + g_wl_iw_params.target_channel); 805 806 } 806 807 807 808 memset(&g_ssid, 0, sizeof(g_ssid)); ··· 812 813 wl_iw_get_wap(struct net_device *dev, 813 814 struct iw_request_info *info, struct sockaddr *awrq, char *extra) 814 815 { 815 - WL_TRACE(("%s: SIOCGIWAP\n", dev->name)); 816 + WL_TRACE("%s: SIOCGIWAP\n", dev->name); 816 817 817 818 awrq->sa_family = ARPHRD_ETHER; 818 819 memset(awrq->sa_data, 0, ETH_ALEN); ··· 831 832 scb_val_t scbval; 832 833 int error = -EINVAL; 833 834 834 - WL_TRACE(("%s: SIOCSIWMLME DISASSOC/DEAUTH\n", dev->name)); 835 + WL_TRACE("%s: SIOCSIWMLME DISASSOC/DEAUTH\n", dev->name); 835 836 836 837 mlme = (struct iw_mlme *)extra; 837 838 if (mlme == NULL) { 838 - WL_ERROR(("Invalid ioctl data.\n")); 839 + WL_ERROR("Invalid ioctl data\n"); 839 840 return error; 840 841 } 841 842 ··· 853 854 dev_wlc_ioctl(dev, WLC_SCB_DEAUTHENTICATE_FOR_REASON, 854 855 &scbval, sizeof(scb_val_t)); 855 856 } else { 856 - WL_ERROR(("Invalid ioctl data.\n")); 857 + WL_ERROR("Invalid ioctl data\n"); 857 858 return error; 858 859 } 859 860 ··· 874 875 int error, i; 875 876 uint buflen = dwrq->length; 876 877 877 - WL_TRACE(("%s: SIOCGIWAPLIST\n", dev->name)); 878 + WL_TRACE("%s: SIOCGIWAPLIST\n", dev->name); 878 879 879 880 if (!extra) 880 881 return -EINVAL; ··· 886 887 list->buflen = htod32(buflen); 887 888 error = dev_wlc_ioctl(dev, WLC_SCAN_RESULTS, list, buflen); 888 889 if (error) { 889 - WL_ERROR(("%d: Scan results error %d\n", __LINE__, error)); 890 + WL_ERROR("%d: Scan results error %d\n", __LINE__, error); 890 891 kfree(list); 891 892 return error; 892 893 } ··· 894 895 list->version = dtoh32(list->version); 895 896 list->count = dtoh32(list->count); 896 897 if (list->version != WL_BSS_INFO_VERSION) { 897 - WL_ERROR(("%s : list->version %d != WL_BSS_INFO_VERSION\n", 898 - __func__, list->version)); 898 + WL_ERROR("%s : list->version %d != WL_BSS_INFO_VERSION\n", 899 + __func__, list->version); 899 900 kfree(list); 900 901 return -EINVAL; 901 902 } ··· 952 953 wl_bss_info_t *bi = NULL; 953 954 int i; 954 955 955 - WL_TRACE(("%s: SIOCGIWAPLIST\n", dev->name)); 956 + WL_TRACE("%s: SIOCGIWAPLIST\n", dev->name); 956 957 957 958 if (!extra) 958 959 return -EINVAL; 959 960 960 961 if ((!iscan) || (!iscan->sysioc_tsk)) { 961 - WL_ERROR(("%s error\n", __func__)); 962 + WL_ERROR("%s error\n", __func__); 962 963 return 0; 963 964 } 964 965 ··· 966 967 while (buf) { 967 968 list = &((wl_iscan_results_t *) buf->iscan_buf)->results; 968 969 if (list->version != WL_BSS_INFO_VERSION) { 969 - WL_ERROR(("%s : list->version %d != " 970 - "WL_BSS_INFO_VERSION\n", 971 - __func__, list->version)); 970 + WL_ERROR("%s : list->version %d != WL_BSS_INFO_VERSION\n", 971 + __func__, list->version); 972 972 return -EINVAL; 973 973 } 974 974 ··· 1042 1044 iscan->iscan_ex_params_p->action = htod16(action); 1043 1045 iscan->iscan_ex_params_p->scan_duration = htod16(0); 1044 1046 1045 - WL_SCAN(("%s : nprobes=%d\n", __func__, 1046 - iscan->iscan_ex_params_p->params.nprobes)); 1047 - WL_SCAN(("active_time=%d\n", 1048 - iscan->iscan_ex_params_p->params.active_time)); 1049 - WL_SCAN(("passive_time=%d\n", 1050 - iscan->iscan_ex_params_p->params.passive_time)); 1051 - WL_SCAN(("home_time=%d\n", iscan->iscan_ex_params_p->params.home_time)); 1052 - WL_SCAN(("scan_type=%d\n", iscan->iscan_ex_params_p->params.scan_type)); 1053 - WL_SCAN(("bss_type=%d\n", iscan->iscan_ex_params_p->params.bss_type)); 1047 + WL_SCAN("%s : nprobes=%d\n", 1048 + __func__, iscan->iscan_ex_params_p->params.nprobes); 1049 + WL_SCAN("active_time=%d\n", 1050 + iscan->iscan_ex_params_p->params.active_time); 1051 + WL_SCAN("passive_time=%d\n", 1052 + iscan->iscan_ex_params_p->params.passive_time); 1053 + WL_SCAN("home_time=%d\n", iscan->iscan_ex_params_p->params.home_time); 1054 + WL_SCAN("scan_type=%d\n", iscan->iscan_ex_params_p->params.scan_type); 1055 + WL_SCAN("bss_type=%d\n", iscan->iscan_ex_params_p->params.bss_type); 1054 1056 1055 1057 (void)dev_iw_iovar_setbuf(iscan->dev, "iscan", iscan->iscan_ex_params_p, 1056 1058 iscan->iscan_ex_param_size, iscan->ioctlbuf, ··· 1065 1067 if (iscan) { 1066 1068 iscan->timer_on = 0; 1067 1069 if (iscan->iscan_state != ISCAN_STATE_IDLE) { 1068 - WL_TRACE(("timer trigger\n")); 1070 + WL_TRACE("timer trigger\n"); 1069 1071 up(&iscan->sysioc_sem); 1070 1072 } 1071 1073 } ··· 1100 1102 } else { 1101 1103 buf = kmalloc(sizeof(iscan_buf_t), GFP_KERNEL); 1102 1104 if (!buf) { 1103 - WL_ERROR(("%s can't alloc iscan_buf_t : going to abort " 1104 - "currect iscan\n", __func__)); 1105 + WL_ERROR("%s can't alloc iscan_buf_t : going to abort current iscan\n", 1106 + __func__); 1105 1107 MUTEX_UNLOCK_WL_SCAN_SET(); 1106 1108 return WL_SCAN_RESULTS_NO_MEM; 1107 1109 } ··· 1134 1136 results->buflen = dtoh32(results->buflen); 1135 1137 results->version = dtoh32(results->version); 1136 1138 results->count = dtoh32(results->count); 1137 - WL_TRACE(("results->count = %d\n", results->count)); 1138 - WL_TRACE(("results->buflen = %d\n", results->buflen)); 1139 + WL_TRACE("results->count = %d\n", results->count); 1140 + WL_TRACE("results->buflen = %d\n", results->buflen); 1139 1141 status = dtoh32(list_buf->status); 1140 1142 } else { 1141 - WL_ERROR(("%s returns error %d\n", __func__, res)); 1143 + WL_ERROR("%s returns error %d\n", __func__, res); 1142 1144 status = WL_SCAN_RESULTS_NO_MEM; 1143 1145 } 1144 1146 MUTEX_UNLOCK_WL_SCAN_SET(); ··· 1147 1149 1148 1150 static void wl_iw_force_specific_scan(iscan_info_t *iscan) 1149 1151 { 1150 - WL_TRACE(("%s force Specific SCAN for %s\n", __func__, 1151 - g_specific_ssid.SSID)); 1152 + WL_TRACE("%s force Specific SCAN for %s\n", 1153 + __func__, g_specific_ssid.SSID); 1152 1154 rtnl_lock(); 1153 1155 1154 1156 (void)dev_wlc_ioctl(iscan->dev, WLC_SCAN, &g_specific_ssid, ··· 1165 1167 memset(&wrqu, 0, sizeof(wrqu)); 1166 1168 1167 1169 wireless_send_event(iscan->dev, SIOCGIWSCAN, &wrqu, NULL); 1168 - WL_TRACE(("Send Event ISCAN complete\n")); 1170 + WL_TRACE("Send Event ISCAN complete\n"); 1169 1171 #endif 1170 1172 } 1171 1173 ··· 1189 1191 status = wl_iw_iscan_get(iscan); 1190 1192 rtnl_unlock(); 1191 1193 if (g_scan_specified_ssid && (iscan_pass_abort == true)) { 1192 - WL_TRACE(("%s Get results from specific scan " 1193 - "status = %d\n", __func__, status)); 1194 + WL_TRACE("%s Get results from specific scan status = %d\n", 1195 + __func__, status); 1194 1196 wl_iw_send_scan_complete(iscan); 1195 1197 iscan_pass_abort = false; 1196 1198 status = -1; ··· 1198 1200 1199 1201 switch (status) { 1200 1202 case WL_SCAN_RESULTS_PARTIAL: 1201 - WL_TRACE(("iscanresults incomplete\n")); 1203 + WL_TRACE("iscanresults incomplete\n"); 1202 1204 rtnl_lock(); 1203 1205 wl_iw_iscan(iscan, NULL, WL_SCAN_ACTION_CONTINUE); 1204 1206 rtnl_unlock(); ··· 1207 1209 iscan->timer_on = 1; 1208 1210 break; 1209 1211 case WL_SCAN_RESULTS_SUCCESS: 1210 - WL_TRACE(("iscanresults complete\n")); 1212 + WL_TRACE("iscanresults complete\n"); 1211 1213 iscan->iscan_state = ISCAN_STATE_IDLE; 1212 1214 wl_iw_send_scan_complete(iscan); 1213 1215 break; 1214 1216 case WL_SCAN_RESULTS_PENDING: 1215 - WL_TRACE(("iscanresults pending\n")); 1217 + WL_TRACE("iscanresults pending\n"); 1216 1218 mod_timer(&iscan->timer, 1217 1219 jiffies + iscan->timer_ms * HZ / 1000); 1218 1220 iscan->timer_on = 1; 1219 1221 break; 1220 1222 case WL_SCAN_RESULTS_ABORTED: 1221 - WL_TRACE(("iscanresults aborted\n")); 1223 + WL_TRACE("iscanresults aborted\n"); 1222 1224 iscan->iscan_state = ISCAN_STATE_IDLE; 1223 1225 if (g_scan_specified_ssid == 0) 1224 1226 wl_iw_send_scan_complete(iscan); ··· 1228 1230 } 1229 1231 break; 1230 1232 case WL_SCAN_RESULTS_NO_MEM: 1231 - WL_TRACE(("iscanresults can't alloc memory: skip\n")); 1233 + WL_TRACE("iscanresults can't alloc memory: skip\n"); 1232 1234 iscan->iscan_state = ISCAN_STATE_IDLE; 1233 1235 break; 1234 1236 default: 1235 - WL_TRACE(("iscanresults returned unknown status %d\n", 1236 - status)); 1237 + WL_TRACE("iscanresults returned unknown status %d\n", 1238 + status); 1237 1239 break; 1238 1240 } 1239 1241 } ··· 1252 1254 union iwreq_data *wrqu, char *extra) 1253 1255 { 1254 1256 int error; 1255 - WL_TRACE(("\n:%s dev:%s: SIOCSIWSCAN : SCAN\n", __func__, dev->name)); 1257 + WL_TRACE("\n:%s dev:%s: SIOCSIWSCAN : SCAN\n", __func__, dev->name); 1256 1258 1257 1259 g_set_essid_before_scan = false; 1258 1260 #if defined(CSCAN) 1259 - WL_ERROR(("%s: Scan from SIOCGIWSCAN not supported\n", __func__)); 1261 + WL_ERROR("%s: Scan from SIOCGIWSCAN not supported\n", __func__); 1260 1262 return -EINVAL; 1261 1263 #endif 1262 1264 ··· 1273 1275 if (wrqu->data.flags & IW_SCAN_THIS_ESSID) { 1274 1276 struct iw_scan_req *req = (struct iw_scan_req *)extra; 1275 1277 if (g_scan_specified_ssid) { 1276 - WL_TRACE(("%s Specific SCAN is not done ignore " 1277 - "scan for = %s\n", 1278 - __func__, req->essid)); 1278 + WL_TRACE("%s Specific SCAN is not done ignore scan for = %s\n", 1279 + __func__, req->essid); 1279 1280 return -EBUSY; 1280 1281 } else { 1281 1282 g_specific_ssid.SSID_len = min_t(size_t, ··· 1285 1288 g_specific_ssid.SSID_len = 1286 1289 htod32(g_specific_ssid.SSID_len); 1287 1290 g_scan_specified_ssid = 1; 1288 - WL_TRACE(("### Specific scan ssid=%s len=%d\n", 1289 - g_specific_ssid.SSID, 1290 - g_specific_ssid.SSID_len)); 1291 + WL_TRACE("### Specific scan ssid=%s len=%d\n", 1292 + g_specific_ssid.SSID, 1293 + g_specific_ssid.SSID_len); 1291 1294 } 1292 1295 } 1293 1296 } ··· 1295 1298 error = dev_wlc_ioctl(dev, WLC_SCAN, &g_specific_ssid, 1296 1299 sizeof(g_specific_ssid)); 1297 1300 if (error) { 1298 - WL_TRACE(("#### Set SCAN for %s failed with %d\n", 1299 - g_specific_ssid.SSID, error)); 1301 + WL_TRACE("#### Set SCAN for %s failed with %d\n", 1302 + g_specific_ssid.SSID, error); 1300 1303 g_scan_specified_ssid = 0; 1301 1304 return -EBUSY; 1302 1305 } ··· 1315 1318 1316 1319 wl_iw_set_event_mask(dev); 1317 1320 1318 - WL_TRACE(("+++: Set Broadcast ISCAN\n")); 1321 + WL_TRACE("+++: Set Broadcast ISCAN\n"); 1319 1322 memset(&ssid, 0, sizeof(ssid)); 1320 1323 1321 1324 iscan->list_cur = iscan->list_hdr; ··· 1344 1347 wlc_ssid_t ssid; 1345 1348 iscan_info_t *iscan = g_iscan; 1346 1349 1347 - WL_TRACE(("%s: SIOCSIWSCAN : ISCAN\n", dev->name)); 1350 + WL_TRACE("%s: SIOCSIWSCAN : ISCAN\n", dev->name); 1348 1351 1349 1352 #if defined(CSCAN) 1350 - WL_ERROR(("%s: Scan from SIOCGIWSCAN not supported\n", __func__)); 1353 + WL_ERROR("%s: Scan from SIOCGIWSCAN not supported\n", __func__); 1351 1354 return -EINVAL; 1352 1355 #endif 1353 1356 1354 1357 if (g_onoff == G_WLAN_SET_OFF) { 1355 - WL_TRACE(("%s: driver is not up yet after START\n", __func__)); 1358 + WL_TRACE("%s: driver is not up yet after START\n", __func__); 1356 1359 return 0; 1357 1360 } 1358 1361 #ifdef PNO_SUPPORT 1359 1362 if (dhd_dev_get_pno_status(dev)) { 1360 - WL_ERROR(("%s: Scan called when PNO is active\n", __func__)); 1363 + WL_ERROR("%s: Scan called when PNO is active\n", __func__); 1361 1364 } 1362 1365 #endif 1363 1366 ··· 1365 1368 return wl_iw_set_scan(dev, info, wrqu, extra); 1366 1369 1367 1370 if (g_scan_specified_ssid) { 1368 - WL_TRACE(("%s Specific SCAN already running ignoring BC scan\n", 1369 - __func__)); 1371 + WL_TRACE("%s Specific SCAN already running ignoring BC scan\n", 1372 + __func__); 1370 1373 return EBUSY; 1371 1374 } 1372 1375 ··· 1384 1387 g_scan_specified_ssid = 0; 1385 1388 1386 1389 if (iscan->iscan_state == ISCAN_STATE_SCANING) { 1387 - WL_TRACE(("%s ISCAN already in progress \n", 1388 - __func__)); 1390 + WL_TRACE("%s ISCAN already in progress\n", 1391 + __func__); 1389 1392 return 0; 1390 1393 } 1391 1394 } ··· 1499 1502 1500 1503 for (i = 0; i < list->count && i < IW_MAX_AP; i++) { 1501 1504 if (list->version != WL_BSS_INFO_VERSION) { 1502 - WL_ERROR(("%s : list->version %d != " 1503 - "WL_BSS_INFO_VERSION\n", 1504 - __func__, list->version)); 1505 + WL_ERROR("%s : list->version %d != WL_BSS_INFO_VERSION\n", 1506 + __func__, list->version); 1505 1507 return ret; 1506 1508 } 1507 1509 ··· 1508 1512 dtoh32(bi->length)) : list-> 1509 1513 bss_info; 1510 1514 1511 - WL_TRACE(("%s : %s\n", __func__, bi->SSID)); 1515 + WL_TRACE("%s : %s\n", __func__, bi->SSID); 1512 1516 1513 1517 iwe.cmd = SIOCGIWAP; 1514 1518 iwe.u.ap_addr.sa_family = ARPHRD_ETHER; ··· 1587 1591 1588 1592 ret = event - extra; 1589 1593 if (ret < 0) { 1590 - WL_ERROR(("==> Wrong size\n")); 1594 + WL_ERROR("==> Wrong size\n"); 1591 1595 ret = 0; 1592 1596 } 1593 - WL_TRACE(("%s: size=%d bytes prepared\n", __func__, 1594 - (unsigned int)(event - extra))); 1597 + WL_TRACE("%s: size=%d bytes prepared\n", 1598 + __func__, (unsigned int)(event - extra)); 1595 1599 return (uint)ret; 1596 1600 } 1597 1601 ··· 1611 1615 iscan_buf_t *p_buf; 1612 1616 #endif 1613 1617 1614 - WL_TRACE(("%s: buflen_from_user %d: \n", dev->name, buflen_from_user)); 1618 + WL_TRACE("%s: buflen_from_user %d:\n", dev->name, buflen_from_user); 1615 1619 1616 1620 if (!extra) { 1617 - WL_TRACE(("%s: wl_iw_get_scan return -EINVAL\n", dev->name)); 1621 + WL_TRACE("%s: wl_iw_get_scan return -EINVAL\n", dev->name); 1618 1622 return -EINVAL; 1619 1623 } 1620 1624 ··· 1628 1632 if (g_scan_specified_ssid) { 1629 1633 list = kmalloc(len, GFP_KERNEL); 1630 1634 if (!list) { 1631 - WL_TRACE(("%s: wl_iw_get_scan return -ENOMEM\n", 1632 - dev->name)); 1635 + WL_TRACE("%s: wl_iw_get_scan return -ENOMEM\n", 1636 + dev->name); 1633 1637 g_scan_specified_ssid = 0; 1634 1638 return -ENOMEM; 1635 1639 } ··· 1639 1643 list->buflen = htod32(len); 1640 1644 error = dev_wlc_ioctl(dev, WLC_SCAN_RESULTS, list, len); 1641 1645 if (error) { 1642 - WL_ERROR(("%s: %s : Scan_results ERROR %d\n", dev->name, 1643 - __func__, error)); 1646 + WL_ERROR("%s: %s : Scan_results ERROR %d\n", 1647 + dev->name, __func__, error); 1644 1648 dwrq->length = len; 1645 1649 if (g_scan_specified_ssid) { 1646 1650 g_scan_specified_ssid = 0; ··· 1653 1657 list->count = dtoh32(list->count); 1654 1658 1655 1659 if (list->version != WL_BSS_INFO_VERSION) { 1656 - WL_ERROR(("%s : list->version %d != WL_BSS_INFO_VERSION\n", 1657 - __func__, list->version)); 1660 + WL_ERROR("%s : list->version %d != WL_BSS_INFO_VERSION\n", 1661 + __func__, list->version); 1658 1662 if (g_scan_specified_ssid) { 1659 1663 g_scan_specified_ssid = 0; 1660 1664 kfree(list); ··· 1663 1667 } 1664 1668 1665 1669 if (g_scan_specified_ssid) { 1666 - WL_TRACE(("%s: Specified scan APs in the list =%d\n", 1667 - __func__, list->count)); 1670 + WL_TRACE("%s: Specified scan APs in the list =%d\n", 1671 + __func__, list->count); 1668 1672 len_ret = 1669 1673 (__u16) wl_iw_get_scan_prep(list, info, extra, 1670 1674 buflen_from_user); ··· 1675 1679 while (p_buf != iscan->list_cur) { 1676 1680 list_merge = 1677 1681 &((wl_iscan_results_t *) p_buf->iscan_buf)->results; 1678 - WL_TRACE(("%s: Bcast APs list=%d\n", __func__, 1679 - list_merge->count)); 1682 + WL_TRACE("%s: Bcast APs list=%d\n", 1683 + __func__, list_merge->count); 1680 1684 if (list_merge->count > 0) 1681 1685 len_ret += 1682 1686 (__u16) wl_iw_get_scan_prep(list_merge, ··· 1686 1690 } 1687 1691 #else 1688 1692 list_merge = (wl_scan_results_t *) g_scan; 1689 - WL_TRACE(("%s: Bcast APs list=%d\n", __func__, 1690 - list_merge->count)); 1693 + WL_TRACE("%s: Bcast APs list=%d\n", 1694 + __func__, list_merge->count); 1691 1695 if (list_merge->count > 0) 1692 1696 len_ret += 1693 1697 (__u16) wl_iw_get_scan_prep(list_merge, info, ··· 1711 1715 dwrq->length = len; 1712 1716 dwrq->flags = 0; 1713 1717 1714 - WL_TRACE(("%s return to WE %d bytes APs=%d\n", __func__, 1715 - dwrq->length, list->count)); 1718 + WL_TRACE("%s return to WE %d bytes APs=%d\n", 1719 + __func__, dwrq->length, list->count); 1716 1720 return 0; 1717 1721 } 1718 1722 ··· 1733 1737 u32 counter = 0; 1734 1738 u8 channel; 1735 1739 1736 - WL_TRACE(("%s %s buflen_from_user %d:\n", dev->name, __func__, 1737 - dwrq->length)); 1740 + WL_TRACE("%s %s buflen_from_user %d:\n", 1741 + dev->name, __func__, dwrq->length); 1738 1742 1739 1743 if (!extra) { 1740 - WL_TRACE(("%s: INVALID SIOCGIWSCAN GET bad parameter\n", 1741 - dev->name)); 1744 + WL_TRACE("%s: INVALID SIOCGIWSCAN GET bad parameter\n", 1745 + dev->name); 1742 1746 return -EINVAL; 1743 1747 } 1744 1748 1745 1749 if ((!iscan) || (!iscan->sysioc_tsk)) { 1746 - WL_ERROR(("%ssysioc_tsk\n", __func__)); 1750 + WL_ERROR("%ssysioc_tsk\n", __func__); 1747 1751 return wl_iw_get_scan(dev, info, dwrq, extra); 1748 1752 } 1749 1753 1750 1754 if (iscan->iscan_state == ISCAN_STATE_SCANING) { 1751 - WL_TRACE(("%s: SIOCGIWSCAN GET still scanning\n", dev->name)); 1755 + WL_TRACE("%s: SIOCGIWSCAN GET still scanning\n", dev->name); 1752 1756 return -EAGAIN; 1753 1757 } 1754 1758 1755 - WL_TRACE(("%s: SIOCGIWSCAN GET broadcast results\n", dev->name)); 1759 + WL_TRACE("%s: SIOCGIWSCAN GET broadcast results\n", dev->name); 1756 1760 apcnt = 0; 1757 1761 p_buf = iscan->list_hdr; 1758 1762 while (p_buf != iscan->list_cur) { ··· 1761 1765 counter += list->count; 1762 1766 1763 1767 if (list->version != WL_BSS_INFO_VERSION) { 1764 - WL_ERROR(("%s : list->version %d != " 1765 - "WL_BSS_INFO_VERSION\n", 1766 - __func__, list->version)); 1768 + WL_ERROR("%s : list->version %d != WL_BSS_INFO_VERSION\n", 1769 + __func__, list->version); 1767 1770 return -EINVAL; 1768 1771 } 1769 1772 ··· 1872 1877 dwrq->length = event - extra; 1873 1878 dwrq->flags = 0; 1874 1879 1875 - WL_TRACE(("%s return to WE %d bytes APs=%d\n", __func__, 1876 - dwrq->length, counter)); 1880 + WL_TRACE("%s return to WE %d bytes APs=%d\n", 1881 + __func__, dwrq->length, counter); 1877 1882 1878 1883 if (!dwrq->length) 1879 1884 return -EAGAIN; ··· 1891 1896 wl_join_params_t join_params; 1892 1897 int join_params_size; 1893 1898 1894 - WL_TRACE(("%s: SIOCSIWESSID\n", dev->name)); 1899 + WL_TRACE("%s: SIOCSIWESSID\n", dev->name); 1895 1900 1896 1901 if (g_set_essid_before_scan) 1897 1902 return -EAGAIN; ··· 1927 1932 error = dev_wlc_ioctl(dev, WLC_SET_SSID, &join_params, 1928 1933 join_params_size); 1929 1934 if (error) 1930 - WL_ERROR(("Invalid ioctl data=%d\n", error)); 1935 + WL_ERROR("Invalid ioctl data=%d\n", error); 1931 1936 1932 1937 if (g_ssid.SSID_len) { 1933 - WL_TRACE(("%s: join SSID=%s ch=%d\n", __func__, 1934 - g_ssid.SSID, g_wl_iw_params.target_channel)); 1938 + WL_TRACE("%s: join SSID=%s ch=%d\n", 1939 + __func__, g_ssid.SSID, g_wl_iw_params.target_channel); 1935 1940 } 1936 1941 return 0; 1937 1942 } ··· 1944 1949 wlc_ssid_t ssid; 1945 1950 int error; 1946 1951 1947 - WL_TRACE(("%s: SIOCGIWESSID\n", dev->name)); 1952 + WL_TRACE("%s: SIOCGIWESSID\n", dev->name); 1948 1953 1949 1954 if (!extra) 1950 1955 return -EINVAL; 1951 1956 1952 1957 error = dev_wlc_ioctl(dev, WLC_GET_SSID, &ssid, sizeof(ssid)); 1953 1958 if (error) { 1954 - WL_ERROR(("Error getting the SSID\n")); 1959 + WL_ERROR("Error getting the SSID\n"); 1955 1960 return error; 1956 1961 } 1957 1962 ··· 1972 1977 { 1973 1978 wl_iw_t *iw = *(wl_iw_t **) netdev_priv(dev); 1974 1979 1975 - WL_TRACE(("%s: SIOCSIWNICKN\n", dev->name)); 1980 + WL_TRACE("%s: SIOCSIWNICKN\n", dev->name); 1976 1981 1977 1982 if (!extra) 1978 1983 return -EINVAL; ··· 1992 1997 { 1993 1998 wl_iw_t *iw = *(wl_iw_t **) netdev_priv(dev); 1994 1999 1995 - WL_TRACE(("%s: SIOCGIWNICKN\n", dev->name)); 2000 + WL_TRACE("%s: SIOCGIWNICKN\n", dev->name); 1996 2001 1997 2002 if (!extra) 1998 2003 return -EINVAL; ··· 2010 2015 wl_rateset_t rateset; 2011 2016 int error, rate, i, error_bg, error_a; 2012 2017 2013 - WL_TRACE(("%s: SIOCSIWRATE\n", dev->name)); 2018 + WL_TRACE("%s: SIOCSIWRATE\n", dev->name); 2014 2019 2015 2020 error = dev_wlc_ioctl(dev, WLC_GET_CURR_RATESET, &rateset, 2016 2021 sizeof(rateset)); ··· 2059 2064 { 2060 2065 int error, rate; 2061 2066 2062 - WL_TRACE(("%s: SIOCGIWRATE\n", dev->name)); 2067 + WL_TRACE("%s: SIOCGIWRATE\n", dev->name); 2063 2068 2064 2069 error = dev_wlc_ioctl(dev, WLC_GET_RATE, &rate, sizeof(rate)); 2065 2070 if (error) ··· 2076 2081 { 2077 2082 int error, rts; 2078 2083 2079 - WL_TRACE(("%s: SIOCSIWRTS\n", dev->name)); 2084 + WL_TRACE("%s: SIOCSIWRTS\n", dev->name); 2080 2085 2081 2086 if (vwrq->disabled) 2082 2087 rts = DOT11_DEFAULT_RTS_LEN; ··· 2098 2103 { 2099 2104 int error, rts; 2100 2105 2101 - WL_TRACE(("%s: SIOCGIWRTS\n", dev->name)); 2106 + WL_TRACE("%s: SIOCGIWRTS\n", dev->name); 2102 2107 2103 2108 error = dev_wlc_intvar_get(dev, "rtsthresh", &rts); 2104 2109 if (error) ··· 2117 2122 { 2118 2123 int error, frag; 2119 2124 2120 - WL_TRACE(("%s: SIOCSIWFRAG\n", dev->name)); 2125 + WL_TRACE("%s: SIOCSIWFRAG\n", dev->name); 2121 2126 2122 2127 if (vwrq->disabled) 2123 2128 frag = DOT11_DEFAULT_FRAG_LEN; ··· 2139 2144 { 2140 2145 int error, fragthreshold; 2141 2146 2142 - WL_TRACE(("%s: SIOCGIWFRAG\n", dev->name)); 2147 + WL_TRACE("%s: SIOCGIWFRAG\n", dev->name); 2143 2148 2144 2149 error = dev_wlc_intvar_get(dev, "fragthresh", &fragthreshold); 2145 2150 if (error) ··· 2159 2164 { 2160 2165 int error, disable; 2161 2166 u16 txpwrmw; 2162 - WL_TRACE(("%s: SIOCSIWTXPOW\n", dev->name)); 2167 + WL_TRACE("%s: SIOCSIWTXPOW\n", dev->name); 2163 2168 2164 2169 disable = vwrq->disabled ? WL_RADIO_SW_DISABLE : 0; 2165 2170 disable += WL_RADIO_SW_DISABLE << 16; ··· 2196 2201 int error, disable, txpwrdbm; 2197 2202 u8 result; 2198 2203 2199 - WL_TRACE(("%s: SIOCGIWTXPOW\n", dev->name)); 2204 + WL_TRACE("%s: SIOCGIWTXPOW\n", dev->name); 2200 2205 2201 2206 error = dev_wlc_ioctl(dev, WLC_GET_RADIO, &disable, sizeof(disable)); 2202 2207 if (error) ··· 2225 2230 { 2226 2231 int error, lrl, srl; 2227 2232 2228 - WL_TRACE(("%s: SIOCSIWRETRY\n", dev->name)); 2233 + WL_TRACE("%s: SIOCSIWRETRY\n", dev->name); 2229 2234 2230 2235 if (vwrq->disabled || (vwrq->flags & IW_RETRY_LIFETIME)) 2231 2236 return -EINVAL; ··· 2273 2278 { 2274 2279 int error, lrl, srl; 2275 2280 2276 - WL_TRACE(("%s: SIOCGIWRETRY\n", dev->name)); 2281 + WL_TRACE("%s: SIOCGIWRETRY\n", dev->name); 2277 2282 2278 2283 vwrq->disabled = 0; 2279 2284 ··· 2313 2318 wl_wsec_key_t key; 2314 2319 int error, val, wsec; 2315 2320 2316 - WL_TRACE(("%s: SIOCSIWENCODE\n", dev->name)); 2321 + WL_TRACE("%s: SIOCSIWENCODE\n", dev->name); 2317 2322 2318 2323 memset(&key, 0, sizeof(key)); 2319 2324 ··· 2405 2410 wl_wsec_key_t key; 2406 2411 int error, val, wsec, auth; 2407 2412 2408 - WL_TRACE(("%s: SIOCGIWENCODE\n", dev->name)); 2413 + WL_TRACE("%s: SIOCGIWENCODE\n", dev->name); 2409 2414 2410 2415 memset(&key, 0, sizeof(wl_wsec_key_t)); 2411 2416 ··· 2461 2466 { 2462 2467 int error, pm; 2463 2468 2464 - WL_TRACE(("%s: SIOCSIWPOWER\n", dev->name)); 2469 + WL_TRACE("%s: SIOCSIWPOWER\n", dev->name); 2465 2470 2466 2471 pm = vwrq->disabled ? PM_OFF : PM_MAX; 2467 2472 ··· 2480 2485 { 2481 2486 int error, pm; 2482 2487 2483 - WL_TRACE(("%s: SIOCGIWPOWER\n", dev->name)); 2488 + WL_TRACE("%s: SIOCGIWPOWER\n", dev->name); 2484 2489 2485 2490 error = dev_wlc_ioctl(dev, WLC_GET_PM, &pm, sizeof(pm)); 2486 2491 if (error) ··· 2499 2504 struct iw_request_info *info, struct iw_point *iwp, char *extra) 2500 2505 { 2501 2506 2502 - WL_TRACE(("%s: SIOCSIWGENIE\n", dev->name)); 2507 + WL_TRACE("%s: SIOCSIWGENIE\n", dev->name); 2503 2508 2504 2509 CHECK_EXTRA_FOR_NULL(extra); 2505 2510 ··· 2512 2517 wl_iw_get_wpaie(struct net_device *dev, 2513 2518 struct iw_request_info *info, struct iw_point *iwp, char *extra) 2514 2519 { 2515 - WL_TRACE(("%s: SIOCGIWGENIE\n", dev->name)); 2520 + WL_TRACE("%s: SIOCGIWGENIE\n", dev->name); 2516 2521 iwp->length = 64; 2517 2522 dev_wlc_bufvar_get(dev, "wpaie", extra, iwp->length); 2518 2523 return 0; ··· 2527 2532 int error; 2528 2533 struct iw_encode_ext *iwe; 2529 2534 2530 - WL_TRACE(("%s: SIOCSIWENCODEEXT\n", dev->name)); 2535 + WL_TRACE("%s: SIOCSIWENCODEEXT\n", dev->name); 2531 2536 2532 2537 CHECK_EXTRA_FOR_NULL(extra); 2533 2538 ··· 2550 2555 2551 2556 if (key.len == 0) { 2552 2557 if (iwe->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { 2553 - WL_WSEC(("Changing the the primary Key to %d\n", 2554 - key.index)); 2558 + WL_WSEC("Changing the the primary Key to %d\n", 2559 + key.index); 2555 2560 key.index = htod32(key.index); 2556 2561 error = dev_wlc_ioctl(dev, WLC_SET_KEY_PRIMARY, 2557 2562 &key.index, sizeof(key.index)); ··· 2565 2570 if (iwe->key_len > sizeof(key.data)) 2566 2571 return -EINVAL; 2567 2572 2568 - WL_WSEC(("Setting the key index %d\n", key.index)); 2573 + WL_WSEC("Setting the key index %d\n", key.index); 2569 2574 if (iwe->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { 2570 - WL_WSEC(("key is a Primary Key\n")); 2575 + WL_WSEC("key is a Primary Key\n"); 2571 2576 key.flags = WL_PRIMARY_KEY; 2572 2577 } 2573 2578 ··· 2634 2639 uint i; 2635 2640 int ret = 0; 2636 2641 2637 - WL_WSEC(("%s: SIOCSIWPMKSA\n", dev->name)); 2642 + WL_WSEC("%s: SIOCSIWPMKSA\n", dev->name); 2638 2643 2639 2644 CHECK_EXTRA_FOR_NULL(extra); 2640 2645 2641 2646 iwpmksa = (struct iw_pmksa *)extra; 2642 2647 2643 2648 if (iwpmksa->cmd == IW_PMKSA_FLUSH) { 2644 - WL_WSEC(("wl_iw_set_pmksa - IW_PMKSA_FLUSH\n")); 2649 + WL_WSEC("wl_iw_set_pmksa - IW_PMKSA_FLUSH\n"); 2645 2650 memset((char *)&pmkid_list, 0, sizeof(pmkid_list)); 2646 2651 } 2647 2652 ··· 2656 2661 bcopy(&iwpmksa->pmkid[0], &pmkidptr->pmkid[0].PMKID, 2657 2662 WPA2_PMKID_LEN); 2658 2663 2659 - WL_WSEC(("wl_iw_set_pmksa:IW_PMKSA_REMOVE:PMKID: " 2660 - "%pM = ", &pmkidptr->pmkid[0].BSSID)); 2664 + WL_WSEC("wl_iw_set_pmksa:IW_PMKSA_REMOVE:PMKID: %pM = ", 2665 + &pmkidptr->pmkid[0].BSSID); 2661 2666 for (j = 0; j < WPA2_PMKID_LEN; j++) 2662 - WL_WSEC(("%02x ", pmkidptr->pmkid[0].PMKID[j])); 2663 - WL_WSEC(("\n")); 2667 + WL_WSEC("%02x ", pmkidptr->pmkid[0].PMKID[j]); 2668 + WL_WSEC("\n"); 2664 2669 } 2665 2670 2666 2671 for (i = 0; i < pmkid_list.pmkids.npmkid; i++) ··· 2706 2711 uint j; 2707 2712 uint k; 2708 2713 k = pmkid_list.pmkids.npmkid; 2709 - WL_WSEC(("wl_iw_set_pmksa,IW_PMKSA_ADD - PMKID: %pM = ", 2710 - &pmkid_list.pmkids.pmkid[k].BSSID)); 2714 + WL_WSEC("wl_iw_set_pmksa,IW_PMKSA_ADD - PMKID: %pM = ", 2715 + &pmkid_list.pmkids.pmkid[k].BSSID); 2711 2716 for (j = 0; j < WPA2_PMKID_LEN; j++) 2712 - WL_WSEC(("%02x ", 2713 - pmkid_list.pmkids.pmkid[k].PMKID[j])); 2714 - WL_WSEC(("\n")); 2717 + WL_WSEC("%02x ", 2718 + pmkid_list.pmkids.pmkid[k].PMKID[j]); 2719 + WL_WSEC("\n"); 2715 2720 } 2716 2721 } 2717 - WL_WSEC(("PRINTING pmkid LIST - No of elements %d\n", 2718 - pmkid_list.pmkids.npmkid)); 2722 + WL_WSEC("PRINTING pmkid LIST - No of elements %d\n", 2723 + pmkid_list.pmkids.npmkid); 2719 2724 for (i = 0; i < pmkid_list.pmkids.npmkid; i++) { 2720 2725 uint j; 2721 - WL_WSEC(("PMKID[%d]: %pM = ", i, 2722 - &pmkid_list.pmkids.pmkid[i].BSSID)); 2726 + WL_WSEC("PMKID[%d]: %pM = ", 2727 + i, &pmkid_list.pmkids.pmkid[i].BSSID); 2723 2728 for (j = 0; j < WPA2_PMKID_LEN; j++) 2724 - WL_WSEC(("%02x ", pmkid_list.pmkids.pmkid[i].PMKID[j])); 2725 - WL_WSEC(("\n")); 2729 + WL_WSEC("%02x ", pmkid_list.pmkids.pmkid[i].PMKID[j]); 2730 + WL_WSEC("\n"); 2726 2731 } 2727 - WL_WSEC(("\n")); 2732 + WL_WSEC("\n"); 2728 2733 2729 2734 if (!ret) 2730 2735 ret = dev_wlc_bufvar_set(dev, "pmkid_info", (char *)&pmkid_list, ··· 2738 2743 struct iw_request_info *info, 2739 2744 struct iw_param *vwrq, char *extra) 2740 2745 { 2741 - WL_TRACE(("%s: SIOCGIWENCODEEXT\n", dev->name)); 2746 + WL_TRACE("%s: SIOCGIWENCODEEXT\n", dev->name); 2742 2747 return 0; 2743 2748 } 2744 2749 ··· 2753 2758 int val = 0; 2754 2759 wl_iw_t *iw = *(wl_iw_t **) netdev_priv(dev); 2755 2760 2756 - WL_TRACE(("%s: SIOCSIWAUTH\n", dev->name)); 2761 + WL_TRACE("%s: SIOCSIWAUTH\n", dev->name); 2757 2762 2758 2763 paramid = vwrq->flags & IW_AUTH_INDEX; 2759 2764 paramval = vwrq->value; 2760 2765 2761 - WL_TRACE(("%s: SIOCSIWAUTH, paramid = 0x%0x, paramval = 0x%0x\n", 2762 - dev->name, paramid, paramval)); 2766 + WL_TRACE("%s: SIOCSIWAUTH, paramid = 0x%0x, paramval = 0x%0x\n", 2767 + dev->name, paramid, paramval); 2763 2768 2764 2769 switch (paramid) { 2765 2770 case IW_AUTH_WPA_VERSION: ··· 2769 2774 val = WPA_AUTH_PSK | WPA_AUTH_UNSPECIFIED; 2770 2775 else if (paramval & IW_AUTH_WPA_VERSION_WPA2) 2771 2776 val = WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED; 2772 - WL_INFORM(("%s: %d: setting wpa_auth to 0x%0x\n", __func__, 2773 - __LINE__, val)); 2777 + WL_INFORM("%s: %d: setting wpa_auth to 0x%0x\n", 2778 + __func__, __LINE__, val); 2774 2779 error = dev_wlc_intvar_set(dev, "wpa_auth", val); 2775 2780 if (error) 2776 2781 return error; ··· 2793 2798 } 2794 2799 2795 2800 if (iw->privacy_invoked && !val) { 2796 - WL_WSEC(("%s: %s: 'Privacy invoked' true but clearing " 2797 - "wsec, assuming " "we're a WPS enrollee\n", 2798 - dev->name, __func__)); 2801 + WL_WSEC("%s: %s: 'Privacy invoked' true but clearing wsec, assuming we're a WPS enrollee\n", 2802 + dev->name, __func__); 2799 2803 error = dev_wlc_intvar_set(dev, "is_WPS_enrollee", 2800 2804 true); 2801 2805 if (error) { 2802 - WL_WSEC(("Failed to set is_WPS_enrollee\n")); 2806 + WL_WSEC("Failed to set is_WPS_enrollee\n"); 2803 2807 return error; 2804 2808 } 2805 2809 } else if (val) { 2806 2810 error = dev_wlc_intvar_set(dev, "is_WPS_enrollee", 2807 2811 false); 2808 2812 if (error) { 2809 - WL_WSEC(("Failed to clear is_WPS_enrollee\n")); 2813 + WL_WSEC("Failed to clear is_WPS_enrollee\n"); 2810 2814 return error; 2811 2815 } 2812 2816 } ··· 2832 2838 else 2833 2839 val = WPA2_AUTH_UNSPECIFIED; 2834 2840 } 2835 - WL_INFORM(("%s: %d: setting wpa_auth to %d\n", __func__, 2836 - __LINE__, val)); 2841 + WL_INFORM("%s: %d: setting wpa_auth to %d\n", 2842 + __func__, __LINE__, val); 2837 2843 error = dev_wlc_intvar_set(dev, "wpa_auth", val); 2838 2844 if (error) 2839 2845 return error; ··· 2845 2851 break; 2846 2852 2847 2853 case IW_AUTH_80211_AUTH_ALG: 2848 - WL_INFORM(("Setting the D11auth %d\n", paramval)); 2854 + WL_INFORM("Setting the D11auth %d\n", paramval); 2849 2855 if (paramval == IW_AUTH_ALG_OPEN_SYSTEM) 2850 2856 val = 0; 2851 2857 else if (paramval == IW_AUTH_ALG_SHARED_KEY) ··· 2874 2880 dev_wlc_intvar_set(dev, "wsec", val); 2875 2881 } 2876 2882 val = 0; 2877 - WL_INFORM(("%s: %d: setting wpa_auth to %d\n", 2878 - __func__, __LINE__, val)); 2883 + WL_INFORM("%s: %d: setting wpa_auth to %d\n", 2884 + __func__, __LINE__, val); 2879 2885 dev_wlc_intvar_set(dev, "wpa_auth", 0); 2880 2886 return error; 2881 2887 } ··· 2892 2898 2893 2899 #if WIRELESS_EXT > 17 2894 2900 case IW_AUTH_ROAMING_CONTROL: 2895 - WL_INFORM(("%s: IW_AUTH_ROAMING_CONTROL\n", __func__)); 2901 + WL_INFORM("%s: IW_AUTH_ROAMING_CONTROL\n", __func__); 2896 2902 break; 2897 2903 case IW_AUTH_PRIVACY_INVOKED: 2898 2904 { ··· 2903 2909 error = dev_wlc_intvar_set(dev, 2904 2910 "is_WPS_enrollee", false); 2905 2911 if (error) { 2906 - WL_WSEC(("Failed to clear iovar " 2907 - "is_WPS_enrollee\n")); 2912 + WL_WSEC("Failed to clear iovar is_WPS_enrollee\n"); 2908 2913 return error; 2909 2914 } 2910 2915 } else { ··· 2917 2924 "is_WPS_enrollee", 2918 2925 true); 2919 2926 if (error) { 2920 - WL_WSEC(("Failed to set iovar " 2921 - "is_WPS_enrollee\n")); 2927 + WL_WSEC("Failed to set iovar is_WPS_enrollee\n"); 2922 2928 return error; 2923 2929 } 2924 2930 } else { ··· 2925 2933 "is_WPS_enrollee", 2926 2934 false); 2927 2935 if (error) { 2928 - WL_WSEC(("Failed to clear " 2929 - "is_WPS_enrollee\n")); 2936 + WL_WSEC("Failed to clear is_WPS_enrollee\n"); 2930 2937 return error; 2931 2938 } 2932 2939 } ··· 2952 2961 int val; 2953 2962 wl_iw_t *iw = *(wl_iw_t **) netdev_priv(dev); 2954 2963 2955 - WL_TRACE(("%s: SIOCGIWAUTH\n", dev->name)); 2964 + WL_TRACE("%s: SIOCGIWAUTH\n", dev->name); 2956 2965 2957 2966 paramid = vwrq->flags & IW_AUTH_INDEX; 2958 2967 ··· 3032 3041 break; 3033 3042 #if WIRELESS_EXT > 17 3034 3043 case IW_AUTH_ROAMING_CONTROL: 3035 - WL_ERROR(("%s: IW_AUTH_ROAMING_CONTROL\n", __func__)); 3044 + WL_ERROR("%s: IW_AUTH_ROAMING_CONTROL\n", __func__); 3036 3045 break; 3037 3046 case IW_AUTH_PRIVACY_INVOKED: 3038 3047 paramval = iw->privacy_invoked; ··· 3149 3158 char *extra = NULL; 3150 3159 int token_size = 1, max_tokens = 0, ret = 0; 3151 3160 3152 - WL_TRACE(("\n%s, cmd:%x alled via dhd->do_ioctl()entry point\n", 3153 - __func__, cmd)); 3161 + WL_TRACE("\n%s, cmd:%x alled via dhd->do_ioctl()entry point\n", 3162 + __func__, cmd); 3154 3163 if (cmd < SIOCIWFIRST || 3155 3164 IW_IOCTL_IDX(cmd) >= ARRAY_SIZE(wl_iw_handler)) { 3156 - WL_ERROR(("%s: error in cmd=%x : out of range\n", __func__, 3157 - cmd)); 3165 + WL_ERROR("%s: error in cmd=%x : out of range\n", 3166 + __func__, cmd); 3158 3167 return -EOPNOTSUPP; 3159 3168 } 3160 3169 3161 3170 handler = wl_iw_handler[IW_IOCTL_IDX(cmd)]; 3162 3171 if (!handler) { 3163 - WL_ERROR(("%s: error in cmd=%x : not supported\n", 3164 - __func__, cmd)); 3172 + WL_ERROR("%s: error in cmd=%x : not supported\n", 3173 + __func__, cmd); 3165 3174 return -EOPNOTSUPP; 3166 3175 } 3167 3176 ··· 3226 3235 3227 3236 if (max_tokens && wrq->u.data.pointer) { 3228 3237 if (wrq->u.data.length > max_tokens) { 3229 - WL_ERROR(("%s: error in cmd=%x wrq->u.data.length=%d " 3230 - "> max_tokens=%d\n", 3231 - __func__, cmd, wrq->u.data.length, max_tokens)); 3238 + WL_ERROR("%s: error in cmd=%x wrq->u.data.length=%d > max_tokens=%d\n", 3239 + __func__, cmd, wrq->u.data.length, max_tokens); 3232 3240 return -E2BIG; 3233 3241 } 3234 3242 extra = kmalloc(max_tokens * token_size, GFP_KERNEL); ··· 3330 3340 memset(stringBuf, 0, buflen); 3331 3341 snprintf(stringBuf, buflen, "%s %s %02d %02d", 3332 3342 name, cause, status, reason); 3333 - WL_INFORM(("Connection status: %s\n", stringBuf)); 3343 + WL_INFORM("Connection status: %s\n", stringBuf); 3334 3344 return true; 3335 3345 } else { 3336 3346 return false; ··· 3374 3384 iw = 0; 3375 3385 3376 3386 if (!dev) { 3377 - WL_ERROR(("%s: dev is null\n", __func__)); 3387 + WL_ERROR("%s: dev is null\n", __func__); 3378 3388 return; 3379 3389 } 3380 3390 3381 3391 iw = *(wl_iw_t **) netdev_priv(dev); 3382 3392 3383 - WL_TRACE(("%s: dev=%s event=%d\n", __func__, dev->name, event_type)); 3393 + WL_TRACE("%s: dev=%s event=%d\n", __func__, dev->name, event_type); 3384 3394 3385 3395 switch (event_type) { 3386 3396 case WLC_E_TXFAIL: ··· 3413 3423 20 * HZ); 3414 3424 } else { 3415 3425 memcpy(wrqu.addr.sa_data, &e->addr, ETH_ALEN); 3416 - WL_TRACE(("Link UP\n")); 3426 + WL_TRACE("Link UP\n"); 3417 3427 3418 3428 } 3419 3429 wrqu.addr.sa_family = ARPHRD_ETHER; ··· 3424 3434 wrqu.data.length = datalen + 1; 3425 3435 extra[0] = WLC_E_ACTION_FRAME; 3426 3436 memcpy(&extra[1], data, datalen); 3427 - WL_TRACE(("WLC_E_ACTION_FRAME len %d \n", 3428 - wrqu.data.length)); 3437 + WL_TRACE("WLC_E_ACTION_FRAME len %d\n", 3438 + wrqu.data.length); 3429 3439 } 3430 3440 break; 3431 3441 ··· 3506 3516 } else { 3507 3517 cmd = SIOCGIWSCAN; 3508 3518 wrqu.data.length = strlen(extra); 3509 - WL_TRACE(("Event WLC_E_SCAN_COMPLETE from specific " 3510 - "scan %d\n", g_iscan->iscan_state)); 3519 + WL_TRACE("Event WLC_E_SCAN_COMPLETE from specific scan %d\n", 3520 + g_iscan->iscan_state); 3511 3521 } 3512 3522 #else 3513 3523 cmd = SIOCGIWSCAN; 3514 3524 wrqu.data.length = strlen(extra); 3515 - WL_TRACE(("Event WLC_E_SCAN_COMPLETE\n")); 3525 + WL_TRACE("Event WLC_E_SCAN_COMPLETE\n"); 3516 3526 #endif 3517 3527 break; 3518 3528 ··· 3520 3530 { 3521 3531 wlc_ssid_t *ssid; 3522 3532 ssid = (wlc_ssid_t *) data; 3523 - WL_ERROR(("%s Event WLC_E_PFN_NET_FOUND, send %s up : " 3524 - "find %s len=%d\n", __func__, PNO_EVENT_UP, 3525 - ssid->SSID, ssid->SSID_len)); 3533 + WL_ERROR("%s Event WLC_E_PFN_NET_FOUND, send %s up : find %s len=%d\n", 3534 + __func__, PNO_EVENT_UP, 3535 + ssid->SSID, ssid->SSID_len); 3526 3536 WAKE_LOCK_TIMEOUT(iw->pub, WAKE_LOCK_PNO_FIND_TMOUT, 3527 3537 20 * HZ); 3528 3538 cmd = IWEVCUSTOM; ··· 3533 3543 break; 3534 3544 3535 3545 default: 3536 - WL_TRACE(("Unknown Event %d: ignoring\n", event_type)); 3546 + WL_TRACE("Unknown Event %d: ignoring\n", event_type); 3537 3547 break; 3538 3548 } 3539 3549 #ifndef SANDGATE2G ··· 3574 3584 goto done; 3575 3585 3576 3586 phy_noise = dtoh32(phy_noise); 3577 - WL_TRACE(("wl_iw_get_wireless_stats phy noise=%d\n", phy_noise)); 3587 + WL_TRACE("wl_iw_get_wireless_stats phy noise=%d\n", phy_noise); 3578 3588 3579 3589 memset(&scb_val, 0, sizeof(scb_val_t)); 3580 3590 res = dev_wlc_ioctl(dev, WLC_GET_RSSI, &scb_val, sizeof(scb_val_t)); ··· 3582 3592 goto done; 3583 3593 3584 3594 rssi = dtoh32(scb_val.val); 3585 - WL_TRACE(("wl_iw_get_wireless_stats rssi=%d\n", rssi)); 3595 + WL_TRACE("wl_iw_get_wireless_stats rssi=%d\n", rssi); 3586 3596 if (rssi <= WL_IW_RSSI_NO_SIGNAL) 3587 3597 wstats->qual.qual = 0; 3588 3598 else if (rssi <= WL_IW_RSSI_VERY_LOW) ··· 3605 3615 #endif 3606 3616 3607 3617 #if WIRELESS_EXT > 11 3608 - WL_TRACE(("wl_iw_get_wireless_stats counters=%d\n", 3609 - (int)sizeof(wl_cnt_t))); 3618 + WL_TRACE("wl_iw_get_wireless_stats counters=%zu\n", sizeof(wl_cnt_t)); 3610 3619 3611 3620 memset(&cnt, 0, sizeof(wl_cnt_t)); 3612 3621 res = 3613 3622 dev_wlc_bufvar_get(dev, "counters", (char *)&cnt, sizeof(wl_cnt_t)); 3614 3623 if (res) { 3615 - WL_ERROR(("wl_iw_get_wireless_stats counters failed error=%d\n", 3616 - res)); 3624 + WL_ERROR("wl_iw_get_wireless_stats counters failed error=%d\n", 3625 + res); 3617 3626 goto done; 3618 3627 } 3619 3628 3620 3629 cnt.version = dtoh16(cnt.version); 3621 3630 if (cnt.version != WL_CNT_T_VERSION) { 3622 - WL_TRACE(("\tIncorrect version of counters struct: expected " 3623 - "%d; got %d\n", 3624 - WL_CNT_T_VERSION, cnt.version)); 3631 + WL_TRACE("\tIncorrect version of counters struct: expected %d; got %d\n", 3632 + WL_CNT_T_VERSION, cnt.version); 3625 3633 goto done; 3626 3634 } 3627 3635 ··· 3630 3642 wstats->discard.misc = dtoh32(cnt.rxrunt) + dtoh32(cnt.rxgiant); 3631 3643 wstats->miss.beacon = 0; 3632 3644 3633 - WL_TRACE(("wl_iw_get_wireless_stats counters txframe=%d txbyte=%d\n", 3634 - dtoh32(cnt.txframe), dtoh32(cnt.txbyte))); 3635 - WL_TRACE(("wl_iw_get_wireless_stats counters rxfrmtoolong=%d\n", 3636 - dtoh32(cnt.rxfrmtoolong))); 3637 - WL_TRACE(("wl_iw_get_wireless_stats counters rxbadplcp=%d\n", 3638 - dtoh32(cnt.rxbadplcp))); 3639 - WL_TRACE(("wl_iw_get_wireless_stats counters rxundec=%d\n", 3640 - dtoh32(cnt.rxundec))); 3641 - WL_TRACE(("wl_iw_get_wireless_stats counters rxfragerr=%d\n", 3642 - dtoh32(cnt.rxfragerr))); 3643 - WL_TRACE(("wl_iw_get_wireless_stats counters txfail=%d\n", 3644 - dtoh32(cnt.txfail))); 3645 - WL_TRACE(("wl_iw_get_wireless_stats counters rxrunt=%d\n", 3646 - dtoh32(cnt.rxrunt))); 3647 - WL_TRACE(("wl_iw_get_wireless_stats counters rxgiant=%d\n", 3648 - dtoh32(cnt.rxgiant))); 3645 + WL_TRACE("wl_iw_get_wireless_stats counters txframe=%d txbyte=%d\n", 3646 + dtoh32(cnt.txframe), dtoh32(cnt.txbyte)); 3647 + WL_TRACE("wl_iw_get_wireless_stats counters rxfrmtoolong=%d\n", 3648 + dtoh32(cnt.rxfrmtoolong)); 3649 + WL_TRACE("wl_iw_get_wireless_stats counters rxbadplcp=%d\n", 3650 + dtoh32(cnt.rxbadplcp)); 3651 + WL_TRACE("wl_iw_get_wireless_stats counters rxundec=%d\n", 3652 + dtoh32(cnt.rxundec)); 3653 + WL_TRACE("wl_iw_get_wireless_stats counters rxfragerr=%d\n", 3654 + dtoh32(cnt.rxfragerr)); 3655 + WL_TRACE("wl_iw_get_wireless_stats counters txfail=%d\n", 3656 + dtoh32(cnt.txfail)); 3657 + WL_TRACE("wl_iw_get_wireless_stats counters rxrunt=%d\n", 3658 + dtoh32(cnt.rxrunt)); 3659 + WL_TRACE("wl_iw_get_wireless_stats counters rxgiant=%d\n", 3660 + dtoh32(cnt.rxgiant)); 3649 3661 #endif /* WIRELESS_EXT > 11 */ 3650 3662 3651 3663 done:
+1 -1
drivers/staging/brcm80211/brcmfmac/wl_iw.h
··· 78 78 79 79 #define CHECK_EXTRA_FOR_NULL(extra) \ 80 80 if (!extra) { \ 81 - WL_ERROR(("%s: error : extra is null pointer\n", __func__)); \ 81 + WL_ERROR("%s: error : extra is null pointer\n", __func__); \ 82 82 return -EINVAL; \ 83 83 } 84 84
+46 -26
drivers/staging/brcm80211/sys/wl_dbg.h
··· 20 20 /* wl_msg_level is a bit vector with defs in wlioctl.h */ 21 21 extern u32 wl_msg_level; 22 22 23 - #define WL_PRINT(args) printf args 24 - #define WL_NONE(args) 23 + #define WL_NONE(fmt, args...) no_printk(fmt, ##args) 24 + 25 + #define WL_PRINT(level, fmt, args...) \ 26 + do { \ 27 + if (wl_msg_level & level) \ 28 + printk(fmt, ##args); \ 29 + } while (0) 25 30 26 31 #ifdef BCMDBG 27 32 28 - #define WL_ERROR(args) do {if ((wl_msg_level & WL_ERROR_VAL)) WL_PRINT(args); } while (0) 29 - #define WL_TRACE(args) do {if (wl_msg_level & WL_TRACE_VAL) WL_PRINT(args); } while (0) 30 - #define WL_AMPDU(args) do {if (wl_msg_level & WL_AMPDU_VAL) WL_PRINT(args); } while (0) 31 - #define WL_FFPLD(args) do {if (wl_msg_level & WL_FFPLD_VAL) WL_PRINT(args); } while (0) 33 + #define WL_ERROR(fmt, args...) WL_PRINT(WL_ERROR_VAL, fmt, ##args) 34 + #define WL_TRACE(fmt, args...) WL_PRINT(WL_TRACE_VAL, fmt, ##args) 35 + #define WL_AMPDU(fmt, args...) WL_PRINT(WL_AMPDU_VAL, fmt, ##args) 36 + #define WL_FFPLD(fmt, args...) WL_PRINT(WL_FFPLD_VAL, fmt, ##args) 32 37 33 38 #define WL_ERROR_ON() (wl_msg_level & WL_ERROR_VAL) 34 39 ··· 49 44 50 45 extern u32 wl_ampdu_dbg; 51 46 52 - #define WL_AMPDU_UPDN(args) do {if (wl_ampdu_dbg & WL_AMPDU_UPDN_VAL) {WL_AMPDU(args); } } while (0) 53 - #define WL_AMPDU_RX(args) do {if (wl_ampdu_dbg & WL_AMPDU_RX_VAL) {WL_AMPDU(args); } } while (0) 54 - #define WL_AMPDU_ERR(args) do {if (wl_ampdu_dbg & WL_AMPDU_ERR_VAL) {WL_AMPDU(args); } } while (0) 55 - #define WL_AMPDU_TX(args) do {if (wl_ampdu_dbg & WL_AMPDU_TX_VAL) {WL_AMPDU(args); } } while (0) 56 - #define WL_AMPDU_CTL(args) do {if (wl_ampdu_dbg & WL_AMPDU_CTL_VAL) {WL_AMPDU(args); } } while (0) 57 - #define WL_AMPDU_HW(args) do {if (wl_ampdu_dbg & WL_AMPDU_HW_VAL) {WL_AMPDU(args); } } while (0) 58 - #define WL_AMPDU_HWTXS(args) do {if (wl_ampdu_dbg & WL_AMPDU_HWTXS_VAL) {WL_AMPDU(args); } } while (0) 59 - #define WL_AMPDU_HWDBG(args) do {if (wl_ampdu_dbg & WL_AMPDU_HWDBG_VAL) {WL_AMPDU(args); } } while (0) 47 + #define WL_AMPDU_PRINT(level, fmt, args...) \ 48 + do { \ 49 + if (wl_ampdu_dbg & level) { \ 50 + WL_AMPDU(fmt, ##args); \ 51 + } \ 52 + } while (0) 53 + 54 + #define WL_AMPDU_UPDN(fmt, args...) \ 55 + WL_AMPDU_PRINT(WL_AMPDU_UPDN_VAL, fmt, ##args) 56 + #define WL_AMPDU_RX(fmt, args...) \ 57 + WL_AMPDU_PRINT(WL_AMPDU_RX_VAL, fmt, ##args) 58 + #define WL_AMPDU_ERR(fmt, args...) \ 59 + WL_AMPDU_PRINT(WL_AMPDU_ERR_VAL, fmt, ##args) 60 + #define WL_AMPDU_TX(fmt, args...) \ 61 + WL_AMPDU_PRINT(WL_AMPDU_TX_VAL, fmt, ##args) 62 + #define WL_AMPDU_CTL(fmt, args...) \ 63 + WL_AMPDU_PRINT(WL_AMPDU_CTL_VAL, fmt, ##args) 64 + #define WL_AMPDU_HW(fmt, args...) \ 65 + WL_AMPDU_PRINT(WL_AMPDU_HW_VAL, fmt, ##args) 66 + #define WL_AMPDU_HWTXS(fmt, args...) \ 67 + WL_AMPDU_PRINT(WL_AMPDU_HWTXS_VAL, fmt, ##args) 68 + #define WL_AMPDU_HWDBG(fmt, args...) \ 69 + WL_AMPDU_PRINT(WL_AMPDU_HWDBG_VAL, fmt, ##args) 60 70 #define WL_AMPDU_ERR_ON() (wl_ampdu_dbg & WL_AMPDU_ERR_VAL) 61 71 #define WL_AMPDU_HW_ON() (wl_ampdu_dbg & WL_AMPDU_HW_VAL) 62 72 #define WL_AMPDU_HWTXS_ON() (wl_ampdu_dbg & WL_AMPDU_HWTXS_VAL) 63 73 64 74 #else /* BCMDBG */ 65 75 66 - #define WL_ERROR(args) 67 - #define WL_TRACE(args) 68 - #define WL_AMPDU(args) 69 - #define WL_FFPLD(args) 76 + #define WL_ERROR(fmt, args...) no_printk(fmt, ##args) 77 + #define WL_TRACE(fmt, args...) no_printk(fmt, ##args) 78 + #define WL_AMPDU(fmt, args...) no_printk(fmt, ##args) 79 + #define WL_FFPLD(fmt, args...) no_printk(fmt, ##args) 70 80 71 81 #define WL_ERROR_ON() 0 72 82 73 - #define WL_AMPDU_UPDN(args) 74 - #define WL_AMPDU_RX(args) 75 - #define WL_AMPDU_ERR(args) 76 - #define WL_AMPDU_TX(args) 77 - #define WL_AMPDU_CTL(args) 78 - #define WL_AMPDU_HW(args) 79 - #define WL_AMPDU_HWTXS(args) 80 - #define WL_AMPDU_HWDBG(args) 83 + #define WL_AMPDU_UPDN(fmt, args...) no_printk(fmt, ##args) 84 + #define WL_AMPDU_RX(fmt, args...) no_printk(fmt, ##args) 85 + #define WL_AMPDU_ERR(fmt, args...) no_printk(fmt, ##args) 86 + #define WL_AMPDU_TX(fmt, args...) no_printk(fmt, ##args) 87 + #define WL_AMPDU_CTL(fmt, args...) no_printk(fmt, ##args) 88 + #define WL_AMPDU_HW(fmt, args...) no_printk(fmt, ##args) 89 + #define WL_AMPDU_HWTXS(fmt, args...) no_printk(fmt, ##args) 90 + #define WL_AMPDU_HWDBG(fmt, args...) no_printk(fmt, ##args) 81 91 #define WL_AMPDU_ERR_ON() 0 82 92 #define WL_AMPDU_HW_ON() 0 83 93 #define WL_AMPDU_HWTXS_ON() 0
+124 -123
drivers/staging/brcm80211/sys/wl_mac80211.c
··· 179 179 struct wl_info *wl = hw->priv; 180 180 WL_LOCK(wl); 181 181 if (!wl->pub->up) { 182 - WL_ERROR(("ops->tx called while down\n")); 182 + WL_ERROR("ops->tx called while down\n"); 183 183 status = -ENETDOWN; 184 184 goto done; 185 185 } ··· 192 192 static int wl_ops_start(struct ieee80211_hw *hw) 193 193 { 194 194 struct wl_info *wl = hw->priv; 195 - /* struct ieee80211_channel *curchan = hw->conf.channel; */ 196 - WL_NONE(("%s : Initial channel: %d\n", __func__, curchan->hw_value)); 195 + /* 196 + struct ieee80211_channel *curchan = hw->conf.channel; 197 + WL_NONE("%s : Initial channel: %d\n", __func__, curchan->hw_value); 198 + */ 197 199 198 200 WL_LOCK(wl); 199 201 ieee80211_wake_queues(hw); ··· 228 226 vif->type != NL80211_IFTYPE_STATION && 229 227 vif->type != NL80211_IFTYPE_WDS && 230 228 vif->type != NL80211_IFTYPE_ADHOC) { 231 - WL_ERROR(("%s: Attempt to add type %d, only STA for now\n", 232 - __func__, vif->type)); 229 + WL_ERROR("%s: Attempt to add type %d, only STA for now\n", 230 + __func__, vif->type); 233 231 return -EOPNOTSUPP; 234 232 } 235 233 ··· 239 237 WL_UNLOCK(wl); 240 238 241 239 if (err != 0) 242 - WL_ERROR(("%s: wl_up() returned %d\n", __func__, err)); 240 + WL_ERROR("%s: wl_up() returned %d\n", __func__, err); 243 241 return err; 244 242 } 245 243 ··· 265 263 break; 266 264 case NL80211_CHAN_HT40MINUS: 267 265 case NL80211_CHAN_HT40PLUS: 268 - WL_ERROR(("%s: Need to implement 40 Mhz Channels!\n", 269 - __func__)); 266 + WL_ERROR("%s: Need to implement 40 Mhz Channels!\n", __func__); 270 267 break; 271 268 } 272 269 ··· 282 281 int new_int; 283 282 284 283 if (changed & IEEE80211_CONF_CHANGE_LISTEN_INTERVAL) { 285 - WL_NONE(("%s: Setting listen interval to %d\n", 286 - __func__, conf->listen_interval)); 284 + WL_NONE("%s: Setting listen interval to %d\n", 285 + __func__, conf->listen_interval); 287 286 if (wlc_iovar_setint 288 287 (wl->wlc, "bcn_li_bcn", conf->listen_interval)) { 289 - WL_ERROR(("%s: Error setting listen_interval\n", 290 - __func__)); 288 + WL_ERROR("%s: Error setting listen_interval\n", 289 + __func__); 291 290 err = -EIO; 292 291 goto config_out; 293 292 } ··· 295 294 ASSERT(new_int == conf->listen_interval); 296 295 } 297 296 if (changed & IEEE80211_CONF_CHANGE_MONITOR) 298 - WL_NONE(("Need to set monitor mode\n")); 297 + WL_NONE("Need to set monitor mode\n"); 299 298 if (changed & IEEE80211_CONF_CHANGE_PS) 300 - WL_NONE(("Need to set Power-save mode\n")); 299 + WL_NONE("Need to set Power-save mode\n"); 301 300 302 301 if (changed & IEEE80211_CONF_CHANGE_POWER) { 303 - WL_NONE(("%s: Setting tx power to %d dbm\n", __func__, 304 - conf->power_level)); 302 + WL_NONE("%s: Setting tx power to %d dbm\n", 303 + __func__, conf->power_level); 305 304 if (wlc_iovar_setint 306 305 (wl->wlc, "qtxpower", conf->power_level * 4)) { 307 - WL_ERROR(("%s: Error setting power_level\n", __func__)); 306 + WL_ERROR("%s: Error setting power_level\n", __func__); 308 307 err = -EIO; 309 308 goto config_out; 310 309 } 311 310 wlc_iovar_getint(wl->wlc, "qtxpower", &new_int); 312 311 if (new_int != (conf->power_level * 4)) 313 - WL_ERROR(("%s: Power level req != actual, %d %d\n", 314 - __func__, conf->power_level * 4, new_int)); 312 + WL_ERROR("%s: Power level req != actual, %d %d\n", 313 + __func__, conf->power_level * 4, new_int); 315 314 } 316 315 if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { 317 316 err = ieee_set_channel(hw, conf->channel, conf->channel_type); 318 317 } 319 318 if (changed & IEEE80211_CONF_CHANGE_RETRY_LIMITS) { 320 - WL_NONE(("%s: srl %d, lrl %d\n", __func__, 321 - conf->short_frame_max_tx_count, 322 - conf->long_frame_max_tx_count)); 319 + WL_NONE("%s: srl %d, lrl %d\n", 320 + __func__, 321 + conf->short_frame_max_tx_count, 322 + conf->long_frame_max_tx_count); 323 323 if (wlc_set 324 324 (wl->wlc, WLC_SET_SRL, 325 325 conf->short_frame_max_tx_count) < 0) { 326 - WL_ERROR(("%s: Error setting srl\n", __func__)); 326 + WL_ERROR("%s: Error setting srl\n", __func__); 327 327 err = -EIO; 328 328 goto config_out; 329 329 } 330 330 if (wlc_set(wl->wlc, WLC_SET_LRL, conf->long_frame_max_tx_count) 331 331 < 0) { 332 - WL_ERROR(("%s: Error setting lrl\n", __func__)); 332 + WL_ERROR("%s: Error setting lrl\n", __func__); 333 333 err = -EIO; 334 334 goto config_out; 335 335 } ··· 350 348 351 349 352 350 if (changed & BSS_CHANGED_ASSOC) { 353 - WL_ERROR(("Associated:\t%s\n", info->assoc ? "True" : "False")); 351 + WL_ERROR("Associated:\t%s\n", info->assoc ? "True" : "False"); 354 352 /* association status changed (associated/disassociated) 355 353 * also implies a change in the AID. 356 354 */ 357 355 } 358 356 if (changed & BSS_CHANGED_ERP_CTS_PROT) { 359 - WL_NONE(("Use_cts_prot:\t%s Implement me\n", 360 - info->use_cts_prot ? "True" : "False")); 357 + WL_NONE("Use_cts_prot:\t%s Implement me\n", 358 + info->use_cts_prot ? "True" : "False"); 361 359 /* CTS protection changed */ 362 360 } 363 361 if (changed & BSS_CHANGED_ERP_PREAMBLE) { 364 - WL_NONE(("Short preamble:\t%s Implement me\n", 365 - info->use_short_preamble ? "True" : "False")); 362 + WL_NONE("Short preamble:\t%s Implement me\n", 363 + info->use_short_preamble ? "True" : "False"); 366 364 /* preamble changed */ 367 365 } 368 366 if (changed & BSS_CHANGED_ERP_SLOT) { 369 - WL_NONE(("Changing short slot:\t%s\n", 370 - info->use_short_slot ? "True" : "False")); 367 + WL_NONE("Changing short slot:\t%s\n", 368 + info->use_short_slot ? "True" : "False"); 371 369 if (info->use_short_slot) 372 370 val = 1; 373 371 else ··· 377 375 } 378 376 379 377 if (changed & BSS_CHANGED_HT) { 380 - WL_NONE(("%s: HT mode - Implement me\n", __func__)); 378 + WL_NONE("%s: HT mode - Implement me\n", __func__); 381 379 /* 802.11n parameters changed */ 382 380 } 383 381 if (changed & BSS_CHANGED_BASIC_RATES) { 384 - WL_NONE(("Need to change Basic Rates:\t0x%x! Implement me\n", 385 - (u32) info->basic_rates)); 382 + WL_NONE("Need to change Basic Rates:\t0x%x! Implement me\n", 383 + (u32) info->basic_rates); 386 384 /* Basic rateset changed */ 387 385 } 388 386 if (changed & BSS_CHANGED_BEACON_INT) { 389 - WL_NONE(("Beacon Interval:\t%d Implement me\n", 390 - info->beacon_int)); 387 + WL_NONE("Beacon Interval:\t%d Implement me\n", 388 + info->beacon_int); 391 389 /* Beacon interval changed */ 392 390 } 393 391 if (changed & BSS_CHANGED_BSSID) { 394 - WL_NONE(("new BSSID:\taid %d bss:%pM\n", info->aid, 395 - info->bssid)); 392 + WL_NONE("new BSSID:\taid %d bss:%pM\n", 393 + info->aid, info->bssid); 396 394 /* BSSID changed, for whatever reason (IBSS and managed mode) */ 397 395 /* FIXME: need to store bssid in bsscfg */ 398 396 wlc_set_addrmatch(wl->wlc, RCM_BSSID_OFFSET, 399 397 (struct ether_addr *)info->bssid); 400 398 } 401 399 if (changed & BSS_CHANGED_BEACON) { 402 - WL_ERROR(("BSS_CHANGED_BEACON\n")); 400 + WL_ERROR("BSS_CHANGED_BEACON\n"); 403 401 /* Beacon data changed, retrieve new beacon (beaconing modes) */ 404 402 } 405 403 if (changed & BSS_CHANGED_BEACON_ENABLED) { 406 - WL_ERROR(("Beacon enabled:\t%s\n", 407 - info->enable_beacon ? "True" : "False")); 404 + WL_ERROR("Beacon enabled:\t%s\n", 405 + info->enable_beacon ? "True" : "False"); 408 406 /* Beaconing should be enabled/disabled (beaconing modes) */ 409 407 } 410 408 return; ··· 420 418 changed_flags &= MAC_FILTERS; 421 419 *total_flags &= MAC_FILTERS; 422 420 if (changed_flags & FIF_PROMISC_IN_BSS) 423 - WL_ERROR(("FIF_PROMISC_IN_BSS\n")); 421 + WL_ERROR("FIF_PROMISC_IN_BSS\n"); 424 422 if (changed_flags & FIF_ALLMULTI) 425 - WL_ERROR(("FIF_ALLMULTI\n")); 423 + WL_ERROR("FIF_ALLMULTI\n"); 426 424 if (changed_flags & FIF_FCSFAIL) 427 - WL_ERROR(("FIF_FCSFAIL\n")); 425 + WL_ERROR("FIF_FCSFAIL\n"); 428 426 if (changed_flags & FIF_PLCPFAIL) 429 - WL_ERROR(("FIF_PLCPFAIL\n")); 427 + WL_ERROR("FIF_PLCPFAIL\n"); 430 428 if (changed_flags & FIF_CONTROL) 431 - WL_ERROR(("FIF_CONTROL\n")); 429 + WL_ERROR("FIF_CONTROL\n"); 432 430 if (changed_flags & FIF_OTHER_BSS) 433 - WL_ERROR(("FIF_OTHER_BSS\n")); 431 + WL_ERROR("FIF_OTHER_BSS\n"); 434 432 if (changed_flags & FIF_BCN_PRBRESP_PROMISC) { 435 - WL_NONE(("FIF_BCN_PRBRESP_PROMISC\n")); 433 + WL_NONE("FIF_BCN_PRBRESP_PROMISC\n"); 436 434 WL_LOCK(wl); 437 435 if (*total_flags & FIF_BCN_PRBRESP_PROMISC) { 438 436 wl->pub->mac80211_state |= MAC80211_PROMISC_BCNS; ··· 449 447 static int 450 448 wl_ops_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set) 451 449 { 452 - WL_ERROR(("%s: Enter\n", __func__)); 450 + WL_ERROR("%s: Enter\n", __func__); 453 451 return 0; 454 452 } 455 453 456 454 static void wl_ops_sw_scan_start(struct ieee80211_hw *hw) 457 455 { 458 - WL_NONE(("Scan Start\n")); 456 + WL_NONE("Scan Start\n"); 459 457 return; 460 458 } 461 459 462 460 static void wl_ops_sw_scan_complete(struct ieee80211_hw *hw) 463 461 { 464 - WL_NONE(("Scan Complete\n")); 462 + WL_NONE("Scan Complete\n"); 465 463 return; 466 464 } 467 465 468 466 static void wl_ops_set_tsf(struct ieee80211_hw *hw, u64 tsf) 469 467 { 470 - WL_ERROR(("%s: Enter\n", __func__)); 468 + WL_ERROR("%s: Enter\n", __func__); 471 469 return; 472 470 } 473 471 ··· 475 473 wl_ops_get_stats(struct ieee80211_hw *hw, 476 474 struct ieee80211_low_level_stats *stats) 477 475 { 478 - WL_ERROR(("%s: Enter\n", __func__)); 476 + WL_ERROR("%s: Enter\n", __func__); 479 477 return 0; 480 478 } 481 479 482 480 static int wl_ops_set_rts_threshold(struct ieee80211_hw *hw, u32 value) 483 481 { 484 - WL_ERROR(("%s: Enter\n", __func__)); 482 + WL_ERROR("%s: Enter\n", __func__); 485 483 return 0; 486 484 } 487 485 ··· 489 487 wl_ops_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 490 488 enum sta_notify_cmd cmd, struct ieee80211_sta *sta) 491 489 { 492 - WL_NONE(("%s: Enter\n", __func__)); 490 + WL_NONE("%s: Enter\n", __func__); 493 491 switch (cmd) { 494 492 default: 495 - WL_ERROR(("%s: Uknown cmd = %d\n", __func__, cmd)); 493 + WL_ERROR("%s: Unknown cmd = %d\n", __func__, cmd); 496 494 break; 497 495 } 498 496 return; ··· 504 502 { 505 503 struct wl_info *wl = hw->priv; 506 504 507 - WL_NONE(("%s: Enter (WME config)\n", __func__)); 508 - WL_NONE(("queue %d, txop %d, cwmin %d, cwmax %d, aifs %d\n", queue, 509 - params->txop, params->cw_min, params->cw_max, params->aifs)); 505 + WL_NONE("%s: Enter (WME config)\n", __func__); 506 + WL_NONE("queue %d, txop %d, cwmin %d, cwmax %d, aifs %d\n", queue, 507 + params->txop, params->cw_min, params->cw_max, params->aifs); 510 508 511 509 WL_LOCK(wl); 512 510 wlc_wme_setparams(wl->wlc, queue, (void *)params, true); ··· 517 515 518 516 static u64 wl_ops_get_tsf(struct ieee80211_hw *hw) 519 517 { 520 - WL_ERROR(("%s: Enter\n", __func__)); 518 + WL_ERROR("%s: Enter\n", __func__); 521 519 return 0; 522 520 } 523 521 ··· 560 558 wl_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 561 559 struct ieee80211_sta *sta) 562 560 { 563 - WL_NONE(("%s: Enter\n", __func__)); 561 + WL_NONE("%s: Enter\n", __func__); 564 562 return 0; 565 563 } 566 564 ··· 578 576 ASSERT(scb->magic == SCB_MAGIC); 579 577 switch (action) { 580 578 case IEEE80211_AMPDU_RX_START: 581 - WL_NONE(("%s: action = IEEE80211_AMPDU_RX_START\n", __func__)); 579 + WL_NONE("%s: action = IEEE80211_AMPDU_RX_START\n", __func__); 582 580 break; 583 581 case IEEE80211_AMPDU_RX_STOP: 584 - WL_NONE(("%s: action = IEEE80211_AMPDU_RX_STOP\n", __func__)); 582 + WL_NONE("%s: action = IEEE80211_AMPDU_RX_STOP\n", __func__); 585 583 break; 586 584 case IEEE80211_AMPDU_TX_START: 587 585 if (!wlc_aggregatable(wl->wlc, tid)) { 588 - /* WL_ERROR(("START: tid %d is not agg' able, return FAILURE to stack\n", tid)); */ 586 + /* WL_ERROR("START: tid %d is not agg' able, return FAILURE to stack\n", tid); */ 589 587 return -1; 590 588 } 591 589 /* XXX: Use the starting sequence number provided ... */ ··· 599 597 case IEEE80211_AMPDU_TX_OPERATIONAL: 600 598 /* Not sure what to do here */ 601 599 /* Power save wakeup */ 602 - WL_NONE(("%s: action = IEEE80211_AMPDU_TX_OPERATIONAL\n", 603 - __func__)); 600 + WL_NONE("%s: action = IEEE80211_AMPDU_TX_OPERATIONAL\n", 601 + __func__); 604 602 break; 605 603 default: 606 - WL_ERROR(("%s: Invalid command, ignoring\n", __func__)); 604 + WL_ERROR("%s: Invalid command, ignoring\n", __func__); 607 605 } 608 606 609 607 return 0; ··· 634 632 635 633 static int wl_set_hint(struct wl_info *wl, char *abbrev) 636 634 { 637 - WL_ERROR(("%s: Sending country code %c%c to MAC80211\n", __func__, 638 - abbrev[0], abbrev[1])); 635 + WL_ERROR("%s: Sending country code %c%c to MAC80211\n", 636 + __func__, abbrev[0], abbrev[1]); 639 637 return regulatory_hint(wl->pub->ieee_hw->wiphy, abbrev); 640 638 } 641 639 ··· 665 663 err = 0; 666 664 667 665 if (unit < 0) { 668 - WL_ERROR(("wl%d: unit number overflow, exiting\n", unit)); 666 + WL_ERROR("wl%d: unit number overflow, exiting\n", unit); 669 667 return NULL; 670 668 } 671 669 ··· 693 691 /* Do nothing */ 694 692 } else { 695 693 bustype = PCI_BUS; 696 - WL_TRACE(("force to PCI\n")); 694 + WL_TRACE("force to PCI\n"); 697 695 } 698 696 wl->bcm_bustype = bustype; 699 697 700 698 wl->regsva = ioremap_nocache(base_addr, PCI_BAR0_WINSZ); 701 699 if (wl->regsva == NULL) { 702 - WL_ERROR(("wl%d: ioremap() failed\n", unit)); 700 + WL_ERROR("wl%d: ioremap() failed\n", unit); 703 701 goto fail; 704 702 } 705 703 spin_lock_init(&wl->lock); ··· 731 729 732 730 733 731 if (wlc_iovar_setint(wl->wlc, "mpc", 0)) { 734 - WL_ERROR(("wl%d: Error setting MPC variable to 0\n", 735 - unit)); 732 + WL_ERROR("wl%d: Error setting MPC variable to 0\n", unit); 736 733 } 737 734 738 735 /* register our interrupt handler */ 739 736 if (request_irq(irq, wl_isr, IRQF_SHARED, KBUILD_MODNAME, wl)) { 740 - WL_ERROR(("wl%d: request_irq() failed\n", unit)); 737 + WL_ERROR("wl%d: request_irq() failed\n", unit); 741 738 goto fail; 742 739 } 743 740 wl->irq = irq; ··· 746 745 NULL); 747 746 748 747 if (ieee_hw_init(hw)) { 749 - WL_ERROR(("wl%d: %s: ieee_hw_init failed!\n", unit, __func__)); 748 + WL_ERROR("wl%d: %s: ieee_hw_init failed!\n", unit, __func__); 750 749 goto fail; 751 750 } 752 751 ··· 756 755 757 756 err = ieee80211_register_hw(hw); 758 757 if (err) { 759 - WL_ERROR(("%s: ieee80211_register_hw failed, status %d\n", 760 - __func__, err)); 758 + WL_ERROR("%s: ieee80211_register_hw failed, status %d\n", 759 + __func__, err); 761 760 } 762 761 763 762 if (wl->pub->srom_ccode[0]) ··· 765 764 else 766 765 err = wl_set_hint(wl, "US"); 767 766 if (err) { 768 - WL_ERROR(("%s: regulatory_hint failed, status %d\n", __func__, 769 - err)); 767 + WL_ERROR("%s: regulatory_hint failed, status %d\n", 768 + __func__, err); 770 769 } 771 - WL_ERROR(("wl%d: Broadcom BCM43xx 802.11 MAC80211 Driver " 772 - " (" PHY_VERSION_STR ")", unit)); 770 + WL_ERROR("wl%d: Broadcom BCM43xx 802.11 MAC80211 Driver (" PHY_VERSION_STR ")", 771 + unit); 773 772 774 773 #ifdef BCMDBG 775 774 printf(" (Compiled at " __TIME__ " on " __DATE__ ")"); ··· 965 964 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; 966 965 967 966 if (wlc_get(wl->wlc, WLC_GET_PHYLIST, (int *)&phy_list) < 0) { 968 - WL_ERROR(("Phy list failed\n")); 967 + WL_ERROR("Phy list failed\n"); 969 968 } 970 - WL_NONE(("%s: phylist = %c\n", __func__, phy_list[0])); 969 + WL_NONE("%s: phylist = %c\n", __func__, phy_list[0]); 971 970 972 971 if (phy_list[0] == 'n' || phy_list[0] == 'c') { 973 972 if (phy_list[0] == 'c') { ··· 992 991 } 993 992 } 994 993 995 - WL_NONE(("%s: 2ghz = %d, 5ghz = %d\n", __func__, 1, has_5g)); 994 + WL_NONE("%s: 2ghz = %d, 5ghz = %d\n", __func__, 1, has_5g); 996 995 997 996 return 0; 998 997 } ··· 1040 1039 1041 1040 ASSERT(pdev); 1042 1041 1043 - WL_TRACE(("%s: bus %d slot %d func %d irq %d\n", __func__, 1044 - pdev->bus->number, PCI_SLOT(pdev->devfn), 1045 - PCI_FUNC(pdev->devfn), pdev->irq)); 1042 + WL_TRACE("%s: bus %d slot %d func %d irq %d\n", 1043 + __func__, pdev->bus->number, PCI_SLOT(pdev->devfn), 1044 + PCI_FUNC(pdev->devfn), pdev->irq); 1046 1045 1047 1046 if ((pdev->vendor != PCI_VENDOR_ID_BROADCOM) || 1048 1047 (((pdev->device & 0xff00) != 0x4300) && ··· 1052 1051 1053 1052 rc = pci_enable_device(pdev); 1054 1053 if (rc) { 1055 - WL_ERROR(("%s: Cannot enable device %d-%d_%d\n", __func__, 1056 - pdev->bus->number, PCI_SLOT(pdev->devfn), 1057 - PCI_FUNC(pdev->devfn))); 1054 + WL_ERROR("%s: Cannot enable device %d-%d_%d\n", 1055 + __func__, pdev->bus->number, PCI_SLOT(pdev->devfn), 1056 + PCI_FUNC(pdev->devfn)); 1058 1057 return -ENODEV; 1059 1058 } 1060 1059 pci_set_master(pdev); ··· 1065 1064 1066 1065 hw = ieee80211_alloc_hw(sizeof(struct wl_info), &wl_ops); 1067 1066 if (!hw) { 1068 - WL_ERROR(("%s: ieee80211_alloc_hw failed\n", __func__)); 1067 + WL_ERROR("%s: ieee80211_alloc_hw failed\n", __func__); 1069 1068 rc = -ENOMEM; 1070 1069 goto err_1; 1071 1070 } ··· 1080 1079 PCI_BUS, pdev, pdev->irq); 1081 1080 1082 1081 if (!wl) { 1083 - WL_ERROR(("%s: %s: wl_attach failed!\n", 1084 - KBUILD_MODNAME, __func__)); 1082 + WL_ERROR("%s: %s: wl_attach failed!\n", 1083 + KBUILD_MODNAME, __func__); 1085 1084 return -ENODEV; 1086 1085 } 1087 1086 return 0; 1088 1087 err_1: 1089 - WL_ERROR(("%s: err_1: Major hoarkage\n", __func__)); 1088 + WL_ERROR("%s: err_1: Major hoarkage\n", __func__); 1090 1089 return 0; 1091 1090 } 1092 1091 ··· 1096 1095 struct wl_info *wl; 1097 1096 struct ieee80211_hw *hw; 1098 1097 1099 - WL_TRACE(("wl: wl_suspend\n")); 1098 + WL_TRACE("wl: wl_suspend\n"); 1100 1099 1101 1100 hw = pci_get_drvdata(pdev); 1102 1101 wl = HW_TO_WL(hw); 1103 1102 if (!wl) { 1104 - WL_ERROR(("wl: wl_suspend: pci_get_drvdata failed\n")); 1103 + WL_ERROR("wl: wl_suspend: pci_get_drvdata failed\n"); 1105 1104 return -ENODEV; 1106 1105 } 1107 1106 ··· 1121 1120 int err = 0; 1122 1121 u32 val; 1123 1122 1124 - WL_TRACE(("wl: wl_resume\n")); 1123 + WL_TRACE("wl: wl_resume\n"); 1125 1124 hw = pci_get_drvdata(pdev); 1126 1125 wl = HW_TO_WL(hw); 1127 1126 if (!wl) { 1128 - WL_ERROR(("wl: wl_resume: pci_get_drvdata failed\n")); 1127 + WL_ERROR("wl: wl_resume: pci_get_drvdata failed\n"); 1129 1128 return -ENODEV; 1130 1129 } 1131 1130 ··· 1161 1160 hw = pci_get_drvdata(pdev); 1162 1161 wl = HW_TO_WL(hw); 1163 1162 if (!wl) { 1164 - WL_ERROR(("wl: wl_remove: pci_get_drvdata failed\n")); 1163 + WL_ERROR("wl: wl_remove: pci_get_drvdata failed\n"); 1165 1164 return; 1166 1165 } 1167 1166 if (!wlc_chipmatch(pdev->vendor, pdev->device)) { 1168 - WL_ERROR(("wl: wl_remove: wlc_chipmatch failed\n")); 1167 + WL_ERROR("wl: wl_remove: wlc_chipmatch failed\n"); 1169 1168 return; 1170 1169 } 1171 1170 if (wl->wlc) { ··· 1173 1172 WL_LOCK(wl); 1174 1173 wl_down(wl); 1175 1174 WL_UNLOCK(wl); 1176 - WL_NONE(("%s: Down\n", __func__)); 1175 + WL_NONE("%s: Down\n", __func__); 1177 1176 } 1178 1177 pci_disable_device(pdev); 1179 1178 ··· 1335 1334 void wl_txflowcontrol(struct wl_info *wl, struct wl_if *wlif, bool state, 1336 1335 int prio) 1337 1336 { 1338 - WL_ERROR(("Shouldn't be here %s\n", __func__)); 1337 + WL_ERROR("Shouldn't be here %s\n", __func__); 1339 1338 } 1340 1339 1341 1340 void wl_init(struct wl_info *wl) 1342 1341 { 1343 - WL_TRACE(("wl%d: wl_init\n", wl->pub->unit)); 1342 + WL_TRACE("wl%d: wl_init\n", wl->pub->unit); 1344 1343 1345 1344 wl_reset(wl); 1346 1345 ··· 1349 1348 1350 1349 uint wl_reset(struct wl_info *wl) 1351 1350 { 1352 - WL_TRACE(("wl%d: wl_reset\n", wl->pub->unit)); 1351 + WL_TRACE("wl%d: wl_reset\n", wl->pub->unit); 1353 1352 1354 1353 wlc_reset(wl->wlc); 1355 1354 ··· 1495 1494 1496 1495 static void wl_link_up(struct wl_info *wl, char *ifname) 1497 1496 { 1498 - WL_ERROR(("wl%d: link up (%s)\n", wl->pub->unit, ifname)); 1497 + WL_ERROR("wl%d: link up (%s)\n", wl->pub->unit, ifname); 1499 1498 } 1500 1499 1501 1500 static void wl_link_down(struct wl_info *wl, char *ifname) 1502 1501 { 1503 - WL_ERROR(("wl%d: link down (%s)\n", wl->pub->unit, ifname)); 1502 + WL_ERROR("wl%d: link down (%s)\n", wl->pub->unit, ifname); 1504 1503 } 1505 1504 1506 1505 void wl_event(struct wl_info *wl, char *ifname, wlc_event_t *e) ··· 1552 1551 1553 1552 t = kmalloc(sizeof(wl_timer_t), GFP_ATOMIC); 1554 1553 if (!t) { 1555 - WL_ERROR(("wl%d: wl_init_timer: out of memory\n", wl->pub->unit)); 1554 + WL_ERROR("wl%d: wl_init_timer: out of memory\n", wl->pub->unit); 1556 1555 return 0; 1557 1556 } 1558 1557 ··· 1583 1582 { 1584 1583 #ifdef BCMDBG 1585 1584 if (t->set) { 1586 - WL_ERROR(("%s: Already set. Name: %s, per %d\n", 1587 - __func__, t->name, periodic)); 1585 + WL_ERROR("%s: Already set. Name: %s, per %d\n", 1586 + __func__, t->name, periodic); 1588 1587 } 1589 1588 #endif 1590 1589 ASSERT(!t->set); ··· 1753 1752 break; 1754 1753 sprintf(fw_name, "%s-%d.fw", wl_firmwares[i], 1755 1754 UCODE_LOADER_API_VER); 1756 - WL_NONE(("request fw %s\n", fw_name)); 1755 + WL_NONE("request fw %s\n", fw_name); 1757 1756 status = request_firmware(&wl->fw.fw_bin[i], fw_name, device); 1758 1757 if (status) { 1759 1758 printf("%s: fail to load firmware %s\n", ··· 1761 1760 wl_release_fw(wl); 1762 1761 return status; 1763 1762 } 1764 - WL_NONE(("request fw %s\n", fw_name)); 1763 + WL_NONE("request fw %s\n", fw_name); 1765 1764 sprintf(fw_name, "%s_hdr-%d.fw", wl_firmwares[i], 1766 1765 UCODE_LOADER_API_VER); 1767 1766 status = request_firmware(&wl->fw.fw_hdr[i], fw_name, device); ··· 1773 1772 } 1774 1773 wl->fw.hdr_num_entries[i] = 1775 1774 wl->fw.fw_hdr[i]->size / (sizeof(struct wl_fw_hdr)); 1776 - WL_NONE(("request fw %s find: %d entries\n", fw_name, 1777 - wl->fw.hdr_num_entries[i])); 1775 + WL_NONE("request fw %s find: %d entries\n", 1776 + fw_name, wl->fw.hdr_num_entries[i]); 1778 1777 } 1779 1778 wl->fw.fw_cnt = i; 1780 1779 return wl_ucode_data_init(wl); ··· 1812 1811 if (fw == NULL && fw_hdr == NULL) { 1813 1812 break; 1814 1813 } else if (fw == NULL || fw_hdr == NULL) { 1815 - WL_ERROR(("%s: invalid bin/hdr fw\n", __func__)); 1814 + WL_ERROR("%s: invalid bin/hdr fw\n", __func__); 1816 1815 rc = -EBADF; 1817 1816 } else if (fw_hdr->size % sizeof(struct wl_fw_hdr)) { 1818 - WL_ERROR(("%s: non integral fw hdr file size %d/%d\n", 1819 - __func__, fw_hdr->size, 1820 - sizeof(struct wl_fw_hdr))); 1817 + WL_ERROR("%s: non integral fw hdr file size %d/%zu\n", 1818 + __func__, fw_hdr->size, 1819 + sizeof(struct wl_fw_hdr)); 1821 1820 rc = -EBADF; 1822 1821 } else if (fw->size < MIN_FW_SIZE || fw->size > MAX_FW_SIZE) { 1823 - WL_ERROR(("%s: out of bounds fw file size %d\n", 1824 - __func__, fw->size)); 1822 + WL_ERROR("%s: out of bounds fw file size %d\n", 1823 + __func__, fw->size); 1825 1824 rc = -EBADF; 1826 1825 } else { 1827 1826 /* check if ucode section overruns firmware image */ ··· 1830 1829 entry++, ucode_hdr++) { 1831 1830 if (ucode_hdr->offset + ucode_hdr->len > 1832 1831 fw->size) { 1833 - WL_ERROR(("%s: conflicting bin/hdr\n", 1834 - __func__)); 1832 + WL_ERROR("%s: conflicting bin/hdr\n", 1833 + __func__); 1835 1834 rc = -EBADF; 1836 1835 } 1837 1836 } 1838 1837 } 1839 1838 } 1840 1839 if (rc == 0 && wl->fw.fw_cnt != i) { 1841 - WL_ERROR(("%s: invalid fw_cnt=%d\n", __func__, wl->fw.fw_cnt)); 1840 + WL_ERROR("%s: invalid fw_cnt=%d\n", __func__, wl->fw.fw_cnt); 1842 1841 rc = -EBADF; 1843 1842 } 1844 1843 return rc;
+1 -1
drivers/staging/brcm80211/sys/wlc_alloc.c
··· 43 43 44 44 item = kzalloc(size, GFP_ATOMIC); 45 45 if (item == NULL) 46 - WL_ERROR(("wl%d: %s: out of memory\n", unit, __func__)); 46 + WL_ERROR("wl%d: %s: out of memory\n", unit, __func__); 47 47 return item; 48 48 } 49 49
+55 -44
drivers/staging/brcm80211/sys/wlc_ampdu.c
··· 174 174 175 175 ampdu = kzalloc(sizeof(struct ampdu_info), GFP_ATOMIC); 176 176 if (!ampdu) { 177 - WL_ERROR(("wl%d: wlc_ampdu_attach: out of mem\n", wlc->pub->unit)); 177 + WL_ERROR("wl%d: wlc_ampdu_attach: out of mem\n", 178 + wlc->pub->unit); 178 179 return NULL; 179 180 } 180 181 ampdu->wlc = wlc; ··· 245 244 scb_ampdu_t *scb_ampdu = SCB_AMPDU_CUBBY(ampdu, scb); 246 245 u8 tid; 247 246 248 - WL_AMPDU_UPDN(("scb_ampdu_cleanup: enter\n")); 247 + WL_AMPDU_UPDN("scb_ampdu_cleanup: enter\n"); 249 248 ASSERT(scb_ampdu); 250 249 251 250 for (tid = 0; tid < AMPDU_MAX_SCB_TID; tid++) { ··· 258 257 */ 259 258 void wlc_ampdu_reset(struct ampdu_info *ampdu) 260 259 { 261 - WL_NONE(("%s: Entering\n", __func__)); 260 + WL_NONE("%s: Entering\n", __func__); 262 261 } 263 262 264 263 static void scb_ampdu_update_config(struct ampdu_info *ampdu, struct scb *scb) ··· 339 338 M_UCODE_MACSTAT + offsetof(macstat_t, txfunfl[fid])); 340 339 new_txunfl = (u16) (cur_txunfl - fifo->prev_txfunfl); 341 340 if (new_txunfl == 0) { 342 - WL_FFPLD(("check_txunfl : TX status FRAG set but no tx underflows\n")); 341 + WL_FFPLD("check_txunfl : TX status FRAG set but no tx underflows\n"); 343 342 return -1; 344 343 } 345 344 fifo->prev_txfunfl = cur_txunfl; ··· 349 348 350 349 /* check if fifo is big enough */ 351 350 if (wlc_xmtfifo_sz_get(wlc, fid, &xmtfifo_sz)) { 352 - WL_FFPLD(("check_txunfl : get xmtfifo_sz failed.\n")); 351 + WL_FFPLD("check_txunfl : get xmtfifo_sz failed\n"); 353 352 return -1; 354 353 } 355 354 ··· 363 362 if (fifo->accum_txfunfl < 10) 364 363 return 0; 365 364 366 - WL_FFPLD(("ampdu_count %d tx_underflows %d\n", 367 - current_ampdu_cnt, fifo->accum_txfunfl)); 365 + WL_FFPLD("ampdu_count %d tx_underflows %d\n", 366 + current_ampdu_cnt, fifo->accum_txfunfl); 368 367 369 368 /* 370 369 compute the current ratio of tx unfl per ampdu. ··· 417 416 (max_mpdu * FFPLD_MPDU_SIZE - fifo->ampdu_pld_size)) 418 417 / (max_mpdu * FFPLD_MPDU_SIZE)) * 100; 419 418 420 - WL_FFPLD(("DMA estimated transfer rate %d; pre-load size %d\n", 421 - fifo->dmaxferrate, fifo->ampdu_pld_size)); 419 + WL_FFPLD("DMA estimated transfer rate %d; pre-load size %d\n", 420 + fifo->dmaxferrate, fifo->ampdu_pld_size); 422 421 } else { 423 422 424 423 /* decrease ampdu size */ ··· 553 552 wlc_ampdu_agg(ampdu, scb, p, tid); 554 553 555 554 if (wlc->block_datafifo) { 556 - WL_ERROR(("%s: Fifo blocked\n", __func__)); 555 + WL_ERROR("%s: Fifo blocked\n", __func__); 557 556 return BCME_BUSY; 558 557 } 559 558 rr_retry_limit = ampdu->rr_retry_limit_tid[tid]; ··· 568 567 if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) { 569 568 err = wlc_prep_pdu(wlc, p, &fifo); 570 569 } else { 571 - WL_ERROR(("%s: AMPDU flag is off!\n", __func__)); 570 + WL_ERROR("%s: AMPDU flag is off!\n", __func__); 572 571 *pdu = NULL; 573 572 err = 0; 574 573 break; ··· 576 575 577 576 if (err) { 578 577 if (err == BCME_BUSY) { 579 - WL_ERROR(("wl%d: wlc_sendampdu: prep_xdu retry; seq 0x%x\n", wlc->pub->unit, seq)); 578 + WL_ERROR("wl%d: wlc_sendampdu: prep_xdu retry; seq 0x%x\n", 579 + wlc->pub->unit, seq); 580 580 WLCNTINCR(ampdu->cnt->sduretry); 581 581 *pdu = p; 582 582 break; 583 583 } 584 584 585 585 /* error in the packet; reject it */ 586 - WL_AMPDU_ERR(("wl%d: wlc_sendampdu: prep_xdu rejected; seq 0x%x\n", wlc->pub->unit, seq)); 586 + WL_AMPDU_ERR("wl%d: wlc_sendampdu: prep_xdu rejected; seq 0x%x\n", 587 + wlc->pub->unit, seq); 587 588 WLCNTINCR(ampdu->cnt->sdurejected); 588 589 589 590 *pdu = NULL; ··· 627 624 ndelim = txh->RTSPLCPFallback[AMPDU_FBR_NULL_DELIM]; 628 625 seg_cnt += 1; 629 626 630 - WL_AMPDU_TX(("wl%d: wlc_sendampdu: mpdu %d plcp_len %d\n", 631 - wlc->pub->unit, count, len)); 627 + WL_AMPDU_TX("wl%d: wlc_sendampdu: mpdu %d plcp_len %d\n", 628 + wlc->pub->unit, count, len); 632 629 633 630 /* 634 631 * aggregateable mpdu. For ucode/hw agg, ··· 659 656 660 657 dma_len += (u16) pkttotlen(osh, p); 661 658 662 - WL_AMPDU_TX(("wl%d: wlc_sendampdu: ampdu_len %d seg_cnt %d null delim %d\n", wlc->pub->unit, ampdu_len, seg_cnt, ndelim)); 659 + WL_AMPDU_TX("wl%d: wlc_sendampdu: ampdu_len %d seg_cnt %d null delim %d\n", 660 + wlc->pub->unit, ampdu_len, seg_cnt, ndelim); 663 661 664 662 txh->MacTxControlLow = htol16(mcl); 665 663 ··· 690 686 min(scb_ampdu->max_rxlen, 691 687 ampdu->max_txlen[mcs][is40][sgi]); 692 688 693 - WL_NONE(("sendampdu: sgi %d, is40 %d, mcs %d\n", sgi, 694 - is40, mcs)); 689 + WL_NONE("sendampdu: sgi %d, is40 %d, mcs %d\n", 690 + sgi, is40, mcs); 695 691 696 692 maxlen = 64 * 1024; /* XXX Fix me to honor real max_rxlen */ 697 693 ··· 734 730 /* test whether to add more */ 735 731 if ((MCS_RATE(mcs, true, false) >= f->dmaxferrate) && 736 732 (count == f->mcs2ampdu_table[mcs])) { 737 - WL_AMPDU_ERR(("wl%d: PR 37644: stopping ampdu at %d for mcs %d", wlc->pub->unit, count, mcs)); 733 + WL_AMPDU_ERR("wl%d: PR 37644: stopping ampdu at %d for mcs %d\n", 734 + wlc->pub->unit, count, mcs); 738 735 break; 739 736 } 740 737 741 738 if (count == scb_ampdu->max_pdu) { 742 - WL_NONE(("Stop taking from q, reached %d deep\n", 743 - scb_ampdu->max_pdu)); 739 + WL_NONE("Stop taking from q, reached %d deep\n", 740 + scb_ampdu->max_pdu); 744 741 break; 745 742 } 746 743 ··· 759 754 760 755 if ((plen + ampdu_len) > maxlen) { 761 756 p = NULL; 762 - WL_ERROR(("%s: Bogus plen #1\n", 763 - __func__)); 757 + WL_ERROR("%s: Bogus plen #1\n", 758 + __func__); 764 759 ASSERT(3 == 4); 765 760 continue; 766 761 } 767 762 768 763 /* check if there are enough descriptors available */ 769 764 if (TXAVAIL(wlc, fifo) <= (seg_cnt + 1)) { 770 - WL_ERROR(("%s: No fifo space !!!!!!\n", __func__)); 765 + WL_ERROR("%s: No fifo space !!!!!!\n", 766 + __func__); 771 767 p = NULL; 772 768 continue; 773 769 } ··· 875 869 WLC_SET_MIMO_PLCP_AMPDU(txh->FragPLCPFallback); 876 870 } 877 871 878 - WL_AMPDU_TX(("wl%d: wlc_sendampdu: count %d ampdu_len %d\n", 879 - wlc->pub->unit, count, ampdu_len)); 872 + WL_AMPDU_TX("wl%d: wlc_sendampdu: count %d ampdu_len %d\n", 873 + wlc->pub->unit, count, ampdu_len); 880 874 881 875 /* inform rate_sel if it this is a rate probe pkt */ 882 876 frameid = ltoh16(txh->TxFrameID); 883 877 if (frameid & TXFID_RATE_PROBE_MASK) { 884 - WL_ERROR(("%s: XXX what to do with TXFID_RATE_PROBE_MASK!?\n", __func__)); 878 + WL_ERROR("%s: XXX what to do with TXFID_RATE_PROBE_MASK!?\n", 879 + __func__); 885 880 } 886 881 for (i = 0; i < count; i++) 887 882 wlc_txfifo(wlc, fifo, pkt[i], i == (count - 1), ··· 1036 1029 if (supr_status) { 1037 1030 update_rate = false; 1038 1031 if (supr_status == TX_STATUS_SUPR_BADCH) { 1039 - WL_ERROR(("%s: Pkt tx suppressed, illegal channel possibly %d\n", __func__, CHSPEC_CHANNEL(wlc->default_bss->chanspec))); 1032 + WL_ERROR("%s: Pkt tx suppressed, illegal channel possibly %d\n", 1033 + __func__, 1034 + CHSPEC_CHANNEL(wlc->default_bss->chanspec)); 1040 1035 } else { 1041 1036 if (supr_status == TX_STATUS_SUPR_FRAG) 1042 - WL_NONE(("%s: AMPDU frag err\n", 1043 - __func__)); 1037 + WL_NONE("%s: AMPDU frag err\n", 1038 + __func__); 1044 1039 else 1045 - WL_ERROR(("%s: wlc_ampdu_dotxstatus: supr_status 0x%x\n", __func__, supr_status)); 1040 + WL_ERROR("%s: wlc_ampdu_dotxstatus: supr_status 0x%x\n", 1041 + __func__, supr_status); 1046 1042 } 1047 1043 /* no need to retry for badch; will fail again */ 1048 1044 if (supr_status == TX_STATUS_SUPR_BADCH || ··· 1069 1059 } else if (txs->phyerr) { 1070 1060 update_rate = false; 1071 1061 WLCNTINCR(wlc->pub->_cnt->txphyerr); 1072 - WL_ERROR(("wl%d: wlc_ampdu_dotxstatus: tx phy error (0x%x)\n", wlc->pub->unit, txs->phyerr)); 1062 + WL_ERROR("wl%d: wlc_ampdu_dotxstatus: tx phy error (0x%x)\n", 1063 + wlc->pub->unit, txs->phyerr); 1073 1064 1074 1065 #ifdef BCMDBG 1075 1066 if (WL_ERROR_ON()) { ··· 1102 1091 if (ba_recd) { 1103 1092 bindex = MODSUB_POW2(seq, start_seq, SEQNUM_MAX); 1104 1093 1105 - WL_AMPDU_TX(("%s: tid %d seq is %d, start_seq is %d, " 1106 - "bindex is %d set %d, index %d\n", 1107 - __func__, tid, seq, start_seq, bindex, 1108 - isset(bitmap, bindex), index)); 1094 + WL_AMPDU_TX("%s: tid %d seq is %d, start_seq is %d, bindex is %d set %d, index %d\n", 1095 + __func__, tid, seq, start_seq, bindex, 1096 + isset(bitmap, bindex), index); 1109 1097 1110 1098 /* if acked then clear bit and free packet */ 1111 1099 if ((bindex < AMPDU_TX_BA_MAX_WSIZE) ··· 1157 1147 IEEE80211_TX_STAT_AMPDU_NO_BACK; 1158 1148 skb_pull(p, D11_PHY_HDR_LEN); 1159 1149 skb_pull(p, D11_TXH_LEN); 1160 - WL_ERROR(("%s: BA Timeout, seq %d, in_transit %d\n", SHORTNAME, seq, ini->tx_in_transit)); 1150 + WL_ERROR("%s: BA Timeout, seq %d, in_transit %d\n", 1151 + SHORTNAME, seq, ini->tx_in_transit); 1161 1152 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, 1162 1153 p); 1163 1154 } ··· 1194 1183 if (!ini) 1195 1184 return; 1196 1185 1197 - WL_AMPDU_CTL(("wl%d: ampdu_cleanup_tid_ini: tid %d\n", 1198 - ampdu->wlc->pub->unit, tid)); 1186 + WL_AMPDU_CTL("wl%d: ampdu_cleanup_tid_ini: tid %d\n", 1187 + ampdu->wlc->pub->unit, tid); 1199 1188 1200 1189 if (ini->tx_in_transit && !force) 1201 1190 return; ··· 1221 1210 1222 1211 /* check for per-tid control of ampdu */ 1223 1212 if (!ampdu->ini_enable[tid]) { 1224 - WL_ERROR(("%s: Rejecting tid %d\n", __func__, tid)); 1213 + WL_ERROR("%s: Rejecting tid %d\n", __func__, tid); 1225 1214 return NULL; 1226 1215 } 1227 1216 ··· 1242 1231 1243 1232 if (on) { 1244 1233 if (!N_ENAB(wlc->pub)) { 1245 - WL_AMPDU_ERR(("wl%d: driver not nmode enabled\n", 1246 - wlc->pub->unit)); 1234 + WL_AMPDU_ERR("wl%d: driver not nmode enabled\n", 1235 + wlc->pub->unit); 1247 1236 return BCME_UNSUPPORTED; 1248 1237 } 1249 1238 if (!wlc_ampdu_cap(ampdu)) { 1250 - WL_AMPDU_ERR(("wl%d: device not ampdu capable\n", 1251 - wlc->pub->unit)); 1239 + WL_AMPDU_ERR("wl%d: device not ampdu capable\n", 1240 + wlc->pub->unit); 1252 1241 return BCME_UNSUPPORTED; 1253 1242 } 1254 1243 wlc->pub->_ampdu = on;
+2 -2
drivers/staging/brcm80211/sys/wlc_antsel.c
··· 102 102 103 103 asi = kzalloc(sizeof(struct antsel_info), GFP_ATOMIC); 104 104 if (!asi) { 105 - WL_ERROR(("wl%d: wlc_antsel_attach: out of mem\n", pub->unit)); 105 + WL_ERROR("wl%d: wlc_antsel_attach: out of mem\n", pub->unit); 106 106 return NULL; 107 107 } 108 108 ··· 131 131 asi->antsel_avail = false; 132 132 } else { 133 133 asi->antsel_avail = false; 134 - WL_ERROR(("wlc_antsel_attach: 2o3 board cfg invalid\n")); 134 + WL_ERROR("wlc_antsel_attach: 2o3 board cfg invalid\n"); 135 135 ASSERT(0); 136 136 } 137 137 break;
+157 -128
drivers/staging/brcm80211/sys/wlc_bmac.c
··· 217 217 if (WLCISNPHY(wlc_hw->band)) { 218 218 wlc_write_inits(wlc_hw, d11n0bsinitvals16); 219 219 } else { 220 - WL_ERROR(("%s: wl%d: unsupported phy in corerev %d\n", 221 - __func__, wlc_hw->unit, wlc_hw->corerev)); 220 + WL_ERROR("%s: wl%d: unsupported phy in corerev %d\n", 221 + __func__, wlc_hw->unit, wlc_hw->corerev); 222 222 } 223 223 } else { 224 224 if (D11REV_IS(wlc_hw->corerev, 24)) { 225 225 if (WLCISLCNPHY(wlc_hw->band)) { 226 226 wlc_write_inits(wlc_hw, d11lcn0bsinitvals24); 227 227 } else 228 - WL_ERROR(("%s: wl%d: unsupported phy in corerev %d\n", __func__, wlc_hw->unit, wlc_hw->corerev)); 228 + WL_ERROR("%s: wl%d: unsupported phy in corerev %d\n", 229 + __func__, wlc_hw->unit, 230 + wlc_hw->corerev); 229 231 } else { 230 - WL_ERROR(("%s: wl%d: unsupported corerev %d\n", 231 - __func__, wlc_hw->unit, wlc_hw->corerev)); 232 + WL_ERROR("%s: wl%d: unsupported corerev %d\n", 233 + __func__, wlc_hw->unit, wlc_hw->corerev); 232 234 } 233 235 } 234 236 } ··· 242 240 u32 macintmask; 243 241 u32 tmp; 244 242 245 - WL_TRACE(("wl%d: wlc_setband_inact\n", wlc_hw->unit)); 243 + WL_TRACE("wl%d: wlc_setband_inact\n", wlc_hw->unit); 246 244 247 245 ASSERT(bandunit != wlc_hw->band->bandunit); 248 246 ASSERT(si_iscoreup(wlc_hw->sih)); ··· 283 281 u32 tsf_h, tsf_l; 284 282 wlc_d11rxhdr_t *wlc_rxhdr = NULL; 285 283 286 - WL_TRACE(("wl%d: %s\n", wlc_hw->unit, __func__)); 284 + WL_TRACE("wl%d: %s\n", wlc_hw->unit, __func__); 287 285 /* gather received frames */ 288 286 while ((p = dma_rx(wlc_hw->di[fifo]))) { 289 287 ··· 335 333 bool fatal = false; 336 334 337 335 if (DEVICEREMOVED(wlc)) { 338 - WL_ERROR(("wl%d: %s: dead chip\n", wlc_hw->unit, __func__)); 336 + WL_ERROR("wl%d: %s: dead chip\n", wlc_hw->unit, __func__); 339 337 wl_down(wlc->wl); 340 338 return false; 341 339 } ··· 344 342 macintstatus = wlc->macintstatus; 345 343 wlc->macintstatus = 0; 346 344 347 - WL_TRACE(("wl%d: wlc_dpc: macintstatus 0x%x\n", wlc_hw->unit, 348 - macintstatus)); 345 + WL_TRACE("wl%d: wlc_dpc: macintstatus 0x%x\n", 346 + wlc_hw->unit, macintstatus); 349 347 350 348 if (macintstatus & MI_PRQ) { 351 349 /* Process probe request FIFO */ ··· 368 366 if (wlc_bmac_txstatus(wlc->hw, bounded, &fatal)) 369 367 wlc->macintstatus |= MI_TFS; 370 368 if (fatal) { 371 - WL_ERROR(("MI_TFS: fatal\n")); 369 + WL_ERROR("MI_TFS: fatal\n"); 372 370 goto fatal; 373 371 } 374 372 } ··· 378 376 379 377 /* ATIM window end */ 380 378 if (macintstatus & MI_ATIMWINEND) { 381 - WL_TRACE(("wlc_isr: end of ATIM window\n")); 379 + WL_TRACE("wlc_isr: end of ATIM window\n"); 382 380 383 381 OR_REG(wlc_hw->osh, &regs->maccommand, wlc->qvalid); 384 382 wlc->qvalid = 0; ··· 399 397 /* TX FIFO suspend/flush completion */ 400 398 if (macintstatus & MI_TXSTOP) { 401 399 if (wlc_bmac_tx_fifo_suspended(wlc_hw, TX_DATA_FIFO)) { 402 - /* WL_ERROR(("dpc: fifo_suspend_comlete\n")); */ 400 + /* WL_ERROR("dpc: fifo_suspend_comlete\n"); */ 403 401 } 404 402 } 405 403 ··· 409 407 } 410 408 411 409 if (macintstatus & MI_GP0) { 412 - WL_ERROR(("wl%d: PSM microcode watchdog fired at %d (seconds). Resetting.\n", wlc_hw->unit, wlc_hw->now)); 410 + WL_ERROR("wl%d: PSM microcode watchdog fired at %d (seconds). Resetting.\n", 411 + wlc_hw->unit, wlc_hw->now); 413 412 414 413 printk_once("%s : PSM Watchdog, chipid 0x%x, chiprev 0x%x\n", 415 414 __func__, wlc_hw->sih->chip, ··· 432 429 u32 rfd = R_REG(wlc_hw->osh, &regs->phydebug) & PDBG_RFD; 433 430 #endif 434 431 435 - WL_ERROR(("wl%d: MAC Detected a change on the RF Disable Input 0x%x\n", wlc_hw->unit, rfd)); 432 + WL_ERROR("wl%d: MAC Detected a change on the RF Disable Input 0x%x\n", 433 + wlc_hw->unit, rfd); 436 434 437 435 WLCNTINCR(wlc->pub->_cnt->rfdisable); 438 436 } ··· 461 457 struct wlc_info *wlc = (struct wlc_info *) arg; 462 458 struct wlc_hw_info *wlc_hw = wlc->hw; 463 459 464 - WL_TRACE(("wl%d: wlc_bmac_watchdog\n", wlc_hw->unit)); 460 + WL_TRACE("wl%d: wlc_bmac_watchdog\n", wlc_hw->unit); 465 461 466 462 if (!wlc_hw->up) 467 463 return; ··· 487 483 { 488 484 uint bandunit; 489 485 490 - WL_TRACE(("wl%d: wlc_bmac_set_chanspec 0x%x\n", wlc_hw->unit, 491 - chanspec)); 486 + WL_TRACE("wl%d: wlc_bmac_set_chanspec 0x%x\n", 487 + wlc_hw->unit, chanspec); 492 488 493 489 wlc_hw->chanspec = chanspec; 494 490 ··· 598 594 dma_addrwidth(wlc_hw->sih, DMAREG(wlc_hw, DMA_TX, 0)); 599 595 600 596 if (!wl_alloc_dma_resources(wlc_hw->wlc->wl, addrwidth)) { 601 - WL_ERROR(("wl%d: wlc_attach: alloc_dma_resources failed\n", unit)); 597 + WL_ERROR("wl%d: wlc_attach: alloc_dma_resources failed\n", 598 + unit); 602 599 return false; 603 600 } 604 601 ··· 672 667 /* Cleaner to leave this as if with AP defined */ 673 668 674 669 if (dma_attach_err) { 675 - WL_ERROR(("wl%d: wlc_attach: dma_attach failed\n", 676 - unit)); 670 + WL_ERROR("wl%d: wlc_attach: dma_attach failed\n", unit); 677 671 return false; 678 672 } 679 673 ··· 721 717 bool wme = false; 722 718 shared_phy_params_t sha_params; 723 719 724 - WL_TRACE(("wl%d: wlc_bmac_attach: vendor 0x%x device 0x%x\n", unit, 725 - vendor, device)); 720 + WL_TRACE("wl%d: wlc_bmac_attach: vendor 0x%x device 0x%x\n", 721 + unit, vendor, device); 726 722 727 723 ASSERT(sizeof(wlc_d11rxhdr_t) <= WL_HWRXOFF); 728 724 ··· 746 742 wlc_hw->sih = si_attach((uint) device, osh, regsva, bustype, btparam, 747 743 &wlc_hw->vars, &wlc_hw->vars_size); 748 744 if (wlc_hw->sih == NULL) { 749 - WL_ERROR(("wl%d: wlc_bmac_attach: si_attach failed\n", unit)); 745 + WL_ERROR("wl%d: wlc_bmac_attach: si_attach failed\n", unit); 750 746 err = 11; 751 747 goto fail; 752 748 } ··· 766 762 var = getvar(vars, "vendid"); 767 763 if (var) { 768 764 vendor = (u16) simple_strtoul(var, NULL, 0); 769 - WL_ERROR(("Overriding vendor id = 0x%x\n", vendor)); 765 + WL_ERROR("Overriding vendor id = 0x%x\n", vendor); 770 766 } 771 767 var = getvar(vars, "devid"); 772 768 if (var) { 773 769 u16 devid = (u16) simple_strtoul(var, NULL, 0); 774 770 if (devid != 0xffff) { 775 771 device = devid; 776 - WL_ERROR(("Overriding device id = 0x%x\n", 777 - device)); 772 + WL_ERROR("Overriding device id = 0x%x\n", 773 + device); 778 774 } 779 775 } 780 776 781 777 /* verify again the device is supported */ 782 778 if (!wlc_chipmatch(vendor, device)) { 783 - WL_ERROR(("wl%d: wlc_bmac_attach: Unsupported vendor/device (0x%x/0x%x)\n", unit, vendor, device)); 779 + WL_ERROR("wl%d: wlc_bmac_attach: Unsupported vendor/device (0x%x/0x%x)\n", 780 + unit, vendor, device); 784 781 err = 12; 785 782 goto fail; 786 783 } ··· 816 811 wlc_bmac_corereset(wlc_hw, WLC_USE_COREFLAGS); 817 812 818 813 if (!wlc_bmac_validate_chip_access(wlc_hw)) { 819 - WL_ERROR(("wl%d: wlc_bmac_attach: validate_chip_access failed\n", unit)); 814 + WL_ERROR("wl%d: wlc_bmac_attach: validate_chip_access failed\n", 815 + unit); 820 816 err = 14; 821 817 goto fail; 822 818 } ··· 829 823 j = BOARDREV_PROMOTED; 830 824 wlc_hw->boardrev = (u16) j; 831 825 if (!wlc_validboardtype(wlc_hw)) { 832 - WL_ERROR(("wl%d: wlc_bmac_attach: Unsupported Broadcom board type (0x%x)" " or revision level (0x%x)\n", unit, wlc_hw->sih->boardtype, wlc_hw->boardrev)); 826 + WL_ERROR("wl%d: wlc_bmac_attach: Unsupported Broadcom board type (0x%x)" " or revision level (0x%x)\n", 827 + unit, wlc_hw->sih->boardtype, wlc_hw->boardrev); 833 828 err = 15; 834 829 goto fail; 835 830 } ··· 872 865 wlc_hw->physhim = wlc_phy_shim_attach(wlc_hw, wlc->wl, wlc); 873 866 874 867 if (wlc_hw->physhim == NULL) { 875 - WL_ERROR(("wl%d: wlc_bmac_attach: wlc_phy_shim_attach failed\n", 876 - unit)); 868 + WL_ERROR("wl%d: wlc_bmac_attach: wlc_phy_shim_attach failed\n", 869 + unit); 877 870 err = 25; 878 871 goto fail; 879 872 } ··· 940 933 wlc_hw->band->pi = wlc_phy_attach(wlc_hw->phy_sh, 941 934 (void *)regs, wlc_hw->band->bandtype, vars); 942 935 if (wlc_hw->band->pi == NULL) { 943 - WL_ERROR(("wl%d: wlc_bmac_attach: wlc_phy_attach failed\n", unit)); 936 + WL_ERROR("wl%d: wlc_bmac_attach: wlc_phy_attach failed\n", 937 + unit); 944 938 err = 17; 945 939 goto fail; 946 940 } ··· 971 963 goto bad_phy; 972 964 } else { 973 965 bad_phy: 974 - WL_ERROR(("wl%d: wlc_bmac_attach: unsupported phy type/rev (%d/%d)\n", unit, wlc_hw->band->phytype, wlc_hw->band->phyrev)); 966 + WL_ERROR("wl%d: wlc_bmac_attach: unsupported phy type/rev (%d/%d)\n", 967 + unit, 968 + wlc_hw->band->phytype, wlc_hw->band->phyrev); 975 969 err = 18; 976 970 goto fail; 977 971 } ··· 1028 1018 /* init etheraddr state variables */ 1029 1019 macaddr = wlc_get_macaddr(wlc_hw); 1030 1020 if (macaddr == NULL) { 1031 - WL_ERROR(("wl%d: wlc_bmac_attach: macaddr not found\n", unit)); 1021 + WL_ERROR("wl%d: wlc_bmac_attach: macaddr not found\n", unit); 1032 1022 err = 21; 1033 1023 goto fail; 1034 1024 } 1035 1025 bcm_ether_atoe(macaddr, &wlc_hw->etheraddr); 1036 1026 if (is_broadcast_ether_addr(wlc_hw->etheraddr.octet) || 1037 1027 is_zero_ether_addr(wlc_hw->etheraddr.octet)) { 1038 - WL_ERROR(("wl%d: wlc_bmac_attach: bad macaddr %s\n", unit, 1039 - macaddr)); 1028 + WL_ERROR("wl%d: wlc_bmac_attach: bad macaddr %s\n", 1029 + unit, macaddr); 1040 1030 err = 22; 1041 1031 goto fail; 1042 1032 } 1043 1033 1044 - WL_ERROR(("%s:: deviceid 0x%x nbands %d board 0x%x macaddr: %s\n", 1045 - __func__, wlc_hw->deviceid, wlc_hw->_nbands, 1046 - wlc_hw->sih->boardtype, macaddr)); 1034 + WL_ERROR("%s:: deviceid 0x%x nbands %d board 0x%x macaddr: %s\n", 1035 + __func__, wlc_hw->deviceid, wlc_hw->_nbands, 1036 + wlc_hw->sih->boardtype, macaddr); 1047 1037 1048 1038 return err; 1049 1039 1050 1040 fail: 1051 - WL_ERROR(("wl%d: wlc_bmac_attach: failed with err %d\n", unit, err)); 1041 + WL_ERROR("wl%d: wlc_bmac_attach: failed with err %d\n", unit, err); 1052 1042 return err; 1053 1043 } 1054 1044 ··· 1132 1122 1133 1123 void wlc_bmac_reset(struct wlc_hw_info *wlc_hw) 1134 1124 { 1135 - WL_TRACE(("wl%d: wlc_bmac_reset\n", wlc_hw->unit)); 1125 + WL_TRACE("wl%d: wlc_bmac_reset\n", wlc_hw->unit); 1136 1126 1137 1127 WLCNTINCR(wlc_hw->wlc->pub->_cnt->reset); 1138 1128 ··· 1153 1143 bool fastclk; 1154 1144 struct wlc_info *wlc = wlc_hw->wlc; 1155 1145 1156 - WL_TRACE(("wl%d: wlc_bmac_init\n", wlc_hw->unit)); 1146 + WL_TRACE("wl%d: wlc_bmac_init\n", wlc_hw->unit); 1157 1147 1158 1148 /* request FAST clock if not on */ 1159 1149 fastclk = wlc_hw->forcefastclk; ··· 1202 1192 { 1203 1193 uint coremask; 1204 1194 1205 - WL_TRACE(("wl%d: %s:\n", wlc_hw->unit, __func__)); 1195 + WL_TRACE("wl%d: %s:\n", wlc_hw->unit, __func__); 1206 1196 1207 1197 ASSERT(wlc_hw->wlc->pub->hw_up && wlc_hw->wlc->macintmask == 0); 1208 1198 ··· 1248 1238 1249 1239 int wlc_bmac_up_finish(struct wlc_hw_info *wlc_hw) 1250 1240 { 1251 - WL_TRACE(("wl%d: %s:\n", wlc_hw->unit, __func__)); 1241 + WL_TRACE("wl%d: %s:\n", wlc_hw->unit, __func__); 1252 1242 1253 1243 wlc_hw->up = true; 1254 1244 wlc_phy_hw_state_upd(wlc_hw->band->pi, true); ··· 1265 1255 bool dev_gone; 1266 1256 uint callbacks = 0; 1267 1257 1268 - WL_TRACE(("wl%d: %s:\n", wlc_hw->unit, __func__)); 1258 + WL_TRACE("wl%d: %s:\n", wlc_hw->unit, __func__); 1269 1259 1270 1260 if (!wlc_hw->up) 1271 1261 return callbacks; ··· 1293 1283 uint callbacks = 0; 1294 1284 bool dev_gone; 1295 1285 1296 - WL_TRACE(("wl%d: %s:\n", wlc_hw->unit, __func__)); 1286 + WL_TRACE("wl%d: %s:\n", wlc_hw->unit, __func__); 1297 1287 1298 1288 if (!wlc_hw->up) 1299 1289 return callbacks; ··· 1729 1719 u16 mac_l; 1730 1720 struct osl_info *osh; 1731 1721 1732 - WL_TRACE(("wl%d: %s\n", wlc_hw->unit, __func__)); 1722 + WL_TRACE("wl%d: %s\n", wlc_hw->unit, __func__); 1733 1723 1734 1724 ASSERT(wlc_hw->corerev > 4); 1735 1725 ··· 1762 1752 u16 mac_h; 1763 1753 struct osl_info *osh; 1764 1754 1765 - WL_TRACE(("wl%d: wlc_bmac_set_addrmatch\n", wlc_hw->unit)); 1755 + WL_TRACE("wl%d: wlc_bmac_set_addrmatch\n", wlc_hw->unit); 1766 1756 1767 1757 ASSERT((match_reg_offset < RCM_SIZE) || (wlc_hw->corerev == 4)); 1768 1758 ··· 1793 1783 #endif /* IL_BIGENDIAN */ 1794 1784 struct osl_info *osh; 1795 1785 1796 - WL_TRACE(("wl%d: wlc_bmac_write_template_ram\n", wlc_hw->unit)); 1786 + WL_TRACE("wl%d: wlc_bmac_write_template_ram\n", wlc_hw->unit); 1797 1787 1798 1788 regs = wlc_hw->regs; 1799 1789 osh = wlc_hw->osh; ··· 1947 1937 { 1948 1938 struct wlc_hw_info *wlc_hw = wlc->hw; 1949 1939 1950 - WL_TRACE(("wl%d: wlc_bmac_bsinit: bandunit %d\n", wlc_hw->unit, 1951 - wlc_hw->band->bandunit)); 1940 + WL_TRACE("wl%d: wlc_bmac_bsinit: bandunit %d\n", 1941 + wlc_hw->unit, wlc_hw->band->bandunit); 1952 1942 1953 1943 /* sanity check */ 1954 1944 if (PHY_TYPE(R_REG(wlc_hw->osh, &wlc_hw->regs->phyversion)) != ··· 1984 1974 1985 1975 void wlc_bmac_core_phy_clk(struct wlc_hw_info *wlc_hw, bool clk) 1986 1976 { 1987 - WL_TRACE(("wl%d: wlc_bmac_core_phy_clk: clk %d\n", wlc_hw->unit, clk)); 1977 + WL_TRACE("wl%d: wlc_bmac_core_phy_clk: clk %d\n", wlc_hw->unit, clk); 1988 1978 1989 1979 wlc_hw->phyclk = clk; 1990 1980 ··· 2009 1999 /* Perform a soft reset of the PHY PLL */ 2010 2000 void wlc_bmac_core_phypll_reset(struct wlc_hw_info *wlc_hw) 2011 2001 { 2012 - WL_TRACE(("wl%d: wlc_bmac_core_phypll_reset\n", wlc_hw->unit)); 2002 + WL_TRACE("wl%d: wlc_bmac_core_phypll_reset\n", wlc_hw->unit); 2013 2003 2014 2004 si_corereg(wlc_hw->sih, SI_CC_IDX, 2015 2005 offsetof(chipcregs_t, chipcontrol_addr), ~0, 0); ··· 2055 2045 u32 phy_bw_clkbits; 2056 2046 bool phy_in_reset = false; 2057 2047 2058 - WL_TRACE(("wl%d: wlc_bmac_phy_reset\n", wlc_hw->unit)); 2048 + WL_TRACE("wl%d: wlc_bmac_phy_reset\n", wlc_hw->unit); 2059 2049 2060 2050 if (pih == NULL) 2061 2051 return; ··· 2137 2127 /* low-level band switch utility routine */ 2138 2128 void WLBANDINITFN(wlc_setxband) (struct wlc_hw_info *wlc_hw, uint bandunit) 2139 2129 { 2140 - WL_TRACE(("wl%d: wlc_setxband: bandunit %d\n", wlc_hw->unit, bandunit)); 2130 + WL_TRACE("wl%d: wlc_setxband: bandunit %d\n", wlc_hw->unit, bandunit); 2141 2131 2142 2132 wlc_hw->band = wlc_hw->bandstate[bandunit]; 2143 2133 ··· 2156 2146 2157 2147 /* reject unsupported corerev */ 2158 2148 if (!VALID_COREREV(wlc_hw->corerev)) { 2159 - WL_ERROR(("unsupported core rev %d\n", wlc_hw->corerev)); 2149 + WL_ERROR("unsupported core rev %d\n", wlc_hw->corerev); 2160 2150 return false; 2161 2151 } 2162 2152 ··· 2204 2194 2205 2195 macaddr = getvar(wlc_hw->vars, varname); 2206 2196 if (macaddr == NULL) { 2207 - WL_ERROR(("wl%d: wlc_get_macaddr: macaddr getvar(%s) not found\n", wlc_hw->unit, varname)); 2197 + WL_ERROR("wl%d: wlc_get_macaddr: macaddr getvar(%s) not found\n", 2198 + wlc_hw->unit, varname); 2208 2199 } 2209 2200 2210 2201 return macaddr; ··· 2268 2257 if (wlc_hw->wlc->pub->hw_up) 2269 2258 return; 2270 2259 2271 - WL_TRACE(("wl%d: %s:\n", wlc_hw->unit, __func__)); 2260 + WL_TRACE("wl%d: %s:\n", wlc_hw->unit, __func__); 2272 2261 2273 2262 /* 2274 2263 * Enable pll and xtal, initialize the power control registers, ··· 2323 2312 50000); 2324 2313 2325 2314 if (!rxidle && (rcv_frm_cnt != 0)) 2326 - WL_ERROR(("wl%d: %s: rxdma[%d] not idle && rcv_frm_cnt(%d) not zero\n", wlc_hw->unit, __func__, fifo, rcv_frm_cnt)); 2315 + WL_ERROR("wl%d: %s: rxdma[%d] not idle && rcv_frm_cnt(%d) not zero\n", 2316 + wlc_hw->unit, __func__, fifo, rcv_frm_cnt); 2327 2317 mdelay(2); 2328 2318 } 2329 2319 ··· 2349 2337 if (flags == WLC_USE_COREFLAGS) 2350 2338 flags = (wlc_hw->band->pi ? wlc_hw->band->core_flags : 0); 2351 2339 2352 - WL_TRACE(("wl%d: %s\n", wlc_hw->unit, __func__)); 2340 + WL_TRACE("wl%d: %s\n", wlc_hw->unit, __func__); 2353 2341 2354 2342 regs = wlc_hw->regs; 2355 2343 ··· 2362 2350 if (si_iscoreup(wlc_hw->sih)) { 2363 2351 for (i = 0; i < NFIFO; i++) 2364 2352 if ((wlc_hw->di[i]) && (!dma_txreset(wlc_hw->di[i]))) { 2365 - WL_ERROR(("wl%d: %s: dma_txreset[%d]: cannot stop dma\n", wlc_hw->unit, __func__, i)); 2353 + WL_ERROR("wl%d: %s: dma_txreset[%d]: cannot stop dma\n", 2354 + wlc_hw->unit, __func__, i); 2366 2355 } 2367 2356 2368 2357 if ((wlc_hw->di[RX_FIFO]) 2369 2358 && (!wlc_dma_rxreset(wlc_hw, RX_FIFO))) { 2370 - WL_ERROR(("wl%d: %s: dma_rxreset[%d]: cannot stop dma\n", wlc_hw->unit, __func__, RX_FIFO)); 2359 + WL_ERROR("wl%d: %s: dma_rxreset[%d]: cannot stop dma\n", 2360 + wlc_hw->unit, __func__, RX_FIFO); 2371 2361 } 2372 2362 if (D11REV_IS(wlc_hw->corerev, 4) 2373 2363 && wlc_hw->di[RX_TXSTATUS_FIFO] 2374 2364 && (!wlc_dma_rxreset(wlc_hw, RX_TXSTATUS_FIFO))) { 2375 - WL_ERROR(("wl%d: %s: dma_rxreset[%d]: cannot stop dma\n", wlc_hw->unit, __func__, RX_TXSTATUS_FIFO)); 2365 + WL_ERROR("wl%d: %s: dma_rxreset[%d]: cannot stop dma\n", 2366 + wlc_hw->unit, __func__, RX_TXSTATUS_FIFO); 2376 2367 } 2377 2368 } 2378 2369 /* if noreset, just stop the psm and return */ ··· 2506 2491 regs = wlc_hw->regs; 2507 2492 osh = wlc_hw->osh; 2508 2493 2509 - WL_TRACE(("wl%d: wlc_coreinit\n", wlc_hw->unit)); 2494 + WL_TRACE("wl%d: wlc_coreinit\n", wlc_hw->unit); 2510 2495 2511 2496 /* reset PSM */ 2512 2497 wlc_bmac_mctrl(wlc_hw, ~0, (MCTL_IHR_EN | MCTL_PSM_JMP_0 | MCTL_WAKE)); ··· 2529 2514 SPINWAIT(((R_REG(osh, &regs->macintstatus) & MI_MACSSPNDD) == 0), 2530 2515 1000 * 1000); 2531 2516 if ((R_REG(osh, &regs->macintstatus) & MI_MACSSPNDD) == 0) 2532 - WL_ERROR(("wl%d: wlc_coreinit: ucode did not self-suspend!\n", 2533 - wlc_hw->unit)); 2517 + WL_ERROR("wl%d: wlc_coreinit: ucode did not self-suspend!\n", 2518 + wlc_hw->unit); 2534 2519 2535 2520 wlc_gpio_init(wlc); 2536 2521 ··· 2540 2525 if (WLCISNPHY(wlc_hw->band)) 2541 2526 wlc_write_inits(wlc_hw, d11n0initvals16); 2542 2527 else 2543 - WL_ERROR(("%s: wl%d: unsupported phy in corerev %d\n", 2544 - __func__, wlc_hw->unit, wlc_hw->corerev)); 2528 + WL_ERROR("%s: wl%d: unsupported phy in corerev %d\n", 2529 + __func__, wlc_hw->unit, wlc_hw->corerev); 2545 2530 } else if (D11REV_IS(wlc_hw->corerev, 24)) { 2546 2531 if (WLCISLCNPHY(wlc_hw->band)) { 2547 2532 wlc_write_inits(wlc_hw, d11lcn0initvals24); 2548 2533 } else { 2549 - WL_ERROR(("%s: wl%d: unsupported phy in corerev %d\n", 2550 - __func__, wlc_hw->unit, wlc_hw->corerev)); 2534 + WL_ERROR("%s: wl%d: unsupported phy in corerev %d\n", 2535 + __func__, wlc_hw->unit, wlc_hw->corerev); 2551 2536 } 2552 2537 } else { 2553 - WL_ERROR(("%s: wl%d: unsupported corerev %d\n", 2554 - __func__, wlc_hw->unit, wlc_hw->corerev)); 2538 + WL_ERROR("%s: wl%d: unsupported corerev %d\n", 2539 + __func__, wlc_hw->unit, wlc_hw->corerev); 2555 2540 } 2556 2541 2557 2542 /* For old ucode, txfifo sizes needs to be modified(increased) for Corerev >= 9 */ ··· 2593 2578 err = -1; 2594 2579 } 2595 2580 if (err != 0) { 2596 - WL_ERROR(("wlc_coreinit: txfifo mismatch: ucode size %d driver size %d index %d\n", buf[i], wlc_hw->xmtfifo_sz[i], i)); 2581 + WL_ERROR("wlc_coreinit: txfifo mismatch: ucode size %d driver size %d index %d\n", 2582 + buf[i], wlc_hw->xmtfifo_sz[i], i); 2597 2583 /* DO NOT ASSERT corerev < 4 even there is a mismatch 2598 2584 * shmem, since driver don't overwrite those chip and 2599 2585 * ucode initialize data will be used. ··· 2813 2797 bcm43xx_16_mimosz); 2814 2798 wlc_hw->ucode_loaded = true; 2815 2799 } else 2816 - WL_ERROR(("%s: wl%d: unsupported phy in corerev %d\n", 2817 - __func__, wlc_hw->unit, wlc_hw->corerev)); 2800 + WL_ERROR("%s: wl%d: unsupported phy in corerev %d\n", 2801 + __func__, wlc_hw->unit, wlc_hw->corerev); 2818 2802 } else if (D11REV_IS(wlc_hw->corerev, 24)) { 2819 2803 if (WLCISLCNPHY(wlc_hw->band)) { 2820 2804 wlc_ucode_write(wlc_hw, bcm43xx_24_lcn, 2821 2805 bcm43xx_24_lcnsz); 2822 2806 wlc_hw->ucode_loaded = true; 2823 2807 } else { 2824 - WL_ERROR(("%s: wl%d: unsupported phy in corerev %d\n", 2825 - __func__, wlc_hw->unit, wlc_hw->corerev)); 2808 + WL_ERROR("%s: wl%d: unsupported phy in corerev %d\n", 2809 + __func__, wlc_hw->unit, wlc_hw->corerev); 2826 2810 } 2827 2811 } 2828 2812 } ··· 2836 2820 2837 2821 osh = wlc_hw->osh; 2838 2822 2839 - WL_TRACE(("wl%d: wlc_ucode_write\n", wlc_hw->unit)); 2823 + WL_TRACE("wl%d: wlc_ucode_write\n", wlc_hw->unit); 2840 2824 2841 2825 ASSERT(IS_ALIGNED(nbytes, sizeof(u32))); 2842 2826 ··· 2854 2838 struct osl_info *osh; 2855 2839 volatile u8 *base; 2856 2840 2857 - WL_TRACE(("wl%d: wlc_write_inits\n", wlc_hw->unit)); 2841 + WL_TRACE("wl%d: wlc_write_inits\n", wlc_hw->unit); 2858 2842 2859 2843 osh = wlc_hw->osh; 2860 2844 base = (volatile u8 *)wlc_hw->regs; ··· 2930 2914 if (!intstatus) 2931 2915 continue; 2932 2916 2933 - WL_TRACE(("wl%d: wlc_bmac_fifoerrors: intstatus%d 0x%x\n", unit, 2934 - idx, intstatus)); 2917 + WL_TRACE("wl%d: wlc_bmac_fifoerrors: intstatus%d 0x%x\n", 2918 + unit, idx, intstatus); 2935 2919 2936 2920 if (intstatus & I_RO) { 2937 - WL_ERROR(("wl%d: fifo %d: receive fifo overflow\n", 2938 - unit, idx)); 2921 + WL_ERROR("wl%d: fifo %d: receive fifo overflow\n", 2922 + unit, idx); 2939 2923 WLCNTINCR(wlc_hw->wlc->pub->_cnt->rxoflo); 2940 2924 fatal = true; 2941 2925 } 2942 2926 2943 2927 if (intstatus & I_PC) { 2944 - WL_ERROR(("wl%d: fifo %d: descriptor error\n", unit, 2945 - idx)); 2928 + WL_ERROR("wl%d: fifo %d: descriptor error\n", 2929 + unit, idx); 2946 2930 WLCNTINCR(wlc_hw->wlc->pub->_cnt->dmade); 2947 2931 fatal = true; 2948 2932 } 2949 2933 2950 2934 if (intstatus & I_PD) { 2951 - WL_ERROR(("wl%d: fifo %d: data error\n", unit, idx)); 2935 + WL_ERROR("wl%d: fifo %d: data error\n", unit, idx); 2952 2936 WLCNTINCR(wlc_hw->wlc->pub->_cnt->dmada); 2953 2937 fatal = true; 2954 2938 } 2955 2939 2956 2940 if (intstatus & I_DE) { 2957 - WL_ERROR(("wl%d: fifo %d: descriptor protocol error\n", 2958 - unit, idx)); 2941 + WL_ERROR("wl%d: fifo %d: descriptor protocol error\n", 2942 + unit, idx); 2959 2943 WLCNTINCR(wlc_hw->wlc->pub->_cnt->dmape); 2960 2944 fatal = true; 2961 2945 } 2962 2946 2963 2947 if (intstatus & I_RU) { 2964 - WL_ERROR(("wl%d: fifo %d: receive descriptor underflow\n", unit, idx)); 2948 + WL_ERROR("wl%d: fifo %d: receive descriptor underflow\n", 2949 + idx, unit); 2965 2950 WLCNTINCR(wlc_hw->wlc->pub->_cnt->rxuflo[idx]); 2966 2951 } 2967 2952 2968 2953 if (intstatus & I_XU) { 2969 - WL_ERROR(("wl%d: fifo %d: transmit fifo underflow\n", 2970 - idx, unit)); 2954 + WL_ERROR("wl%d: fifo %d: transmit fifo underflow\n", 2955 + idx, unit); 2971 2956 WLCNTINCR(wlc_hw->wlc->pub->_cnt->txuflo); 2972 2957 fatal = true; 2973 2958 } ··· 3202 3185 /* macintstatus includes a DMA interrupt summary bit */ 3203 3186 macintstatus = R_REG(osh, &regs->macintstatus); 3204 3187 3205 - WL_TRACE(("wl%d: macintstatus: 0x%x\n", wlc_hw->unit, macintstatus)); 3188 + WL_TRACE("wl%d: macintstatus: 0x%x\n", wlc_hw->unit, macintstatus); 3206 3189 3207 3190 /* detect cardbus removed, in power down(suspend) and in reset */ 3208 3191 if (DEVICEREMOVED(wlc)) ··· 3242 3225 R_REG(osh, 3243 3226 &regs->intctrlregs[RX_TXSTATUS_FIFO]. 3244 3227 intstatus); 3245 - WL_TRACE(("wl%d: intstatus_rxfifo 0x%x, intstatus_txsfifo 0x%x\n", wlc_hw->unit, intstatus_rxfifo, intstatus_txsfifo)); 3228 + WL_TRACE("wl%d: intstatus_rxfifo 0x%x, intstatus_txsfifo 0x%x\n", 3229 + wlc_hw->unit, 3230 + intstatus_rxfifo, intstatus_txsfifo); 3246 3231 3247 3232 /* defer unsolicited interrupt hints */ 3248 3233 intstatus_rxfifo &= DEF_RXINTMASK; ··· 3320 3301 macintstatus = wlc_intstatus(wlc, true); 3321 3302 3322 3303 if (macintstatus == 0xffffffff) 3323 - WL_ERROR(("DEVICEREMOVED detected in the ISR code path.\n")); 3304 + WL_ERROR("DEVICEREMOVED detected in the ISR code path\n"); 3324 3305 3325 3306 /* it is not for us */ 3326 3307 if (macintstatus == 0) ··· 3344 3325 struct osl_info *osh; 3345 3326 bool fatal = false; 3346 3327 3347 - WL_TRACE(("wl%d: wlc_txstatusrecv\n", wlc_hw->unit)); 3328 + WL_TRACE("wl%d: wlc_txstatusrecv\n", wlc_hw->unit); 3348 3329 3349 3330 osh = wlc_hw->osh; 3350 3331 ··· 3397 3378 bool morepending = false; 3398 3379 struct wlc_info *wlc = wlc_hw->wlc; 3399 3380 3400 - WL_TRACE(("wl%d: wlc_bmac_txstatus\n", wlc_hw->unit)); 3381 + WL_TRACE("wl%d: wlc_bmac_txstatus\n", wlc_hw->unit); 3401 3382 3402 3383 if (D11REV_IS(wlc_hw->corerev, 4)) { 3403 3384 /* to retire soon */ ··· 3422 3403 && (s1 = R_REG(osh, &regs->frmtxstatus)) & TXS_V) { 3423 3404 3424 3405 if (s1 == 0xffffffff) { 3425 - WL_ERROR(("wl%d: %s: dead chip\n", 3426 - wlc_hw->unit, __func__)); 3406 + WL_ERROR("wl%d: %s: dead chip\n", 3407 + wlc_hw->unit, __func__); 3427 3408 ASSERT(s1 != 0xffffffff); 3428 3409 return morepending; 3429 3410 } ··· 3463 3444 u32 mc, mi; 3464 3445 struct osl_info *osh; 3465 3446 3466 - WL_TRACE(("wl%d: wlc_suspend_mac_and_wait: bandunit %d\n", wlc_hw->unit, 3467 - wlc_hw->band->bandunit)); 3447 + WL_TRACE("wl%d: wlc_suspend_mac_and_wait: bandunit %d\n", 3448 + wlc_hw->unit, wlc_hw->band->bandunit); 3468 3449 3469 3450 /* 3470 3451 * Track overlapping suspend requests ··· 3481 3462 mc = R_REG(osh, &regs->maccontrol); 3482 3463 3483 3464 if (mc == 0xffffffff) { 3484 - WL_ERROR(("wl%d: %s: dead chip\n", wlc_hw->unit, __func__)); 3465 + WL_ERROR("wl%d: %s: dead chip\n", wlc_hw->unit, __func__); 3485 3466 wl_down(wlc->wl); 3486 3467 return; 3487 3468 } ··· 3491 3472 3492 3473 mi = R_REG(osh, &regs->macintstatus); 3493 3474 if (mi == 0xffffffff) { 3494 - WL_ERROR(("wl%d: %s: dead chip\n", wlc_hw->unit, __func__)); 3475 + WL_ERROR("wl%d: %s: dead chip\n", wlc_hw->unit, __func__); 3495 3476 wl_down(wlc->wl); 3496 3477 return; 3497 3478 } ··· 3503 3484 WLC_MAX_MAC_SUSPEND); 3504 3485 3505 3486 if (!(R_REG(osh, &regs->macintstatus) & MI_MACSSPNDD)) { 3506 - WL_ERROR(("wl%d: wlc_suspend_mac_and_wait: waited %d uS and " 3507 - "MI_MACSSPNDD is still not on.\n", 3508 - wlc_hw->unit, WLC_MAX_MAC_SUSPEND)); 3509 - WL_ERROR(("wl%d: psmdebug 0x%08x, phydebug 0x%08x, psm_brc 0x%04x\n", wlc_hw->unit, R_REG(osh, &regs->psmdebug), R_REG(osh, &regs->phydebug), R_REG(osh, &regs->psm_brc))); 3487 + WL_ERROR("wl%d: wlc_suspend_mac_and_wait: waited %d uS and MI_MACSSPNDD is still not on.\n", 3488 + wlc_hw->unit, WLC_MAX_MAC_SUSPEND); 3489 + WL_ERROR("wl%d: psmdebug 0x%08x, phydebug 0x%08x, psm_brc 0x%04x\n", 3490 + wlc_hw->unit, 3491 + R_REG(osh, &regs->psmdebug), 3492 + R_REG(osh, &regs->phydebug), 3493 + R_REG(osh, &regs->psm_brc)); 3510 3494 } 3511 3495 3512 3496 mc = R_REG(osh, &regs->maccontrol); 3513 3497 if (mc == 0xffffffff) { 3514 - WL_ERROR(("wl%d: %s: dead chip\n", wlc_hw->unit, __func__)); 3498 + WL_ERROR("wl%d: %s: dead chip\n", wlc_hw->unit, __func__); 3515 3499 wl_down(wlc->wl); 3516 3500 return; 3517 3501 } ··· 3530 3508 u32 mc, mi; 3531 3509 struct osl_info *osh; 3532 3510 3533 - WL_TRACE(("wl%d: wlc_enable_mac: bandunit %d\n", wlc_hw->unit, 3534 - wlc->band->bandunit)); 3511 + WL_TRACE("wl%d: wlc_enable_mac: bandunit %d\n", 3512 + wlc_hw->unit, wlc->band->bandunit); 3535 3513 3536 3514 /* 3537 3515 * Track overlapping suspend requests ··· 3693 3671 volatile u16 *reg16; 3694 3672 struct osl_info *osh; 3695 3673 3696 - WL_TRACE(("wl%d: validate_chip_access\n", wlc_hw->unit)); 3674 + WL_TRACE("wl%d: validate_chip_access\n", wlc_hw->unit); 3697 3675 3698 3676 regs = wlc_hw->regs; 3699 3677 osh = wlc_hw->osh; ··· 3713 3691 (void)R_REG(osh, &regs->objaddr); 3714 3692 val = R_REG(osh, &regs->objdata); 3715 3693 if (val != (u32) 0xaa5555aa) { 3716 - WL_ERROR(("wl%d: validate_chip_access: SHM = 0x%x, expected 0xaa5555aa\n", wlc_hw->unit, val)); 3694 + WL_ERROR("wl%d: validate_chip_access: SHM = 0x%x, expected 0xaa5555aa\n", 3695 + wlc_hw->unit, val); 3717 3696 return false; 3718 3697 } 3719 3698 ··· 3726 3703 (void)R_REG(osh, &regs->objaddr); 3727 3704 val = R_REG(osh, &regs->objdata); 3728 3705 if (val != (u32) 0x55aaaa55) { 3729 - WL_ERROR(("wl%d: validate_chip_access: SHM = 0x%x, expected 0x55aaaa55\n", wlc_hw->unit, val)); 3706 + WL_ERROR("wl%d: validate_chip_access: SHM = 0x%x, expected 0x55aaaa55\n", 3707 + wlc_hw->unit, val); 3730 3708 return false; 3731 3709 } 3732 3710 ··· 3757 3733 /* verify with the 16 bit registers that have no side effects */ 3758 3734 val = R_REG(osh, &regs->tsf_cfpstrt_l); 3759 3735 if (val != (uint) 0xBBBB) { 3760 - WL_ERROR(("wl%d: validate_chip_access: tsf_cfpstrt_l = 0x%x, expected" " 0x%x\n", wlc_hw->unit, val, 0xBBBB)); 3736 + WL_ERROR("wl%d: validate_chip_access: tsf_cfpstrt_l = 0x%x, expected 0x%x\n", 3737 + wlc_hw->unit, val, 0xBBBB); 3761 3738 return false; 3762 3739 } 3763 3740 val = R_REG(osh, &regs->tsf_cfpstrt_h); 3764 3741 if (val != (uint) 0xCCCC) { 3765 - WL_ERROR(("wl%d: validate_chip_access: tsf_cfpstrt_h = 0x%x, expected" " 0x%x\n", wlc_hw->unit, val, 0xCCCC)); 3742 + WL_ERROR("wl%d: validate_chip_access: tsf_cfpstrt_h = 0x%x, expected 0x%x\n", 3743 + wlc_hw->unit, val, 0xCCCC); 3766 3744 return false; 3767 3745 } 3768 3746 ··· 3776 3750 w = R_REG(osh, &regs->maccontrol); 3777 3751 if ((w != (MCTL_IHR_EN | MCTL_WAKE)) && 3778 3752 (w != (MCTL_IHR_EN | MCTL_GMODE | MCTL_WAKE))) { 3779 - WL_ERROR(("wl%d: validate_chip_access: maccontrol = 0x%x, expected 0x%x or 0x%x\n", wlc_hw->unit, w, (MCTL_IHR_EN | MCTL_WAKE), (MCTL_IHR_EN | MCTL_GMODE | MCTL_WAKE))); 3753 + WL_ERROR("wl%d: validate_chip_access: maccontrol = 0x%x, expected 0x%x or 0x%x\n", 3754 + wlc_hw->unit, w, 3755 + (MCTL_IHR_EN | MCTL_WAKE), 3756 + (MCTL_IHR_EN | MCTL_GMODE | MCTL_WAKE)); 3780 3757 return false; 3781 3758 } 3782 3759 ··· 3794 3765 struct osl_info *osh; 3795 3766 u32 tmp; 3796 3767 3797 - WL_TRACE(("wl%d: wlc_bmac_core_phypll_ctl\n", wlc_hw->unit)); 3768 + WL_TRACE("wl%d: wlc_bmac_core_phypll_ctl\n", wlc_hw->unit); 3798 3769 3799 3770 tmp = 0; 3800 3771 regs = wlc_hw->regs; ··· 3815 3786 tmp = R_REG(osh, &regs->clk_ctl_st); 3816 3787 if ((tmp & (CCS_ERSRC_AVAIL_HT)) != 3817 3788 (CCS_ERSRC_AVAIL_HT)) { 3818 - WL_ERROR(("%s: turn on PHY PLL failed\n", 3819 - __func__)); 3789 + WL_ERROR("%s: turn on PHY PLL failed\n", 3790 + __func__); 3820 3791 ASSERT(0); 3821 3792 } 3822 3793 } else { ··· 3833 3804 (CCS_ERSRC_AVAIL_D11PLL | CCS_ERSRC_AVAIL_PHYPLL)) 3834 3805 != 3835 3806 (CCS_ERSRC_AVAIL_D11PLL | CCS_ERSRC_AVAIL_PHYPLL)) { 3836 - WL_ERROR(("%s: turn on PHY PLL failed\n", 3837 - __func__)); 3807 + WL_ERROR("%s: turn on PHY PLL failed\n", 3808 + __func__); 3838 3809 ASSERT(0); 3839 3810 } 3840 3811 } ··· 3851 3822 { 3852 3823 bool dev_gone; 3853 3824 3854 - WL_TRACE(("wl%d: %s\n", wlc_hw->unit, __func__)); 3825 + WL_TRACE("wl%d: %s\n", wlc_hw->unit, __func__); 3855 3826 3856 3827 ASSERT(!wlc_hw->up); 3857 3828 ··· 3889 3860 /* power both the pll and external oscillator on/off */ 3890 3861 void wlc_bmac_xtal(struct wlc_hw_info *wlc_hw, bool want) 3891 3862 { 3892 - WL_TRACE(("wl%d: wlc_bmac_xtal: want %d\n", wlc_hw->unit, want)); 3863 + WL_TRACE("wl%d: wlc_bmac_xtal: want %d\n", wlc_hw->unit, want); 3893 3864 3894 3865 /* dont power down if plldown is false or we must poll hw radio disable */ 3895 3866 if (!want && wlc_hw->pllreq) ··· 3918 3889 if (wlc_hw->di[i]) { 3919 3890 dma_txreclaim(wlc_hw->di[i], HNDDMA_RANGE_ALL); 3920 3891 TXPKTPENDCLR(wlc, i); 3921 - WL_TRACE(("wlc_flushqueues: pktpend fifo %d cleared\n", 3922 - i)); 3892 + WL_TRACE("wlc_flushqueues: pktpend fifo %d cleared\n", 3893 + i); 3923 3894 } 3924 3895 3925 3896 /* free any posted rx packets */ ··· 4052 4023 4053 4024 void wlc_bmac_copyfrom_vars(struct wlc_hw_info *wlc_hw, char **buf, uint *len) 4054 4025 { 4055 - WL_TRACE(("wlc_bmac_copyfrom_vars, nvram vars totlen=%d\n", 4056 - wlc_hw->vars_size)); 4026 + WL_TRACE("wlc_bmac_copyfrom_vars, nvram vars totlen=%d\n", 4027 + wlc_hw->vars_size); 4057 4028 4058 4029 *buf = wlc_hw->vars; 4059 4030 *len = wlc_hw->vars_size; ··· 4162 4133 (wlc_hw->sih->buscorerev >= 13))))) 4163 4134 return; 4164 4135 4165 - WL_TRACE(("wl%d: %s\n", wlc_hw->unit, __func__)); 4136 + WL_TRACE("wl%d: %s\n", wlc_hw->unit, __func__); 4166 4137 return; 4167 4138 } 4168 4139
+25 -20
drivers/staging/brcm80211/sys/wlc_channel.c
··· 567 567 const locale_info_t *wlc_get_locale_2g(u8 locale_idx) 568 568 { 569 569 if (locale_idx >= ARRAY_SIZE(g_locale_2g_table)) { 570 - WL_ERROR(("%s: locale 2g index size out of range %d\n", 571 - __func__, locale_idx)); 570 + WL_ERROR("%s: locale 2g index size out of range %d\n", 571 + __func__, locale_idx); 572 572 ASSERT(locale_idx < ARRAY_SIZE(g_locale_2g_table)); 573 573 return NULL; 574 574 } ··· 578 578 const locale_info_t *wlc_get_locale_5g(u8 locale_idx) 579 579 { 580 580 if (locale_idx >= ARRAY_SIZE(g_locale_5g_table)) { 581 - WL_ERROR(("%s: locale 5g index size out of range %d\n", 582 - __func__, locale_idx)); 581 + WL_ERROR("%s: locale 5g index size out of range %d\n", 582 + __func__, locale_idx); 583 583 ASSERT(locale_idx < ARRAY_SIZE(g_locale_5g_table)); 584 584 return NULL; 585 585 } ··· 589 589 const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx) 590 590 { 591 591 if (locale_idx >= ARRAY_SIZE(g_mimo_2g_table)) { 592 - WL_ERROR(("%s: mimo 2g index size out of range %d\n", __func__, 593 - locale_idx)); 592 + WL_ERROR("%s: mimo 2g index size out of range %d\n", 593 + __func__, locale_idx); 594 594 return NULL; 595 595 } 596 596 return g_mimo_2g_table[locale_idx]; ··· 599 599 const locale_mimo_info_t *wlc_get_mimo_5g(u8 locale_idx) 600 600 { 601 601 if (locale_idx >= ARRAY_SIZE(g_mimo_5g_table)) { 602 - WL_ERROR(("%s: mimo 5g index size out of range %d\n", __func__, 603 - locale_idx)); 602 + WL_ERROR("%s: mimo 5g index size out of range %d\n", 603 + __func__, locale_idx); 604 604 return NULL; 605 605 } 606 606 return g_mimo_5g_table[locale_idx]; ··· 614 614 struct wlc_pub *pub = wlc->pub; 615 615 char *ccode; 616 616 617 - WL_TRACE(("wl%d: wlc_channel_mgr_attach\n", wlc->pub->unit)); 617 + WL_TRACE("wl%d: wlc_channel_mgr_attach\n", wlc->pub->unit); 618 618 619 619 wlc_cm = kzalloc(sizeof(wlc_cm_info_t), GFP_ATOMIC); 620 620 if (wlc_cm == NULL) { 621 - WL_ERROR(("wl%d: %s: out of memory", pub->unit, __func__)); 621 + WL_ERROR("wl%d: %s: out of memory", pub->unit, __func__); 622 622 return NULL; 623 623 } 624 624 wlc_cm->pub = pub; ··· 629 629 ccode = getvar(wlc->pub->vars, "ccode"); 630 630 if (ccode) { 631 631 strncpy(wlc->pub->srom_ccode, ccode, WLC_CNTRY_BUF_SZ - 1); 632 - WL_NONE(("%s: SROM country code is %c%c\n", __func__, 633 - wlc->pub->srom_ccode[0], wlc->pub->srom_ccode[1])); 632 + WL_NONE("%s: SROM country code is %c%c\n", 633 + __func__, 634 + wlc->pub->srom_ccode[0], wlc->pub->srom_ccode[1]); 634 635 } 635 636 636 637 /* internal country information which must match regulatory constraints in firmware */ ··· 717 716 char mapped_ccode[WLC_CNTRY_BUF_SZ]; 718 717 uint mapped_regrev; 719 718 720 - WL_NONE(("%s: (country_abbrev \"%s\", ccode \"%s\", regrev %d) SPROM \"%s\"/%u\n", __func__, country_abbrev, ccode, regrev, wlc_cm->srom_ccode, wlc_cm->srom_regrev)); 719 + WL_NONE("%s: (country_abbrev \"%s\", ccode \"%s\", regrev %d) SPROM \"%s\"/%u\n", 720 + __func__, country_abbrev, ccode, regrev, 721 + wlc_cm->srom_ccode, wlc_cm->srom_regrev); 721 722 722 723 /* if regrev is -1, lookup the mapped country code, 723 724 * otherwise use the ccode and regrev directly ··· 830 827 831 828 /* check for currently supported ccode size */ 832 829 if (strlen(ccode) > (WLC_CNTRY_BUF_SZ - 1)) { 833 - WL_ERROR(("wl%d: %s: ccode \"%s\" too long for match\n", 834 - wlc->pub->unit, __func__, ccode)); 830 + WL_ERROR("wl%d: %s: ccode \"%s\" too long for match\n", 831 + wlc->pub->unit, __func__, ccode); 835 832 return NULL; 836 833 } 837 834 ··· 846 843 if (!strcmp(srom_ccode, ccode)) { 847 844 *mapped_regrev = srom_regrev; 848 845 mapped = 0; 849 - WL_ERROR(("srom_code == ccode %s\n", __func__)); 846 + WL_ERROR("srom_code == ccode %s\n", __func__); 850 847 ASSERT(0); 851 848 } else { 852 849 mapped = ··· 898 895 } 899 896 } 900 897 901 - WL_ERROR(("%s: Returning NULL\n", __func__)); 898 + WL_ERROR("%s: Returning NULL\n", __func__); 902 899 ASSERT(0); 903 900 return NULL; 904 901 } ··· 977 974 if (chan == INVCHANNEL) { 978 975 /* country/locale with no valid channels, set the radio disable bit */ 979 976 mboolset(wlc->pub->radio_disabled, WL_RADIO_COUNTRY_DISABLE); 980 - WL_ERROR(("wl%d: %s: no valid channel for \"%s\" nbands %d bandlocked %d\n", wlc->pub->unit, __func__, wlc_cm->country_abbrev, NBANDS(wlc), wlc->bandlocked)); 977 + WL_ERROR("wl%d: %s: no valid channel for \"%s\" nbands %d bandlocked %d\n", 978 + wlc->pub->unit, __func__, 979 + wlc_cm->country_abbrev, NBANDS(wlc), wlc->bandlocked); 981 980 } else 982 981 if (mboolisset(wlc->pub->radio_disabled, 983 982 WL_RADIO_COUNTRY_DISABLE)) { ··· 1543 1538 1544 1539 /* check the chanspec */ 1545 1540 if (wf_chspec_malformed(chspec)) { 1546 - WL_ERROR(("wl%d: malformed chanspec 0x%x\n", wlc->pub->unit, 1547 - chspec)); 1541 + WL_ERROR("wl%d: malformed chanspec 0x%x\n", 1542 + wlc->pub->unit, chspec); 1548 1543 ASSERT(0); 1549 1544 return false; 1550 1545 }
+2 -2
drivers/staging/brcm80211/sys/wlc_event.c
··· 75 75 76 76 eq->timer = wl_init_timer(eq->wl, wlc_timer_cb, eq, "eventq"); 77 77 if (!eq->timer) { 78 - WL_ERROR(("wl%d: wlc_eventq_attach: timer failed\n", 79 - pub->unit)); 78 + WL_ERROR("wl%d: wlc_eventq_attach: timer failed\n", 79 + pub->unit); 80 80 kfree(eq); 81 81 return NULL; 82 82 }
+180 -160
drivers/staging/brcm80211/sys/wlc_mac80211.c
··· 306 306 u32 v32; 307 307 struct osl_info *osh; 308 308 309 - WL_TRACE(("wl%d: %s\n", WLCWLUNIT(wlc), __func__)); 309 + WL_TRACE("wl%d: %s\n", WLCWLUNIT(wlc), __func__); 310 310 311 311 ASSERT(wlc->pub->corerev > 4); 312 312 ··· 364 364 365 365 void wlc_reset(struct wlc_info *wlc) 366 366 { 367 - WL_TRACE(("wl%d: wlc_reset\n", wlc->pub->unit)); 367 + WL_TRACE("wl%d: wlc_reset\n", wlc->pub->unit); 368 368 369 369 wlc->check_for_unaligned_tbtt = false; 370 370 ··· 385 385 386 386 void wlc_fatal_error(struct wlc_info *wlc) 387 387 { 388 - WL_ERROR(("wl%d: fatal error, reinitializing\n", wlc->pub->unit)); 388 + WL_ERROR("wl%d: fatal error, reinitializing\n", wlc->pub->unit); 389 389 wl_init(wlc->wl); 390 390 } 391 391 ··· 426 426 wlc_bsscfg_t *bsscfg; 427 427 bool mute = false; 428 428 429 - WL_TRACE(("wl%d: wlc_init\n", wlc->pub->unit)); 429 + WL_TRACE("wl%d: wlc_init\n", wlc->pub->unit); 430 430 431 431 regs = wlc->regs; 432 432 ··· 605 605 * to avoid assert 606 606 */ 607 607 if (tmp == 0xffffffff) { 608 - WL_ERROR(("wl%d: %s: dead chip\n", wlc->pub->unit, 609 - __func__)); 608 + WL_ERROR("wl%d: %s: dead chip\n", 609 + wlc->pub->unit, __func__); 610 610 return DEVICEREMOVED(wlc); 611 611 } 612 612 ··· 615 615 if (hps != ((tmp & MCTL_HPS) != 0)) { 616 616 int idx; 617 617 wlc_bsscfg_t *cfg; 618 - WL_ERROR(("wl%d: hps not sync, sw %d, maccontrol 0x%x\n", wlc->pub->unit, hps, tmp)); 618 + WL_ERROR("wl%d: hps not sync, sw %d, maccontrol 0x%x\n", 619 + wlc->pub->unit, hps, tmp); 619 620 FOREACH_BSS(wlc, idx, cfg) { 620 621 if (!BSSCFG_STA(cfg)) 621 622 continue; ··· 630 629 wake = STAY_AWAKE(wlc) || wlc->hw->wake_override; 631 630 wake_ok = (wake == ((tmp & MCTL_WAKE) != 0)); 632 631 if (hps && !wake_ok) { 633 - WL_ERROR(("wl%d: wake not sync, sw %d maccontrol 0x%x\n", wlc->pub->unit, wake, tmp)); 632 + WL_ERROR("wl%d: wake not sync, sw %d maccontrol 0x%x\n", 633 + wlc->pub->unit, wake, tmp); 634 634 res = false; 635 635 } 636 636 } ··· 649 647 hps = PS_ALLOWED(wlc); 650 648 wake = hps ? (STAY_AWAKE(wlc)) : true; 651 649 652 - WL_TRACE(("wl%d: wlc_set_ps_ctrl: hps %d wake %d\n", wlc->pub->unit, 653 - hps, wake)); 650 + WL_TRACE("wl%d: wlc_set_ps_ctrl: hps %d wake %d\n", 651 + wlc->pub->unit, hps, wake); 654 652 655 653 v1 = R_REG(wlc->osh, &wlc->regs->maccontrol); 656 654 v2 = 0; ··· 808 806 chanspec_t old_chanspec = wlc->chanspec; 809 807 810 808 if (!wlc_valid_chanspec_db(wlc->cmi, chanspec)) { 811 - WL_ERROR(("wl%d: %s: Bad channel %d\n", 812 - wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec))); 809 + WL_ERROR("wl%d: %s: Bad channel %d\n", 810 + wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); 813 811 ASSERT(wlc_valid_chanspec_db(wlc->cmi, chanspec)); 814 812 return; 815 813 } ··· 820 818 if (wlc->band->bandunit != bandunit || wlc->bandinit_pending) { 821 819 switchband = true; 822 820 if (wlc->bandlocked) { 823 - WL_ERROR(("wl%d: %s: chspec %d band is locked!\n", wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec))); 821 + WL_ERROR("wl%d: %s: chspec %d band is locked!\n", 822 + wlc->pub->unit, __func__, 823 + CHSPEC_CHANNEL(chanspec)); 824 824 return; 825 825 } 826 826 /* BMAC_NOTE: should the setband call come after the wlc_bmac_chanspec() ? ··· 1124 1120 */ 1125 1121 void wlc_protection_upd(struct wlc_info *wlc, uint idx, int val) 1126 1122 { 1127 - WL_TRACE(("wlc_protection_upd: idx %d, val %d\n", idx, val)); 1123 + WL_TRACE("wlc_protection_upd: idx %d, val %d\n", idx, val); 1128 1124 1129 1125 switch (idx) { 1130 1126 case WLC_PROT_G_SPEC: ··· 1232 1228 uint parkband; 1233 1229 uint i, band_order[2]; 1234 1230 1235 - WL_TRACE(("wl%d: wlc_bandinit_ordered\n", wlc->pub->unit)); 1231 + WL_TRACE("wl%d: wlc_bandinit_ordered\n", wlc->pub->unit); 1236 1232 /* 1237 1233 * We might have been bandlocked during down and the chip power-cycled (hibernate). 1238 1234 * figure out the right band to park on ··· 1275 1271 /* band-specific init */ 1276 1272 static void WLBANDINITFN(wlc_bsinit) (struct wlc_info *wlc) 1277 1273 { 1278 - WL_TRACE(("wl%d: wlc_bsinit: bandunit %d\n", wlc->pub->unit, 1279 - wlc->band->bandunit)); 1274 + WL_TRACE("wl%d: wlc_bsinit: bandunit %d\n", 1275 + wlc->pub->unit, wlc->band->bandunit); 1280 1276 1281 1277 /* write ucode ACK/CTS rate table */ 1282 1278 wlc_set_ratetable(wlc); ··· 1352 1348 1353 1349 /* Only apply params if the core is out of reset and has clocks */ 1354 1350 if (!wlc->clk) { 1355 - WL_ERROR(("wl%d: %s : no-clock\n", wlc->pub->unit, __func__)); 1351 + WL_ERROR("wl%d: %s : no-clock\n", wlc->pub->unit, __func__); 1356 1352 return; 1357 1353 } 1358 1354 ··· 1384 1380 1385 1381 if (acp_shm.aifs < EDCF_AIFSN_MIN 1386 1382 || acp_shm.aifs > EDCF_AIFSN_MAX) { 1387 - WL_ERROR(("wl%d: wlc_edcf_setparams: bad aifs %d\n", 1388 - wlc->pub->unit, acp_shm.aifs)); 1383 + WL_ERROR("wl%d: wlc_edcf_setparams: bad aifs %d\n", 1384 + wlc->pub->unit, acp_shm.aifs); 1389 1385 continue; 1390 1386 } 1391 1387 ··· 1468 1464 1469 1465 if (acp_shm.aifs < EDCF_AIFSN_MIN 1470 1466 || acp_shm.aifs > EDCF_AIFSN_MAX) { 1471 - WL_ERROR(("wl%d: wlc_edcf_setparams: bad aifs %d\n", 1472 - wlc->pub->unit, acp_shm.aifs)); 1467 + WL_ERROR("wl%d: wlc_edcf_setparams: bad aifs %d\n", 1468 + wlc->pub->unit, acp_shm.aifs); 1473 1469 continue; 1474 1470 } 1475 1471 ··· 1516 1512 wlc->wdtimer = wl_init_timer(wlc->wl, wlc_watchdog_by_timer, 1517 1513 wlc, "watchdog"); 1518 1514 if (!wlc->wdtimer) { 1519 - WL_ERROR(("wl%d: wl_init_timer for wdtimer failed\n", unit)); 1515 + WL_ERROR("wl%d: wl_init_timer for wdtimer failed\n", unit); 1520 1516 goto fail; 1521 1517 } 1522 1518 1523 1519 wlc->radio_timer = wl_init_timer(wlc->wl, wlc_radio_timer, 1524 1520 wlc, "radio"); 1525 1521 if (!wlc->radio_timer) { 1526 - WL_ERROR(("wl%d: wl_init_timer for radio_timer failed\n", 1527 - unit)); 1522 + WL_ERROR("wl%d: wl_init_timer for radio_timer failed\n", unit); 1528 1523 goto fail; 1529 1524 } 1530 1525 ··· 1670 1667 1671 1668 wlc->asi = wlc_antsel_attach(wlc, wlc->osh, wlc->pub, wlc->hw); 1672 1669 if (wlc->asi == NULL) { 1673 - WL_ERROR(("wl%d: wlc_attach: wlc_antsel_attach failed\n", 1674 - unit)); 1670 + WL_ERROR("wl%d: wlc_attach: wlc_antsel_attach failed\n", unit); 1675 1671 err = 44; 1676 1672 goto fail; 1677 1673 } 1678 1674 1679 1675 wlc->ampdu = wlc_ampdu_attach(wlc); 1680 1676 if (wlc->ampdu == NULL) { 1681 - WL_ERROR(("wl%d: wlc_attach: wlc_ampdu_attach failed\n", unit)); 1677 + WL_ERROR("wl%d: wlc_attach: wlc_ampdu_attach failed\n", unit); 1682 1678 err = 50; 1683 1679 goto fail; 1684 1680 } ··· 1686 1684 wlc->eventq = 1687 1685 wlc_eventq_attach(wlc->pub, wlc, wlc->wl, wlc_process_eventq); 1688 1686 if (wlc->eventq == NULL) { 1689 - WL_ERROR(("wl%d: wlc_attach: wlc_eventq_attachfailed\n", unit)); 1687 + WL_ERROR("wl%d: wlc_attach: wlc_eventq_attachfailed\n", unit); 1690 1688 err = 57; 1691 1689 goto fail; 1692 1690 } 1693 1691 1694 1692 if ((wlc_stf_attach(wlc) != 0)) { 1695 - WL_ERROR(("wl%d: wlc_attach: wlc_stf_attach failed\n", unit)); 1693 + WL_ERROR("wl%d: wlc_attach: wlc_stf_attach failed\n", unit); 1696 1694 err = 68; 1697 1695 goto fail; 1698 1696 } ··· 1721 1719 wlc_txq_info_t *qi; 1722 1720 uint n_disabled; 1723 1721 1724 - WL_NONE(("wl%d: %s: vendor 0x%x device 0x%x\n", unit, __func__, vendor, 1725 - device)); 1722 + WL_NONE("wl%d: %s: vendor 0x%x device 0x%x\n", 1723 + unit, __func__, vendor, device); 1726 1724 1727 1725 ASSERT(WSEC_MAX_RCMTA_KEYS <= WSEC_MAX_KEYS); 1728 1726 ASSERT(WSEC_MAX_DEFAULT_KEYS == WLC_DEFAULT_KEYS); ··· 1899 1897 goto fail; 1900 1898 1901 1899 if (!wlc_timers_init(wlc, unit)) { 1902 - WL_ERROR(("wl%d: %s: wlc_init_timer failed\n", unit, __func__)); 1900 + WL_ERROR("wl%d: %s: wlc_init_timer failed\n", unit, __func__); 1903 1901 err = 32; 1904 1902 goto fail; 1905 1903 } ··· 1907 1905 /* depend on rateset, gmode */ 1908 1906 wlc->cmi = wlc_channel_mgr_attach(wlc); 1909 1907 if (!wlc->cmi) { 1910 - WL_ERROR(("wl%d: %s: wlc_channel_mgr_attach failed\n", unit, 1911 - __func__)); 1908 + WL_ERROR("wl%d: %s: wlc_channel_mgr_attach failed\n", 1909 + unit, __func__); 1912 1910 err = 33; 1913 1911 goto fail; 1914 1912 } ··· 1923 1921 /* allocate our initial queue */ 1924 1922 qi = wlc_txq_alloc(wlc, osh); 1925 1923 if (qi == NULL) { 1926 - WL_ERROR(("wl%d: %s: failed to malloc tx queue\n", unit, 1927 - __func__)); 1924 + WL_ERROR("wl%d: %s: failed to malloc tx queue\n", 1925 + unit, __func__); 1928 1926 err = 100; 1929 1927 goto fail; 1930 1928 } ··· 2010 2008 return (void *)wlc; 2011 2009 2012 2010 fail: 2013 - WL_ERROR(("wl%d: %s: failed with err %d\n", unit, __func__, err)); 2011 + WL_ERROR("wl%d: %s: failed with err %d\n", unit, __func__, err); 2014 2012 if (wlc) 2015 2013 wlc_detach(wlc); 2016 2014 ··· 2028 2026 /* default antenna gain for srom rev 1 is 2 dBm (8 qdbm) */ 2029 2027 wlc->band->antgain = 8; 2030 2028 } else if (wlc->band->antgain == -1) { 2031 - WL_ERROR(("wl%d: %s: Invalid antennas available in srom, using 2dB\n", unit, __func__)); 2029 + WL_ERROR("wl%d: %s: Invalid antennas available in srom, using 2dB\n", 2030 + unit, __func__); 2032 2031 wlc->band->antgain = 8; 2033 2032 } else { 2034 2033 s8 gain, fract; ··· 2068 2065 aa = (s8) getintvar(vars, 2069 2066 (BAND_5G(bandtype) ? "aa1" : "aa0")); 2070 2067 if ((aa < 1) || (aa > 15)) { 2071 - WL_ERROR(("wl%d: %s: Invalid antennas available in srom (0x%x), using 3.\n", unit, __func__, aa)); 2068 + WL_ERROR("wl%d: %s: Invalid antennas available in srom (0x%x), using 3\n", 2069 + unit, __func__, aa); 2072 2070 aa = 3; 2073 2071 } 2074 2072 ··· 2136 2132 if (wlc == NULL) 2137 2133 return 0; 2138 2134 2139 - WL_TRACE(("wl%d: %s\n", wlc->pub->unit, __func__)); 2135 + WL_TRACE("wl%d: %s\n", wlc->pub->unit, __func__); 2140 2136 2141 2137 ASSERT(!wlc->pub->up); 2142 2138 ··· 2344 2340 struct wlc_info *wlc = (struct wlc_info *) arg; 2345 2341 2346 2342 if (DEVICEREMOVED(wlc)) { 2347 - WL_ERROR(("wl%d: %s: dead chip\n", wlc->pub->unit, __func__)); 2343 + WL_ERROR("wl%d: %s: dead chip\n", wlc->pub->unit, __func__); 2348 2344 wl_down(wlc->wl); 2349 2345 return; 2350 2346 } ··· 2445 2441 int i; 2446 2442 wlc_bsscfg_t *cfg; 2447 2443 2448 - WL_TRACE(("wl%d: wlc_watchdog\n", wlc->pub->unit)); 2444 + WL_TRACE("wl%d: wlc_watchdog\n", wlc->pub->unit); 2449 2445 2450 2446 if (!wlc->pub->up) 2451 2447 return; 2452 2448 2453 2449 if (DEVICEREMOVED(wlc)) { 2454 - WL_ERROR(("wl%d: %s: dead chip\n", wlc->pub->unit, __func__)); 2450 + WL_ERROR("wl%d: %s: dead chip\n", wlc->pub->unit, __func__); 2455 2451 wl_down(wlc->wl); 2456 2452 return; 2457 2453 } ··· 2523 2519 /* make interface operational */ 2524 2520 int wlc_up(struct wlc_info *wlc) 2525 2521 { 2526 - WL_TRACE(("wl%d: %s:\n", wlc->pub->unit, __func__)); 2522 + WL_TRACE("wl%d: %s:\n", wlc->pub->unit, __func__); 2527 2523 2528 2524 /* HW is turned off so don't try to access it */ 2529 2525 if (wlc->pub->hw_off || DEVICEREMOVED(wlc)) ··· 2568 2564 if (!BSSCFG_STA(bsscfg) 2569 2565 || !bsscfg->enable || !bsscfg->BSS) 2570 2566 continue; 2571 - WL_ERROR(("wl%d.%d: wlc_up: rfdisable -> " "wlc_bsscfg_disable()\n", wlc->pub->unit, idx)); 2567 + WL_ERROR("wl%d.%d: wlc_up: rfdisable -> " "wlc_bsscfg_disable()\n", 2568 + wlc->pub->unit, idx); 2572 2569 } 2573 2570 } 2574 2571 } else ··· 2669 2664 bool dev_gone = false; 2670 2665 wlc_txq_info_t *qi; 2671 2666 2672 - WL_TRACE(("wl%d: %s:\n", wlc->pub->unit, __func__)); 2667 + WL_TRACE("wl%d: %s:\n", wlc->pub->unit, __func__); 2673 2668 2674 2669 /* check if we are already in the going down path */ 2675 2670 if (wlc->going_down) { 2676 - WL_ERROR(("wl%d: %s: Driver going down so return\n", 2677 - wlc->pub->unit, __func__)); 2671 + WL_ERROR("wl%d: %s: Driver going down so return\n", 2672 + wlc->pub->unit, __func__); 2678 2673 return 0; 2679 2674 } 2680 2675 if (!wlc->pub->up) ··· 2733 2728 2734 2729 /* Verify all packets are flushed from the driver */ 2735 2730 if (wlc->osh->pktalloced != 0) { 2736 - WL_ERROR(("%d packets not freed at wlc_down!!!!!!\n", 2737 - wlc->osh->pktalloced)); 2731 + WL_ERROR("%d packets not freed at wlc_down!!!!!!\n", 2732 + wlc->osh->pktalloced); 2738 2733 } 2739 2734 #ifdef BCMDBG 2740 2735 /* Since all the packets should have been freed, ··· 2831 2826 2832 2827 default: 2833 2828 /* Error */ 2834 - WL_ERROR(("wl%d: %s: invalid gmode %d\n", wlc->pub->unit, 2835 - __func__, gmode)); 2829 + WL_ERROR("wl%d: %s: invalid gmode %d\n", 2830 + wlc->pub->unit, __func__, gmode); 2836 2831 return BCME_UNSUPPORTED; 2837 2832 } 2838 2833 ··· 3087 3082 3088 3083 /* If the device is turned off, then it's not "removed" */ 3089 3084 if (!wlc->pub->hw_off && DEVICEREMOVED(wlc)) { 3090 - WL_ERROR(("wl%d: %s: dead chip\n", wlc->pub->unit, __func__)); 3085 + WL_ERROR("wl%d: %s: dead chip\n", wlc->pub->unit, __func__); 3091 3086 wl_down(wlc->wl); 3092 3087 return BCME_ERROR; 3093 3088 } ··· 3107 3102 bool_val = val != 0; 3108 3103 3109 3104 if (cmd != WLC_SET_CHANNEL) 3110 - WL_NONE(("WLC_IOCTL: cmd %d val 0x%x (%d) len %d\n", cmd, 3111 - (uint) val, val, len)); 3105 + WL_NONE("WLC_IOCTL: cmd %d val 0x%x (%d) len %d\n", 3106 + cmd, (uint)val, val, len); 3112 3107 3113 3108 bcmerror = 0; 3114 3109 regs = wlc->regs; ··· 3128 3123 3129 3124 default: 3130 3125 if ((arg == NULL) || (len <= 0)) { 3131 - WL_ERROR(("wl%d: %s: Command %d needs arguments\n", 3132 - wlc->pub->unit, __func__, cmd)); 3126 + WL_ERROR("wl%d: %s: Command %d needs arguments\n", 3127 + wlc->pub->unit, __func__, cmd); 3133 3128 bcmerror = BCME_BADARG; 3134 3129 goto done; 3135 3130 } ··· 3462 3457 /* 4322 supports antdiv in phy, no need to set it to ucode */ 3463 3458 if (WLCISNPHY(wlc->band) 3464 3459 && D11REV_IS(wlc->pub->corerev, 16)) { 3465 - WL_ERROR(("wl%d: can't set ucantdiv for 4322\n", 3466 - wlc->pub->unit)); 3460 + WL_ERROR("wl%d: can't set ucantdiv for 4322\n", 3461 + wlc->pub->unit); 3467 3462 bcmerror = BCME_UNSUPPORTED; 3468 3463 } else 3469 3464 wlc_mhf(wlc, MHF1, MHF1_ANTDIV, ··· 3560 3555 if ((radiomask == 0) || (radiomask & ~validbits) 3561 3556 || (radioval & ~validbits) 3562 3557 || ((radioval & ~radiomask) != 0)) { 3563 - WL_ERROR(("SET_RADIO with wrong bits 0x%x\n", 3564 - val)); 3558 + WL_ERROR("SET_RADIO with wrong bits 0x%x\n", 3559 + val); 3565 3560 bcmerror = BCME_RANGE; 3566 3561 break; 3567 3562 } ··· 4197 4192 #endif 4198 4193 4199 4194 case WLC_LAST: 4200 - WL_ERROR(("%s: WLC_LAST\n", __func__)); 4195 + WL_ERROR("%s: WLC_LAST\n", __func__); 4201 4196 } 4202 4197 done: 4203 4198 ··· 4407 4402 4408 4403 if (!set && (len == sizeof(int)) && 4409 4404 !(IS_ALIGNED((unsigned long)(arg), (uint) sizeof(int)))) { 4410 - WL_ERROR(("wl%d: %s unaligned get ptr for %s\n", 4411 - wlc->pub->unit, __func__, name)); 4405 + WL_ERROR("wl%d: %s unaligned get ptr for %s\n", 4406 + wlc->pub->unit, __func__, name); 4412 4407 ASSERT(0); 4413 4408 } 4414 4409 ··· 4535 4530 bool bool_val2; 4536 4531 wlc_bss_info_t *current_bss; 4537 4532 4538 - WL_TRACE(("wl%d: %s\n", wlc->pub->unit, __func__)); 4533 + WL_TRACE("wl%d: %s\n", wlc->pub->unit, __func__); 4539 4534 4540 4535 bsscfg = NULL; 4541 4536 current_bss = NULL; ··· 4558 4553 bool_val = (int_val != 0) ? true : false; 4559 4554 bool_val2 = (int_val2 != 0) ? true : false; 4560 4555 4561 - WL_TRACE(("wl%d: %s: id %d\n", wlc->pub->unit, __func__, 4562 - IOV_ID(actionid))); 4556 + WL_TRACE("wl%d: %s: id %d\n", 4557 + wlc->pub->unit, __func__, IOV_ID(actionid)); 4563 4558 /* Do the actual parameter implementation */ 4564 4559 switch (actionid) { 4565 4560 ··· 4617 4612 break; 4618 4613 4619 4614 default: 4620 - WL_ERROR(("wl%d: %s: unsupported\n", wlc->pub->unit, __func__)); 4615 + WL_ERROR("wl%d: %s: unsupported\n", wlc->pub->unit, __func__); 4621 4616 err = BCME_UNSUPPORTED; 4622 4617 break; 4623 4618 } ··· 4752 4747 /* check for rx fifo 0 overflow */ 4753 4748 delta = (u16) (wlc->core->macstat_snapshot->rxf0ovfl - rxf0ovfl); 4754 4749 if (delta) 4755 - WL_ERROR(("wl%d: %u rx fifo 0 overflows!\n", wlc->pub->unit, 4756 - delta)); 4750 + WL_ERROR("wl%d: %u rx fifo 0 overflows!\n", 4751 + wlc->pub->unit, delta); 4757 4752 4758 4753 /* check for tx fifo underflows */ 4759 4754 for (i = 0; i < NFIFO; i++) { ··· 4761 4756 (u16) (wlc->core->macstat_snapshot->txfunfl[i] - 4762 4757 txfunfl[i]); 4763 4758 if (delta) 4764 - WL_ERROR(("wl%d: %u tx fifo %d underflows!\n", 4765 - wlc->pub->unit, delta, i)); 4759 + WL_ERROR("wl%d: %u tx fifo %d underflows!\n", 4760 + wlc->pub->unit, delta, i); 4766 4761 } 4767 4762 #endif /* BCMDBG */ 4768 4763 ··· 4811 4806 bool wlc_chipmatch(u16 vendor, u16 device) 4812 4807 { 4813 4808 if (vendor != VENDOR_BROADCOM) { 4814 - WL_ERROR(("wlc_chipmatch: unknown vendor id %04x\n", vendor)); 4809 + WL_ERROR("wlc_chipmatch: unknown vendor id %04x\n", vendor); 4815 4810 return false; 4816 4811 } 4817 4812 ··· 4823 4818 if ((device == BCM43236_D11N_ID) || (device == BCM43236_D11N2G_ID)) 4824 4819 return true; 4825 4820 4826 - WL_ERROR(("wlc_chipmatch: unknown device id %04x\n", device)); 4821 + WL_ERROR("wlc_chipmatch: unknown device id %04x\n", device); 4827 4822 return false; 4828 4823 } 4829 4824 ··· 5014 5009 p = pktq_peek_tail(q, &eprec); 5015 5010 ASSERT(p != NULL); 5016 5011 if (eprec > prec) { 5017 - WL_ERROR(("%s: Failing: eprec %d > prec %d\n", __func__, 5018 - eprec, prec)); 5012 + WL_ERROR("%s: Failing: eprec %d > prec %d\n", 5013 + __func__, eprec, prec); 5019 5014 return false; 5020 5015 } 5021 5016 } ··· 5031 5026 5032 5027 /* Refuse newer packet unless configured to discard oldest */ 5033 5028 if (eprec == prec && !discard_oldest) { 5034 - WL_ERROR(("%s: No where to go, prec == %d\n", __func__, 5035 - prec)); 5029 + WL_ERROR("%s: No where to go, prec == %d\n", 5030 + __func__, prec); 5036 5031 return false; 5037 5032 } 5038 5033 ··· 5080 5075 if (!wlc_prec_enq(wlc, q, sdu, prec)) { 5081 5076 if (!EDCF_ENAB(wlc->pub) 5082 5077 || (wlc->pub->wlfeatureflag & WL_SWFL_FLOWCONTROL)) 5083 - WL_ERROR(("wl%d: wlc_txq_enq: txq overflow\n", 5084 - wlc->pub->unit)); 5078 + WL_ERROR("wl%d: wlc_txq_enq: txq overflow\n", 5079 + wlc->pub->unit); 5085 5080 5086 5081 /* ASSERT(9 == 8); *//* XXX we might hit this condtion in case packet flooding from mac80211 stack */ 5087 5082 pkt_buf_free_skb(wlc->osh, sdu, true); ··· 5257 5252 */ 5258 5253 if (commit) { 5259 5254 TXPKTPENDINC(wlc, fifo, txpktpend); 5260 - WL_TRACE(("wlc_txfifo, pktpend inc %d to %d\n", txpktpend, 5261 - TXPKTPENDGET(wlc, fifo))); 5255 + WL_TRACE("wlc_txfifo, pktpend inc %d to %d\n", 5256 + txpktpend, TXPKTPENDGET(wlc, fifo)); 5262 5257 } 5263 5258 5264 5259 /* Commit BCMC sequence number in the SHM frame ID location */ ··· 5266 5261 BCMCFID(wlc, frameid); 5267 5262 5268 5263 if (dma_txfast(wlc->hw->di[fifo], p, commit) < 0) { 5269 - WL_ERROR(("wlc_txfifo: fatal, toss frames !!!\n")); 5264 + WL_ERROR("wlc_txfifo: fatal, toss frames !!!\n"); 5270 5265 } 5271 5266 } 5272 5267 ··· 5306 5301 usec = (length << 3) / 11; 5307 5302 break; 5308 5303 default: 5309 - WL_ERROR(("wl%d: wlc_compute_airtime: unsupported rspec 0x%x\n", wlc->pub->unit, rspec)); 5304 + WL_ERROR("wl%d: wlc_compute_airtime: unsupported rspec 0x%x\n", 5305 + wlc->pub->unit, rspec); 5310 5306 ASSERT((const char *)"Bad phy_rate" == NULL); 5311 5307 break; 5312 5308 } ··· 5403 5397 break; 5404 5398 5405 5399 default: 5406 - WL_ERROR(("wlc_cck_plcp_set: unsupported rate %d\n", rate_500)); 5400 + WL_ERROR("wlc_cck_plcp_set: unsupported rate %d\n", rate_500); 5407 5401 rate_500 = WLC_RATE_1M; 5408 5402 usec = length << 3; 5409 5403 break; ··· 5543 5537 bw = RSPEC_GET_BW(rspec); 5544 5538 /* 10Mhz is not supported yet */ 5545 5539 if (bw < PHY_TXC1_BW_20MHZ) { 5546 - WL_ERROR(("wlc_phytxctl1_calc: bw %d is not supported yet, set to 20L\n", bw)); 5540 + WL_ERROR("wlc_phytxctl1_calc: bw %d is not supported yet, set to 20L\n", 5541 + bw); 5547 5542 bw = PHY_TXC1_BW_20MHZ; 5548 5543 } 5549 5544 ··· 5569 5562 /* get the phyctl byte from rate phycfg table */ 5570 5563 phycfg = wlc_rate_legacy_phyctl(RSPEC2RATE(rspec)); 5571 5564 if (phycfg == -1) { 5572 - WL_ERROR(("wlc_phytxctl1_calc: wrong legacy OFDM/CCK rate\n")); 5565 + WL_ERROR("wlc_phytxctl1_calc: wrong legacy OFDM/CCK rate\n"); 5573 5566 ASSERT(0); 5574 5567 phycfg = 0; 5575 5568 } ··· 5729 5722 /* non-AP STA should never use BCMC queue */ 5730 5723 ASSERT(queue != TX_BCMC_FIFO); 5731 5724 if (queue == TX_BCMC_FIFO) { 5732 - WL_ERROR(("wl%d: %s: ASSERT queue == TX_BCMC!\n", 5733 - WLCWLUNIT(wlc), __func__)); 5725 + WL_ERROR("wl%d: %s: ASSERT queue == TX_BCMC!\n", 5726 + WLCWLUNIT(wlc), __func__); 5734 5727 frameid = bcmc_fid_generate(wlc, NULL, txh); 5735 5728 } else { 5736 5729 /* Increment the counter for first fragment */ ··· 5908 5901 5909 5902 if ((txrate[k]->flags & IEEE80211_TX_RC_MCS) 5910 5903 && (!IS_MCS(rspec[k]))) { 5911 - WL_ERROR(("wl%d: %s: IEEE80211_TX_RC_MCS != IS_MCS(rspec)\n", WLCWLUNIT(wlc), __func__)); 5904 + WL_ERROR("wl%d: %s: IEEE80211_TX_RC_MCS != IS_MCS(rspec)\n", 5905 + WLCWLUNIT(wlc), __func__); 5912 5906 ASSERT(0 && "Rate mismatch"); 5913 5907 } 5914 5908 ··· 6303 6295 } 6304 6296 } 6305 6297 } else 6306 - WL_ERROR(("wl%d: %s txop invalid for rate %d\n", 6307 - wlc->pub->unit, fifo_names[queue], 6308 - RSPEC2RATE(rspec[0]))); 6298 + WL_ERROR("wl%d: %s txop invalid for rate %d\n", 6299 + wlc->pub->unit, fifo_names[queue], 6300 + RSPEC2RATE(rspec[0])); 6309 6301 6310 6302 if (dur > wlc->edcf_txop[ac]) 6311 - WL_ERROR(("wl%d: %s: %s txop exceeded phylen %d/%d dur %d/%d\n", wlc->pub->unit, __func__, fifo_names[queue], phylen, wlc->fragthresh[queue], dur, wlc->edcf_txop[ac])); 6303 + WL_ERROR("wl%d: %s: %s txop exceeded phylen %d/%d dur %d/%d\n", 6304 + wlc->pub->unit, __func__, 6305 + fifo_names[queue], 6306 + phylen, wlc->fragthresh[queue], 6307 + dur, wlc->edcf_txop[ac]); 6312 6308 } 6313 6309 } 6314 6310 ··· 6418 6406 if (macintstatus & ~(MI_TBTT | MI_TXSTOP)) { 6419 6407 bcm_format_flags(int_flags, macintstatus, flagstr, 6420 6408 sizeof(flagstr)); 6421 - WL_TRACE(("wl%d: macintstatus 0x%x %s\n", wlc->pub->unit, 6422 - macintstatus, flagstr)); 6409 + WL_TRACE("wl%d: macintstatus 0x%x %s\n", 6410 + wlc->pub->unit, macintstatus, flagstr); 6423 6411 } 6424 6412 #endif /* BCMDBG */ 6425 6413 ··· 6434 6422 wlc_tbtt(wlc, regs); 6435 6423 6436 6424 if (macintstatus & MI_GP0) { 6437 - WL_ERROR(("wl%d: PSM microcode watchdog fired at %d (seconds). Resetting.\n", wlc->pub->unit, wlc->pub->now)); 6425 + WL_ERROR("wl%d: PSM microcode watchdog fired at %d (seconds). Resetting.\n", 6426 + wlc->pub->unit, wlc->pub->now); 6438 6427 6439 6428 printk_once("%s : PSM Watchdog, chipid 0x%x, chiprev 0x%x\n", 6440 6429 __func__, wlc->pub->sih->chip, ··· 6453 6440 } 6454 6441 6455 6442 if (macintstatus & MI_RFDISABLE) { 6456 - WL_ERROR(("wl%d: MAC Detected a change on the RF Disable Input 0x%x\n", wlc->pub->unit, R_REG(wlc->osh, &regs->phydebug) & PDBG_RFD)); 6443 + WL_ERROR("wl%d: MAC Detected a change on the RF Disable Input 0x%x\n", 6444 + wlc->pub->unit, 6445 + R_REG(wlc->osh, &regs->phydebug) & PDBG_RFD); 6457 6446 /* delay the cleanup to wl_down in IBSS case */ 6458 6447 if ((R_REG(wlc->osh, &regs->phydebug) & PDBG_RFD)) { 6459 6448 int idx; ··· 6464 6449 if (!BSSCFG_STA(bsscfg) || !bsscfg->enable 6465 6450 || !bsscfg->BSS) 6466 6451 continue; 6467 - WL_ERROR(("wl%d: wlc_dpc: rfdisable -> wlc_bsscfg_disable()\n", wlc->pub->unit)); 6452 + WL_ERROR("wl%d: wlc_dpc: rfdisable -> wlc_bsscfg_disable()\n", 6453 + wlc->pub->unit); 6468 6454 } 6469 6455 } 6470 6456 } ··· 6501 6485 if (dma_txactive(wlc->hw->di[queue]) == 0) { 6502 6486 WLCNTINCR(wlc->pub->_cnt->txdmawar); 6503 6487 if (!dma_txreset(di)) 6504 - WL_ERROR(("wl%d: %s: dma_txreset[%d]: cannot stop dma\n", wlc->pub->unit, __func__, queue)); 6488 + WL_ERROR("wl%d: %s: dma_txreset[%d]: cannot stop dma\n", 6489 + wlc->pub->unit, __func__, queue); 6505 6490 dma_txinit(di); 6506 6491 } 6507 6492 return p; ··· 6555 6538 ((txs-> 6556 6539 status & TX_STATUS_FRM_RTX_MASK) >> 6557 6540 TX_STATUS_FRM_RTX_SHIFT)); 6558 - WL_ERROR(("%s: INTERMEDIATE but not AMPDU\n", __func__)); 6541 + WL_ERROR("%s: INTERMEDIATE but not AMPDU\n", __func__); 6559 6542 return false; 6560 6543 } 6561 6544 ··· 6580 6563 mcl = ltoh16(txh->MacTxControlLow); 6581 6564 6582 6565 if (txs->phyerr) { 6583 - WL_ERROR(("phyerr 0x%x, rate 0x%x\n", txs->phyerr, 6584 - txh->MainRates)); 6566 + WL_ERROR("phyerr 0x%x, rate 0x%x\n", 6567 + txs->phyerr, txh->MainRates); 6585 6568 wlc_print_txdesc(txh); 6586 6569 wlc_print_txstatus(txs); 6587 6570 } ··· 6612 6595 6613 6596 supr_status = txs->status & TX_STATUS_SUPR_MASK; 6614 6597 if (supr_status == TX_STATUS_SUPR_BADCH) 6615 - WL_NONE(("%s: Pkt tx suppressed, possibly channel %d\n", 6616 - __func__, CHSPEC_CHANNEL(wlc->default_bss->chanspec))); 6598 + WL_NONE("%s: Pkt tx suppressed, possibly channel %d\n", 6599 + __func__, CHSPEC_CHANNEL(wlc->default_bss->chanspec)); 6617 6600 6618 6601 tx_rts = htol16(txh->MacTxControlLow) & TXC_SENDRTS; 6619 6602 tx_frame_count = ··· 6624 6607 lastframe = (fc & FC_MOREFRAG) == 0; 6625 6608 6626 6609 if (!lastframe) { 6627 - WL_ERROR(("Not last frame!\n")); 6610 + WL_ERROR("Not last frame!\n"); 6628 6611 } else { 6629 6612 u16 sfbl, lfbl; 6630 6613 ieee80211_tx_info_clear_status(tx_info); ··· 6675 6658 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, p); 6676 6659 WLCNTINCR(wlc->pub->_cnt->ieee_tx_status); 6677 6660 } else { 6678 - WL_ERROR(("%s: Not last frame => not calling tx_status\n", 6679 - __func__)); 6661 + WL_ERROR("%s: Not last frame => not calling tx_status\n", 6662 + __func__); 6680 6663 } 6681 6664 6682 6665 return false; ··· 6694 6677 wlc_txfifo_complete(struct wlc_info *wlc, uint fifo, s8 txpktpend) 6695 6678 { 6696 6679 TXPKTPENDDEC(wlc, fifo, txpktpend); 6697 - WL_TRACE(("wlc_txfifo_complete, pktpend dec %d to %d\n", txpktpend, 6698 - TXPKTPENDGET(wlc, fifo))); 6680 + WL_TRACE("wlc_txfifo_complete, pktpend dec %d to %d\n", 6681 + txpktpend, TXPKTPENDGET(wlc, fifo)); 6699 6682 6700 6683 /* There is more room; mark precedences related to this FIFO sendable */ 6701 6684 WLC_TX_FIFO_ENAB(wlc, fifo); ··· 6889 6872 rx_status->rate_idx = 11; 6890 6873 break; 6891 6874 default: 6892 - WL_ERROR(("%s: Unknown rate\n", __func__)); 6875 + WL_ERROR("%s: Unknown rate\n", __func__); 6893 6876 } 6894 6877 6895 6878 /* Determine short preamble and rate_idx */ 6896 6879 preamble = 0; 6897 6880 if (IS_CCK(rspec)) { 6898 6881 if (rxh->PhyRxStatus_0 & PRXS0_SHORTH) 6899 - WL_ERROR(("Short CCK\n")); 6882 + WL_ERROR("Short CCK\n"); 6900 6883 rx_status->flag |= RX_FLAG_SHORTPRE; 6901 6884 } else if (IS_OFDM(rspec)) { 6902 6885 rx_status->flag |= RX_FLAG_SHORTPRE; 6903 6886 } else { 6904 - WL_ERROR(("%s: Unknown modulation\n", __func__)); 6887 + WL_ERROR("%s: Unknown modulation\n", __func__); 6905 6888 } 6906 6889 } 6907 6890 ··· 6910 6893 6911 6894 if (rxh->RxStatus1 & RXS_DECERR) { 6912 6895 rx_status->flag |= RX_FLAG_FAILED_PLCP_CRC; 6913 - WL_ERROR(("%s: RX_FLAG_FAILED_PLCP_CRC\n", __func__)); 6896 + WL_ERROR("%s: RX_FLAG_FAILED_PLCP_CRC\n", __func__); 6914 6897 } 6915 6898 if (rxh->RxStatus1 & RXS_FCSERR) { 6916 6899 rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; 6917 - WL_ERROR(("%s: RX_FLAG_FAILED_FCS_CRC\n", __func__)); 6900 + WL_ERROR("%s: RX_FLAG_FAILED_FCS_CRC\n", __func__); 6918 6901 } 6919 6902 } 6920 6903 ··· 6960 6943 wlc_bss_info_t *bi; 6961 6944 6962 6945 if (!bss_list) { 6963 - WL_ERROR(("%s: Attempting to free NULL list\n", __func__)); 6946 + WL_ERROR("%s: Attempting to free NULL list\n", __func__); 6964 6947 return; 6965 6948 } 6966 6949 /* inspect all BSS descriptor */ ··· 6992 6975 uint len; 6993 6976 bool is_amsdu; 6994 6977 6995 - WL_TRACE(("wl%d: wlc_recv\n", wlc->pub->unit)); 6978 + WL_TRACE("wl%d: wlc_recv\n", wlc->pub->unit); 6996 6979 6997 6980 osh = wlc->osh; 6998 6981 ··· 7009 6992 if (rxh->RxStatus1 & RXS_PBPRES) { 7010 6993 if (p->len < 2) { 7011 6994 WLCNTINCR(wlc->pub->_cnt->rxrunt); 7012 - WL_ERROR(("wl%d: wlc_recv: rcvd runt of len %d\n", 7013 - wlc->pub->unit, p->len)); 6995 + WL_ERROR("wl%d: wlc_recv: rcvd runt of len %d\n", 6996 + wlc->pub->unit, p->len); 7014 6997 goto toss; 7015 6998 } 7016 6999 skb_pull(p, 2); ··· 7021 7004 7022 7005 if (rxh->RxStatus1 & RXS_FCSERR) { 7023 7006 if (wlc->pub->mac80211_state & MAC80211_PROMISC_BCNS) { 7024 - WL_ERROR(("FCSERR while scanning******* - tossing\n")); 7007 + WL_ERROR("FCSERR while scanning******* - tossing\n"); 7025 7008 goto toss; 7026 7009 } else { 7027 - WL_ERROR(("RCSERR!!!\n")); 7010 + WL_ERROR("RCSERR!!!\n"); 7028 7011 goto toss; 7029 7012 } 7030 7013 } ··· 7045 7028 if (FC_TYPE(fc) == FC_TYPE_DATA || FC_TYPE(fc) == FC_TYPE_MNG) { 7046 7029 if ((is_zero_ether_addr(h->a2.octet) || 7047 7030 is_multicast_ether_addr(h->a2.octet))) { 7048 - WL_ERROR(("wl%d: %s: dropping a frame with " 7049 - "invalid src mac address, a2: %pM\n", 7050 - wlc->pub->unit, __func__, &h->a2)); 7031 + WL_ERROR("wl%d: %s: dropping a frame with invalid src mac address, a2: %pM\n", 7032 + wlc->pub->unit, __func__, &h->a2); 7051 7033 WLCNTINCR(wlc->pub->_cnt->rxbadsrcmac); 7052 7034 goto toss; 7053 7035 } ··· 7061 7045 } 7062 7046 7063 7047 if (is_amsdu) { 7064 - WL_ERROR(("%s: is_amsdu causing toss\n", __func__)); 7048 + WL_ERROR("%s: is_amsdu causing toss\n", __func__); 7065 7049 goto toss; 7066 7050 } 7067 7051 ··· 7083 7067 { 7084 7068 uint nsyms, len = 0, kNdps; 7085 7069 7086 - WL_TRACE(("wl%d: wlc_calc_lsig_len: rate %d, len%d\n", wlc->pub->unit, 7087 - RSPEC2RATE(ratespec), mac_len)); 7070 + WL_TRACE("wl%d: wlc_calc_lsig_len: rate %d, len%d\n", 7071 + wlc->pub->unit, RSPEC2RATE(ratespec), mac_len); 7088 7072 7089 7073 if (IS_MCS(ratespec)) { 7090 7074 uint mcs = ratespec & RSPEC_RATE_MASK; ··· 7128 7112 7129 7113 if (rate == 0) { 7130 7114 ASSERT(0); 7131 - WL_ERROR(("wl%d: WAR: using rate of 1 mbps\n", wlc->pub->unit)); 7115 + WL_ERROR("wl%d: WAR: using rate of 1 mbps\n", wlc->pub->unit); 7132 7116 rate = WLC_RATE_1M; 7133 7117 } 7134 7118 7135 - WL_TRACE(("wl%d: wlc_calc_frame_time: rspec 0x%x, preamble_type %d, len%d\n", wlc->pub->unit, ratespec, preamble_type, mac_len)); 7119 + WL_TRACE("wl%d: wlc_calc_frame_time: rspec 0x%x, preamble_type %d, len%d\n", 7120 + wlc->pub->unit, ratespec, preamble_type, mac_len); 7136 7121 7137 7122 if (IS_MCS(ratespec)) { 7138 7123 uint mcs = ratespec & RSPEC_RATE_MASK; ··· 7197 7180 uint nsyms, mac_len, Ndps, kNdps; 7198 7181 uint rate = RSPEC2RATE(ratespec); 7199 7182 7200 - WL_TRACE(("wl%d: wlc_calc_frame_len: rspec 0x%x, preamble_type %d, dur %d\n", wlc->pub->unit, ratespec, preamble_type, dur)); 7183 + WL_TRACE("wl%d: wlc_calc_frame_len: rspec 0x%x, preamble_type %d, dur %d\n", 7184 + wlc->pub->unit, ratespec, preamble_type, dur); 7201 7185 7202 7186 if (IS_MCS(ratespec)) { 7203 7187 uint mcs = ratespec & RSPEC_RATE_MASK; ··· 7240 7222 static uint 7241 7223 wlc_calc_ba_time(struct wlc_info *wlc, ratespec_t rspec, u8 preamble_type) 7242 7224 { 7243 - WL_TRACE(("wl%d: wlc_calc_ba_time: rspec 0x%x, preamble_type %d\n", 7244 - wlc->pub->unit, rspec, preamble_type)); 7225 + WL_TRACE("wl%d: wlc_calc_ba_time: rspec 0x%x, preamble_type %d\n", 7226 + wlc->pub->unit, rspec, preamble_type); 7245 7227 /* Spec 9.6: ack rate is the highest rate in BSSBasicRateSet that is less than 7246 7228 * or equal to the rate of the immediately previous frame in the FES 7247 7229 */ ··· 7259 7241 { 7260 7242 uint dur = 0; 7261 7243 7262 - WL_TRACE(("wl%d: wlc_calc_ack_time: rspec 0x%x, preamble_type %d\n", 7263 - wlc->pub->unit, rspec, preamble_type)); 7244 + WL_TRACE("wl%d: wlc_calc_ack_time: rspec 0x%x, preamble_type %d\n", 7245 + wlc->pub->unit, rspec, preamble_type); 7264 7246 /* Spec 9.6: ack rate is the highest rate in BSSBasicRateSet that is less than 7265 7247 * or equal to the rate of the immediately previous frame in the FES 7266 7248 */ ··· 7277 7259 static uint 7278 7260 wlc_calc_cts_time(struct wlc_info *wlc, ratespec_t rspec, u8 preamble_type) 7279 7261 { 7280 - WL_TRACE(("wl%d: wlc_calc_cts_time: ratespec 0x%x, preamble_type %d\n", 7281 - wlc->pub->unit, rspec, preamble_type)); 7262 + WL_TRACE("wl%d: wlc_calc_cts_time: ratespec 0x%x, preamble_type %d\n", 7263 + wlc->pub->unit, rspec, preamble_type); 7282 7264 return wlc_calc_ack_time(wlc, rspec, preamble_type); 7283 7265 } 7284 7266 ··· 7307 7289 rate = (rateset->rates[i] & RATE_MASK); 7308 7290 7309 7291 if (rate > WLC_MAXRATE) { 7310 - WL_ERROR(("wlc_rate_lookup_init: invalid rate 0x%X in rate set\n", rateset->rates[i])); 7292 + WL_ERROR("wlc_rate_lookup_init: invalid rate 0x%X in rate set\n", 7293 + rateset->rates[i]); 7311 7294 continue; 7312 7295 } 7313 7296 ··· 7487 7468 return true; 7488 7469 error: 7489 7470 if (verbose) { 7490 - WL_ERROR(("wl%d: wlc_valid_rate: rate spec 0x%x not in hw_rateset\n", wlc->pub->unit, rspec)); 7471 + WL_ERROR("wl%d: wlc_valid_rate: rate spec 0x%x not in hw_rateset\n", 7472 + wlc->pub->unit, rspec); 7491 7473 } 7492 7474 7493 7475 return false; ··· 7570 7550 uint bcntsfoff = 0; 7571 7551 7572 7552 if (IS_MCS(rspec)) { 7573 - WL_ERROR(("wl%d: recd beacon with mcs rate; rspec 0x%x\n", 7574 - wlc->pub->unit, rspec)); 7553 + WL_ERROR("wl%d: recd beacon with mcs rate; rspec 0x%x\n", 7554 + wlc->pub->unit, rspec); 7575 7555 } else if (IS_OFDM(rspec)) { 7576 7556 /* tx delay from MAC through phy to air (2.1 usec) + 7577 7557 * phy header time (preamble + PLCP SIGNAL == 20 usec) + ··· 7999 7979 if (N_ENAB(wlc->pub) && ismcs) { 8000 7980 /* mcs only allowed when nmode */ 8001 7981 if (stf > PHY_TXC1_MODE_SDM) { 8002 - WL_ERROR(("wl%d: %s: Invalid stf\n", WLCWLUNIT(wlc), 8003 - __func__)); 7982 + WL_ERROR("wl%d: %s: Invalid stf\n", 7983 + WLCWLUNIT(wlc), __func__); 8004 7984 bcmerror = BCME_RANGE; 8005 7985 goto done; 8006 7986 } ··· 8010 7990 if (!CHSPEC_IS40(wlc->home_chanspec) || 8011 7991 ((stf != PHY_TXC1_MODE_SISO) 8012 7992 && (stf != PHY_TXC1_MODE_CDD))) { 8013 - WL_ERROR(("wl%d: %s: Invalid mcs 32\n", 8014 - WLCWLUNIT(wlc), __func__)); 7993 + WL_ERROR("wl%d: %s: Invalid mcs 32\n", 7994 + WLCWLUNIT(wlc), __func__); 8015 7995 bcmerror = BCME_RANGE; 8016 7996 goto done; 8017 7997 } ··· 8019 7999 } else if (rate > HIGHEST_SINGLE_STREAM_MCS) { 8020 8000 /* mcs > 7 must use stf SDM */ 8021 8001 if (stf != PHY_TXC1_MODE_SDM) { 8022 - WL_TRACE(("wl%d: %s: enabling SDM mode for mcs %d\n", WLCWLUNIT(wlc), __func__, rate)); 8002 + WL_TRACE("wl%d: %s: enabling SDM mode for mcs %d\n", 8003 + WLCWLUNIT(wlc), __func__, rate); 8023 8004 stf = PHY_TXC1_MODE_SDM; 8024 8005 } 8025 8006 } else { ··· 8028 8007 if ((stf > PHY_TXC1_MODE_STBC) || 8029 8008 (!WLC_STBC_CAP_PHY(wlc) 8030 8009 && (stf == PHY_TXC1_MODE_STBC))) { 8031 - WL_ERROR(("wl%d: %s: Invalid STBC\n", 8032 - WLCWLUNIT(wlc), __func__)); 8010 + WL_ERROR("wl%d: %s: Invalid STBC\n", 8011 + WLCWLUNIT(wlc), __func__); 8033 8012 bcmerror = BCME_RANGE; 8034 8013 goto done; 8035 8014 } 8036 8015 } 8037 8016 } else if (IS_OFDM(rate)) { 8038 8017 if ((stf != PHY_TXC1_MODE_CDD) && (stf != PHY_TXC1_MODE_SISO)) { 8039 - WL_ERROR(("wl%d: %s: Invalid OFDM\n", WLCWLUNIT(wlc), 8040 - __func__)); 8018 + WL_ERROR("wl%d: %s: Invalid OFDM\n", 8019 + WLCWLUNIT(wlc), __func__); 8041 8020 bcmerror = BCME_RANGE; 8042 8021 goto done; 8043 8022 } 8044 8023 } else if (IS_CCK(rate)) { 8045 8024 if ((cur_band->bandtype != WLC_BAND_2G) 8046 8025 || (stf != PHY_TXC1_MODE_SISO)) { 8047 - WL_ERROR(("wl%d: %s: Invalid CCK\n", WLCWLUNIT(wlc), 8048 - __func__)); 8026 + WL_ERROR("wl%d: %s: Invalid CCK\n", 8027 + WLCWLUNIT(wlc), __func__); 8049 8028 bcmerror = BCME_RANGE; 8050 8029 goto done; 8051 8030 } 8052 8031 } else { 8053 - WL_ERROR(("wl%d: %s: Unknown rate type\n", WLCWLUNIT(wlc), 8054 - __func__)); 8032 + WL_ERROR("wl%d: %s: Unknown rate type\n", 8033 + WLCWLUNIT(wlc), __func__); 8055 8034 bcmerror = BCME_RANGE; 8056 8035 goto done; 8057 8036 } 8058 8037 /* make sure multiple antennae are available for non-siso rates */ 8059 8038 if ((stf != PHY_TXC1_MODE_SISO) && (wlc->stf->txstreams == 1)) { 8060 - WL_ERROR(("wl%d: %s: SISO antenna but !SISO request\n", 8061 - WLCWLUNIT(wlc), __func__)); 8039 + WL_ERROR("wl%d: %s: SISO antenna but !SISO request\n", 8040 + WLCWLUNIT(wlc), __func__); 8062 8041 bcmerror = BCME_RANGE; 8063 8042 goto done; 8064 8043 } ··· 8089 8068 8090 8069 return rspec; 8091 8070 done: 8092 - WL_ERROR(("Hoark\n")); 8071 + WL_ERROR("Hoark\n"); 8093 8072 return rate; 8094 8073 } 8095 8074 ··· 8103 8082 isOFDM ? M_TX_IDLE_BUSY_RATIO_X_16_OFDM : 8104 8083 M_TX_IDLE_BUSY_RATIO_X_16_CCK; 8105 8084 if (duty_cycle > 100 || duty_cycle < 0) { 8106 - WL_ERROR(("wl%d: duty cycle value off limit\n", 8107 - wlc->pub->unit)); 8085 + WL_ERROR("wl%d: duty cycle value off limit\n", wlc->pub->unit); 8108 8086 return BCME_RANGE; 8109 8087 } 8110 8088 if (duty_cycle) ··· 8302 8282 uint prio_bits; 8303 8283 uint cur_bits; 8304 8284 8305 - WL_ERROR(("%s: flow contro kicks in\n", __func__)); 8285 + WL_ERROR("%s: flow control kicks in\n", __func__); 8306 8286 8307 8287 if (prio == ALLPRIO) { 8308 8288 prio_bits = TXQ_STOP_FOR_PRIOFC_MASK;
+2 -1
drivers/staging/brcm80211/sys/wlc_phy_shim.c
··· 70 70 71 71 physhim = kzalloc(sizeof(wlc_phy_shim_info_t), GFP_ATOMIC); 72 72 if (!physhim) { 73 - WL_ERROR(("wl%d: wlc_phy_shim_attach: out of mem\n", wlc_hw->unit)); 73 + WL_ERROR("wl%d: wlc_phy_shim_attach: out of mem\n", 74 + wlc_hw->unit); 74 75 return NULL; 75 76 } 76 77 physhim->wlc_hw = wlc_hw;
+7 -5
drivers/staging/brcm80211/sys/wlc_stf.c
··· 196 196 197 197 static int wlc_stf_txcore_set(struct wlc_info *wlc, u8 Nsts, u8 core_mask) 198 198 { 199 - WL_TRACE(("wl%d: %s: Nsts %d core_mask %x\n", 200 - wlc->pub->unit, __func__, Nsts, core_mask)); 199 + WL_TRACE("wl%d: %s: Nsts %d core_mask %x\n", 200 + wlc->pub->unit, __func__, Nsts, core_mask); 201 201 202 202 ASSERT((Nsts > 0) && (Nsts <= MAX_STREAMS_SUPPORTED)); 203 203 ··· 236 236 int i; 237 237 u8 core_mask = 0; 238 238 239 - WL_TRACE(("wl%d: %s: val %x\n", wlc->pub->unit, __func__, val)); 239 + WL_TRACE("wl%d: %s: val %x\n", wlc->pub->unit, __func__, val); 240 240 241 241 wlc->stf->spatial_policy = (s8) val; 242 242 for (i = 1; i <= MAX_STREAMS_SUPPORTED; i++) { ··· 278 278 if (RSPEC_STF(wlc->bandstate[i]->rspec_override) 279 279 != PHY_TXC1_MODE_SISO) { 280 280 wlc->bandstate[i]->rspec_override = 0; 281 - WL_ERROR(("%s(): temp sense override non-SISO" " rspec_override.\n", __func__)); 281 + WL_ERROR("%s(): temp sense override non-SISO rspec_override\n", 282 + __func__); 282 283 } 283 284 if (RSPEC_STF 284 285 (wlc->bandstate[i]->mrspec_override) != 285 286 PHY_TXC1_MODE_SISO) { 286 287 wlc->bandstate[i]->mrspec_override = 0; 287 - WL_ERROR(("%s(): temp sense override non-SISO" " mrspec_override.\n", __func__)); 288 + WL_ERROR("%s(): temp sense override non-SISO mrspec_override\n", 289 + __func__); 288 290 } 289 291 } 290 292 }