debug.c (e9e4e44309f866b115d08ab4a54834008c50a8a4) | debug.c (283dd11994cde99447a6dac203d96c0800e85e82) |
---|---|
1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 1142 unchanged lines hidden (view full) --- 1151 1152 if (val < 0 || val > 1) 1153 return -EINVAL; 1154 1155 tpc_enabled = !!val; 1156 1157 if (tpc_enabled != ah->tpc_enabled) { 1158 ah->tpc_enabled = tpc_enabled; | 1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 1142 unchanged lines hidden (view full) --- 1151 1152 if (val < 0 || val > 1) 1153 return -EINVAL; 1154 1155 tpc_enabled = !!val; 1156 1157 if (tpc_enabled != ah->tpc_enabled) { 1158 ah->tpc_enabled = tpc_enabled; |
1159 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); | 1159 1160 mutex_lock(&sc->mutex); 1161 ath9k_set_txpower(sc, NULL); 1162 mutex_unlock(&sc->mutex); |
1160 } 1161 1162 return count; 1163} 1164 1165static const struct file_operations fops_tpc = { 1166 .read = read_file_tpc, 1167 .write = write_file_tpc, --- 225 unchanged lines hidden --- | 1163 } 1164 1165 return count; 1166} 1167 1168static const struct file_operations fops_tpc = { 1169 .read = read_file_tpc, 1170 .write = write_file_tpc, --- 225 unchanged lines hidden --- |