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

mac80211: remove debugfs noack test

This feature has been superseded by the NoAck per Queue feature.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Simon Wunderlich and committed by
John W. Linville
6fd67e93 eb1852b1

+2 -47
-35
net/mac80211/debugfs.c
··· 97 97 .llseek = noop_llseek, 98 98 }; 99 99 100 - static ssize_t noack_read(struct file *file, char __user *user_buf, 101 - size_t count, loff_t *ppos) 102 - { 103 - struct ieee80211_local *local = file->private_data; 104 - 105 - return mac80211_format_buffer(user_buf, count, ppos, "%d\n", 106 - local->wifi_wme_noack_test); 107 - } 108 - 109 - static ssize_t noack_write(struct file *file, 110 - const char __user *user_buf, 111 - size_t count, loff_t *ppos) 112 - { 113 - struct ieee80211_local *local = file->private_data; 114 - char buf[10]; 115 - size_t len; 116 - 117 - len = min(count, sizeof(buf) - 1); 118 - if (copy_from_user(buf, user_buf, len)) 119 - return -EFAULT; 120 - buf[len] = '\0'; 121 - 122 - local->wifi_wme_noack_test = !!simple_strtoul(buf, NULL, 0); 123 - 124 - return count; 125 - } 126 - 127 - static const struct file_operations noack_ops = { 128 - .read = noack_read, 129 - .write = noack_write, 130 - .open = mac80211_open_file_generic, 131 - .llseek = default_llseek, 132 - }; 133 - 134 100 static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, 135 101 size_t count, loff_t *ppos) 136 102 { ··· 364 398 DEBUGFS_ADD(wep_iv); 365 399 DEBUGFS_ADD(queues); 366 400 DEBUGFS_ADD_MODE(reset, 0200); 367 - DEBUGFS_ADD(noack); 368 401 DEBUGFS_ADD(uapsd_queues); 369 402 DEBUGFS_ADD(uapsd_max_sp_len); 370 403 DEBUGFS_ADD(channel_type);
-1
net/mac80211/ieee80211_i.h
··· 961 961 int total_ps_buffered; /* total number of all buffered unicast and 962 962 * multicast packets for power saving stations 963 963 */ 964 - int wifi_wme_noack_test; 965 964 unsigned int wmm_acm; /* bit field of ACM bits (BIT(802.1D tag)) */ 966 965 967 966 /*
+1 -9
net/mac80211/tx.c
··· 1173 1173 if (is_multicast_ether_addr(hdr->addr1)) { 1174 1174 tx->flags &= ~IEEE80211_TX_UNICAST; 1175 1175 info->flags |= IEEE80211_TX_CTL_NO_ACK; 1176 - } else { 1176 + } else 1177 1177 tx->flags |= IEEE80211_TX_UNICAST; 1178 - if (unlikely(local->wifi_wme_noack_test)) 1179 - info->flags |= IEEE80211_TX_CTL_NO_ACK; 1180 - /* 1181 - * Flags are initialized to 0. Hence, no need to 1182 - * explicitly unset IEEE80211_TX_CTL_NO_ACK since 1183 - * it might already be set for injected frames. 1184 - */ 1185 - } 1186 1178 1187 1179 if (!(info->flags & IEEE80211_TX_CTL_DONTFRAG)) { 1188 1180 if (!(tx->flags & IEEE80211_TX_UNICAST) ||
+1 -2
net/mac80211/wme.c
··· 150 150 /* preserve EOSP bit */ 151 151 ack_policy = *p & IEEE80211_QOS_CTL_EOSP; 152 152 153 - if (unlikely(sdata->local->wifi_wme_noack_test) || 154 - is_multicast_ether_addr(hdr->addr1)) 153 + if (is_multicast_ether_addr(hdr->addr1)) 155 154 ack_policy |= IEEE80211_QOS_CTL_ACK_POLICY_NOACK; 156 155 /* qos header is 2 bytes */ 157 156 *p++ = ack_policy | tid;