浏览代码

[PATCH] wireless/airo: Remove 'Setting transmit key' info messages

These messages end up polluting logs when things like NetworkManager or
wpa_supplicant are controlling the driver.  They aren't really that
useful, and no other drivers output messages like this when the user
fiddles with encryption keys.  Users can use iwconfig and other
wireless-tools methods to determine and change the current transmit key
if they wish to do so manually.  Therefore, remove the messages.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Dan Williams 19 年之前
父节点
当前提交
a23f460dd0
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/net/wireless/airo.c

+ 0 - 2
drivers/net/wireless/airo.c

@@ -5036,7 +5036,6 @@ static int set_wep_key(struct airo_info *ai, u16 index,
 		wkr.len = sizeof(wkr);
 		wkr.len = sizeof(wkr);
 		wkr.kindex = 0xffff;
 		wkr.kindex = 0xffff;
 		wkr.mac[0] = (char)index;
 		wkr.mac[0] = (char)index;
-		if (perm) printk(KERN_INFO "Setting transmit key to %d\n", index);
 		if (perm) ai->defindex = (char)index;
 		if (perm) ai->defindex = (char)index;
 	} else {
 	} else {
 // We are actually setting the key
 // We are actually setting the key
@@ -5045,7 +5044,6 @@ static int set_wep_key(struct airo_info *ai, u16 index,
 		wkr.klen = keylen;
 		wkr.klen = keylen;
 		memcpy( wkr.key, key, keylen );
 		memcpy( wkr.key, key, keylen );
 		memcpy( wkr.mac, macaddr, ETH_ALEN );
 		memcpy( wkr.mac, macaddr, ETH_ALEN );
-		printk(KERN_INFO "Setting key %d\n", index);
 	}
 	}
 
 
 	if (perm) disable_MAC(ai, lock);
 	if (perm) disable_MAC(ai, lock);