aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2015-11-15 02:31:05 -0500
committerJohannes Berg <johannes.berg@intel.com>2016-01-14 05:10:11 -0500
commit94c4fd641e1bc438092f0214bb5ec77ea73b13cf (patch)
tree65281a0ca24f6bef176311ecbbe167d2232c7db0 /net
parente6a8a3aaaac832f47092df93f46298251b136fc9 (diff)
wireless: change cfg80211 regulatory domain info as debug messages
cfg80211 module prints a lot of messages like below. Actually printing once is acceptable but sometimes it will print again and again, it looks very annoying. It is better to change these detail messages to debugging only. cfg80211: World regulatory domain updated: cfg80211: DFS Master region: unset cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A) cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) The changes in this patch is to replace pr_info with pr_debug in function print_rd_rules and print_regdomain_info Signed-off-by: Dave Young <dyoung@redhat.com> [change some pr_err() statements to at least keep the alpha2] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/reg.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 3b0ce1c484a3..99618c1402ae 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -2745,7 +2745,7 @@ static void print_rd_rules(const struct ieee80211_regdomain *rd)
2745 const struct ieee80211_power_rule *power_rule = NULL; 2745 const struct ieee80211_power_rule *power_rule = NULL;
2746 char bw[32], cac_time[32]; 2746 char bw[32], cac_time[32];
2747 2747
2748 pr_info(" (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)\n"); 2748 pr_debug(" (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)\n");
2749 2749
2750 for (i = 0; i < rd->n_reg_rules; i++) { 2750 for (i = 0; i < rd->n_reg_rules; i++) {
2751 reg_rule = &rd->reg_rules[i]; 2751 reg_rule = &rd->reg_rules[i];
@@ -2772,7 +2772,7 @@ static void print_rd_rules(const struct ieee80211_regdomain *rd)
2772 * in certain regions 2772 * in certain regions
2773 */ 2773 */
2774 if (power_rule->max_antenna_gain) 2774 if (power_rule->max_antenna_gain)
2775 pr_info(" (%d KHz - %d KHz @ %s), (%d mBi, %d mBm), (%s)\n", 2775 pr_debug(" (%d KHz - %d KHz @ %s), (%d mBi, %d mBm), (%s)\n",
2776 freq_range->start_freq_khz, 2776 freq_range->start_freq_khz,
2777 freq_range->end_freq_khz, 2777 freq_range->end_freq_khz,
2778 bw, 2778 bw,
@@ -2780,7 +2780,7 @@ static void print_rd_rules(const struct ieee80211_regdomain *rd)
2780 power_rule->max_eirp, 2780 power_rule->max_eirp,
2781 cac_time); 2781 cac_time);
2782 else 2782 else
2783 pr_info(" (%d KHz - %d KHz @ %s), (N/A, %d mBm), (%s)\n", 2783 pr_debug(" (%d KHz - %d KHz @ %s), (N/A, %d mBm), (%s)\n",
2784 freq_range->start_freq_khz, 2784 freq_range->start_freq_khz,
2785 freq_range->end_freq_khz, 2785 freq_range->end_freq_khz,
2786 bw, 2786 bw,
@@ -2813,35 +2813,35 @@ static void print_regdomain(const struct ieee80211_regdomain *rd)
2813 struct cfg80211_registered_device *rdev; 2813 struct cfg80211_registered_device *rdev;
2814 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx); 2814 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx);
2815 if (rdev) { 2815 if (rdev) {
2816 pr_info("Current regulatory domain updated by AP to: %c%c\n", 2816 pr_debug("Current regulatory domain updated by AP to: %c%c\n",
2817 rdev->country_ie_alpha2[0], 2817 rdev->country_ie_alpha2[0],
2818 rdev->country_ie_alpha2[1]); 2818 rdev->country_ie_alpha2[1]);
2819 } else 2819 } else
2820 pr_info("Current regulatory domain intersected:\n"); 2820 pr_debug("Current regulatory domain intersected:\n");
2821 } else 2821 } else
2822 pr_info("Current regulatory domain intersected:\n"); 2822 pr_debug("Current regulatory domain intersected:\n");
2823 } else if (is_world_regdom(rd->alpha2)) { 2823 } else if (is_world_regdom(rd->alpha2)) {
2824 pr_info("World regulatory domain updated:\n"); 2824 pr_debug("World regulatory domain updated:\n");
2825 } else { 2825 } else {
2826 if (is_unknown_alpha2(rd->alpha2)) 2826 if (is_unknown_alpha2(rd->alpha2))
2827 pr_info("Regulatory domain changed to driver built-in settings (unknown country)\n"); 2827 pr_debug("Regulatory domain changed to driver built-in settings (unknown country)\n");
2828 else { 2828 else {
2829 if (reg_request_cell_base(lr)) 2829 if (reg_request_cell_base(lr))
2830 pr_info("Regulatory domain changed to country: %c%c by Cell Station\n", 2830 pr_debug("Regulatory domain changed to country: %c%c by Cell Station\n",
2831 rd->alpha2[0], rd->alpha2[1]); 2831 rd->alpha2[0], rd->alpha2[1]);
2832 else 2832 else
2833 pr_info("Regulatory domain changed to country: %c%c\n", 2833 pr_debug("Regulatory domain changed to country: %c%c\n",
2834 rd->alpha2[0], rd->alpha2[1]); 2834 rd->alpha2[0], rd->alpha2[1]);
2835 } 2835 }
2836 } 2836 }
2837 2837
2838 pr_info(" DFS Master region: %s", reg_dfs_region_str(rd->dfs_region)); 2838 pr_debug(" DFS Master region: %s", reg_dfs_region_str(rd->dfs_region));
2839 print_rd_rules(rd); 2839 print_rd_rules(rd);
2840} 2840}
2841 2841
2842static void print_regdomain_info(const struct ieee80211_regdomain *rd) 2842static void print_regdomain_info(const struct ieee80211_regdomain *rd)
2843{ 2843{
2844 pr_info("Regulatory domain: %c%c\n", rd->alpha2[0], rd->alpha2[1]); 2844 pr_debug("Regulatory domain: %c%c\n", rd->alpha2[0], rd->alpha2[1]);
2845 print_rd_rules(rd); 2845 print_rd_rules(rd);
2846} 2846}
2847 2847
@@ -2862,7 +2862,8 @@ static int reg_set_rd_user(const struct ieee80211_regdomain *rd,
2862 return -EALREADY; 2862 return -EALREADY;
2863 2863
2864 if (!is_valid_rd(rd)) { 2864 if (!is_valid_rd(rd)) {
2865 pr_err("Invalid regulatory domain detected:\n"); 2865 pr_err("Invalid regulatory domain detected: %c%c\n",
2866 rd->alpha2[0], rd->alpha2[1]);
2866 print_regdomain_info(rd); 2867 print_regdomain_info(rd);
2867 return -EINVAL; 2868 return -EINVAL;
2868 } 2869 }
@@ -2898,7 +2899,8 @@ static int reg_set_rd_driver(const struct ieee80211_regdomain *rd,
2898 return -EALREADY; 2899 return -EALREADY;
2899 2900
2900 if (!is_valid_rd(rd)) { 2901 if (!is_valid_rd(rd)) {
2901 pr_err("Invalid regulatory domain detected:\n"); 2902 pr_err("Invalid regulatory domain detected: %c%c\n",
2903 rd->alpha2[0], rd->alpha2[1]);
2902 print_regdomain_info(rd); 2904 print_regdomain_info(rd);
2903 return -EINVAL; 2905 return -EINVAL;
2904 } 2906 }
@@ -2956,7 +2958,8 @@ static int reg_set_rd_country_ie(const struct ieee80211_regdomain *rd,
2956 */ 2958 */
2957 2959
2958 if (!is_valid_rd(rd)) { 2960 if (!is_valid_rd(rd)) {
2959 pr_err("Invalid regulatory domain detected:\n"); 2961 pr_err("Invalid regulatory domain detected: %c%c\n",
2962 rd->alpha2[0], rd->alpha2[1]);
2960 print_regdomain_info(rd); 2963 print_regdomain_info(rd);
2961 return -EINVAL; 2964 return -EINVAL;
2962 } 2965 }