debug.c (3f2da95517029d88365a074ef81a928a99871964) debug.c (047dc3ac884f3285bc123461e5e3c38f44fb32a6)
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

--- 293 unchanged lines hidden (view full) ---

302 goto exit;
303
304 buf[len] = '\0';
305 if (kstrtoul(buf, 0, &bt_ant_diversity))
306 return -EINVAL;
307
308 common->bt_ant_diversity = !!bt_ant_diversity;
309 ath9k_ps_wakeup(sc);
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

--- 293 unchanged lines hidden (view full) ---

302 goto exit;
303
304 buf[len] = '\0';
305 if (kstrtoul(buf, 0, &bt_ant_diversity))
306 return -EINVAL;
307
308 common->bt_ant_diversity = !!bt_ant_diversity;
309 ath9k_ps_wakeup(sc);
310 ath_ant_comb_update(sc);
310 ath9k_hw_set_bt_ant_diversity(sc->sc_ah, common->bt_ant_diversity);
311 ath_dbg(common, CONFIG, "Enable WLAN/BT RX Antenna diversity: %d\n",
312 common->bt_ant_diversity);
313 ath9k_ps_restore(sc);
314exit:
315 return count;
316}
317
318static const struct file_operations fops_bt_ant_diversity = {

--- 1629 unchanged lines hidden ---
311 ath_dbg(common, CONFIG, "Enable WLAN/BT RX Antenna diversity: %d\n",
312 common->bt_ant_diversity);
313 ath9k_ps_restore(sc);
314exit:
315 return count;
316}
317
318static const struct file_operations fops_bt_ant_diversity = {

--- 1629 unchanged lines hidden ---