浏览代码

cfg80211: print correct intersected regulatory domain

When CONFIG_CFG80211_REG_DEBUG is enabled and an intersection
occurs we are printing the regulatory domain passed by CRDA
and indicating its the intersected regulatory domain. Lets fix
this and print the intersection as originally intended.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Luis R. Rodriguez 16 年之前
父节点
当前提交
667ecd010d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/wireless/reg.c

+ 1 - 1
net/wireless/reg.c

@@ -1284,7 +1284,7 @@ static void reg_country_ie_process_debug(
 	if (intersected_rd) {
 	if (intersected_rd) {
 		printk(KERN_DEBUG "cfg80211: We intersect both of these "
 		printk(KERN_DEBUG "cfg80211: We intersect both of these "
 			"and get:\n");
 			"and get:\n");
-		print_regdomain_info(rd);
+		print_regdomain_info(intersected_rd);
 		return;
 		return;
 	}
 	}
 	printk(KERN_DEBUG "cfg80211: Intersection between both failed\n");
 	printk(KERN_DEBUG "cfg80211: Intersection between both failed\n");