"supported by the HAL.\n");
hal_tpc = 0;
}
- IPRINTF(sc, "HAL managed transmit power control (TPC) %s.\n",
- hal_tpc ? "enabled" : "disabled");
+ DPRINTF(sc, ATH_DEBUG_ANY, "HAL managed transmit power control (TPC) "
+ "%s.\n", hal_tpc ? "enabled" : "disabled");
ath_hal_settpc(ah, hal_tpc);
#else
sc->sc_hastpc = 0;
}
else {
ath_hal_setintmit(ah, sc->sc_useintmit);
- IPRINTF(sc, "Interference mitigation is supported. Currently %s.\n",
+ DPRINTF(sc, ATH_DEBUG_ANY, "Interference mitigation is "
+ "supported. Currently %s.\n",
(sc->sc_useintmit ? "enabled" : "disabled"));
}
struct ath_softc *sc = dev->priv;
struct ath_hal *ah = sc->sc_ah;
u_int modes, cc;
+#if 0
unsigned int i;
+#endif
printk(KERN_INFO "%s: Atheros AR%s chip found (MAC %d.%d, ",
DEV_NAME(dev),
ah->ah_analog5GhzRev & 0xf);
}
+/* Disabled - this information is not operationally useful. */
+#if 0
for (i = 0; i <= WME_AC_VO; i++) {
struct ath_txq *txq = sc->sc_ac2q[i];
printk(KERN_INFO "%s: Use H/W queue %u for %s traffic\n",
DEV_NAME(dev), sc->sc_cabq->axq_qnum);
printk(KERN_INFO "%s: Use hw queue %u for beacons\n",
DEV_NAME(dev), sc->sc_bhalq);
+#endif
}
/*
static int __init
init_ath_pci(void)
{
- int status;
- printk(KERN_INFO "%s: %s\n", dev_info, version);
-
- status = pci_register_driver(&ath_pci_driver);
+ int status = pci_register_driver(&ath_pci_driver);
if (status)
return (status);
ath_sysctl_register();
{
ath_sysctl_unregister();
pci_unregister_driver(&ath_pci_driver);
-
- printk(KERN_INFO "%s: driver unloaded\n", dev_info);
}
module_exit(exit_ath_pci);
* Module glue.
*/
#include "version.h"
+#if 0
static char *dev_info = "ath_hal";
+#endif
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
MODULE_DESCRIPTION("Atheros Hardware Access Layer (HAL)");
kmmio_logmsg = _kmmio_logmsg;
#endif
- printk("%s: %s (", dev_info, ath_hal_version);
sep = "";
for (i = 0; ath_hal_buildopts[i] != NULL; i++) {
printk("%s%s", sep, ath_hal_buildopts[i]);
kmmio_logmsg = NULL;
#endif
ath_hal_sysctl_unregister();
- printk("%s: driver unloaded\n", dev_info);
}
module_exit(exit_ath_hal);
};
#include "release.h"
+#if 0
static char *version = "0.1 (" RELEASE_VERSION ")";
static char *dev_info = "ath_rate_amrr";
+#endif
MODULE_AUTHOR("INRIA, Mathieu Lacage");
MODULE_DESCRIPTION("AMRR Rate control algorithm");
static int __init
init_ath_rate_amrr(void)
{
- int ret;
- printk(KERN_INFO "%s: %s\n", dev_info, version);
-
- ret = ieee80211_rate_register(&ath_rate_ops);
+ int ret = ieee80211_rate_register(&ath_rate_ops);
if (ret)
return ret;
if (ath_sysctl_header != NULL)
unregister_sysctl_table(ath_sysctl_header);
ieee80211_rate_unregister(&ath_rate_ops);
-
- printk(KERN_INFO "%s: unloaded\n", dev_info);
}
module_exit(exit_ath_rate_amrr);
#define ONE_SECOND (1000 * 1000) /* 1 second, or 1000 milliseconds; eternity, in other words */
#include "release.h"
-
+#if 0
static char *version = "1.2 (" RELEASE_VERSION ")";
+#endif
static char *dev_info = "ath_rate_minstrel";
#define STALE_FAILURE_TIMEOUT_MS 10000
static int __init ath_rate_minstrel_init(void)
{
- printk(KERN_INFO "%s: Minstrel automatic rate control "
- "algorithm %s\n", dev_info, version);
+/* Debugging output - disabled as noisy. */
+#if 0
printk(KERN_INFO "%s: look around rate set to %d%%\n",
dev_info, ath_lookaround_rate);
printk(KERN_INFO "%s: EWMA rolloff level set to %d%%\n",
dev_info, ath_ewma_level);
- printk(KERN_INFO "%s: max segment size in the mrr set "
+ printk(KERN_INFO "%s: max segment size in the MRR set "
"to %d us\n", dev_info, ath_segment_size);
+#endif
return ieee80211_rate_register(&ath_rate_ops);
}
module_init(ath_rate_minstrel_init);
static void __exit ath_rate_minstrel_exit(void)
{
ieee80211_rate_unregister(&ath_rate_ops);
- printk(KERN_INFO "%s: unloaded\n", dev_info);
}
module_exit(ath_rate_minstrel_exit);
};
#include "release.h"
+#if 0
static char *version = "1.0 (" RELEASE_VERSION ")";
static char *dev_info = "ath_rate_onoe";
+#endif
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
MODULE_DESCRIPTION("Atsushi Onoe's rate control algorithm for Atheros devices");
static int __init
init_ath_rate_onoe(void)
{
- int ret;
- printk(KERN_INFO "%s: %s\n", dev_info, version);
-
- ret = ieee80211_rate_register(&ath_rate_ops);
+ int ret = ieee80211_rate_register(&ath_rate_ops);
if (ret)
return ret;
if (ath_sysctl_header != NULL)
unregister_sysctl_table(ath_sysctl_header);
ieee80211_rate_unregister(&ath_rate_ops);
-
- printk(KERN_INFO "%s: unloaded\n", dev_info);
}
module_exit(exit_ath_rate_onoe);
*/
#include "release.h"
+#if 0
static char *version = "1.2 (" RELEASE_VERSION ")";
+#endif
static char *dev_info = "ath_rate_sample";
static int __init
init_ath_rate_sample(void)
{
- printk(KERN_INFO "%s: %s\n", dev_info, version);
return ieee80211_rate_register(&ath_rate_ops);
}
module_init(init_ath_rate_sample);
exit_ath_rate_sample(void)
{
ieee80211_rate_unregister(&ath_rate_ops);
- printk(KERN_INFO "%s: unloaded\n", dev_info);
}
module_exit(exit_ath_rate_sample);
void
ieee80211_announce(struct ieee80211com *ic)
{
+/* Disabled - creates noise but no useful information. */
+#if 0
struct net_device *dev = ic->ic_dev;
int i, mode, rate, mword;
struct ieee80211_rateset *rs;
if (ic->ic_caps & IEEE80211_C_TKIP)
printk(" TKIP");
printk("\n");
+#endif
}
EXPORT_SYMBOL(ieee80211_announce);
* Module glue.
*/
#include "release.h"
+#if 0
static char *version = RELEASE_VERSION;
static char *dev_info = "wlan";
+#endif
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
MODULE_DESCRIPTION("802.11 wireless LAN protocol support");
init_wlan(void)
{
register_netdevice_notifier(&ieee80211_event_block);
- printk(KERN_INFO "%s: %s\n", dev_info, version);
return 0;
}
module_init(init_wlan);
exit_wlan(void)
{
unregister_netdevice_notifier(&ieee80211_event_block);
- printk(KERN_INFO "%s: driver unloaded\n", dev_info);
}
module_exit(exit_wlan);