mirror of
https://github.com/proski/madwifi
synced 2024-11-22 06:21:47 +03:00
Make module loading and unloading much less noisy. I don't believe any of this ifnromation is particularly useful for dbeugging, and definitely not for operational use.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3742 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
7eedc3e565
commit
03dbd3568d
12
ath/if_ath.c
12
ath/if_ath.c
@ -595,8 +595,8 @@ ath_attach(u_int16_t devid, struct net_device *dev, HAL_BUS_TAG tag)
|
|||||||
"supported by the HAL.\n");
|
"supported by the HAL.\n");
|
||||||
hal_tpc = 0;
|
hal_tpc = 0;
|
||||||
}
|
}
|
||||||
IPRINTF(sc, "HAL managed transmit power control (TPC) %s.\n",
|
DPRINTF(sc, ATH_DEBUG_ANY, "HAL managed transmit power control (TPC) "
|
||||||
hal_tpc ? "enabled" : "disabled");
|
"%s.\n", hal_tpc ? "enabled" : "disabled");
|
||||||
ath_hal_settpc(ah, hal_tpc);
|
ath_hal_settpc(ah, hal_tpc);
|
||||||
#else
|
#else
|
||||||
sc->sc_hastpc = 0;
|
sc->sc_hastpc = 0;
|
||||||
@ -623,7 +623,8 @@ ath_attach(u_int16_t devid, struct net_device *dev, HAL_BUS_TAG tag)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ath_hal_setintmit(ah, sc->sc_useintmit);
|
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"));
|
(sc->sc_useintmit ? "enabled" : "disabled"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11193,7 +11194,9 @@ ath_announce(struct net_device *dev)
|
|||||||
struct ath_softc *sc = dev->priv;
|
struct ath_softc *sc = dev->priv;
|
||||||
struct ath_hal *ah = sc->sc_ah;
|
struct ath_hal *ah = sc->sc_ah;
|
||||||
u_int modes, cc;
|
u_int modes, cc;
|
||||||
|
#if 0
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
#endif
|
||||||
|
|
||||||
printk(KERN_INFO "%s: Atheros AR%s chip found (MAC %d.%d, ",
|
printk(KERN_INFO "%s: Atheros AR%s chip found (MAC %d.%d, ",
|
||||||
DEV_NAME(dev),
|
DEV_NAME(dev),
|
||||||
@ -11226,6 +11229,8 @@ ath_announce(struct net_device *dev)
|
|||||||
ah->ah_analog5GhzRev & 0xf);
|
ah->ah_analog5GhzRev & 0xf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Disabled - this information is not operationally useful. */
|
||||||
|
#if 0
|
||||||
for (i = 0; i <= WME_AC_VO; i++) {
|
for (i = 0; i <= WME_AC_VO; i++) {
|
||||||
struct ath_txq *txq = sc->sc_ac2q[i];
|
struct ath_txq *txq = sc->sc_ac2q[i];
|
||||||
printk(KERN_INFO "%s: Use H/W queue %u for %s traffic\n",
|
printk(KERN_INFO "%s: Use H/W queue %u for %s traffic\n",
|
||||||
@ -11247,6 +11252,7 @@ ath_announce(struct net_device *dev)
|
|||||||
DEV_NAME(dev), sc->sc_cabq->axq_qnum);
|
DEV_NAME(dev), sc->sc_cabq->axq_qnum);
|
||||||
printk(KERN_INFO "%s: Use hw queue %u for beacons\n",
|
printk(KERN_INFO "%s: Use hw queue %u for beacons\n",
|
||||||
DEV_NAME(dev), sc->sc_bhalq);
|
DEV_NAME(dev), sc->sc_bhalq);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -380,10 +380,7 @@ MODULE_LICENSE("Dual BSD/GPL");
|
|||||||
static int __init
|
static int __init
|
||||||
init_ath_pci(void)
|
init_ath_pci(void)
|
||||||
{
|
{
|
||||||
int status;
|
int status = pci_register_driver(&ath_pci_driver);
|
||||||
printk(KERN_INFO "%s: %s\n", dev_info, version);
|
|
||||||
|
|
||||||
status = pci_register_driver(&ath_pci_driver);
|
|
||||||
if (status)
|
if (status)
|
||||||
return (status);
|
return (status);
|
||||||
ath_sysctl_register();
|
ath_sysctl_register();
|
||||||
@ -396,8 +393,6 @@ exit_ath_pci(void)
|
|||||||
{
|
{
|
||||||
ath_sysctl_unregister();
|
ath_sysctl_unregister();
|
||||||
pci_unregister_driver(&ath_pci_driver);
|
pci_unregister_driver(&ath_pci_driver);
|
||||||
|
|
||||||
printk(KERN_INFO "%s: driver unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(exit_ath_pci);
|
module_exit(exit_ath_pci);
|
||||||
|
|
||||||
|
@ -1082,7 +1082,9 @@ ath_hal_sysctl_unregister(void)
|
|||||||
* Module glue.
|
* Module glue.
|
||||||
*/
|
*/
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
#if 0
|
||||||
static char *dev_info = "ath_hal";
|
static char *dev_info = "ath_hal";
|
||||||
|
#endif
|
||||||
|
|
||||||
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
|
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
|
||||||
MODULE_DESCRIPTION("Atheros Hardware Access Layer (HAL)");
|
MODULE_DESCRIPTION("Atheros Hardware Access Layer (HAL)");
|
||||||
@ -1122,7 +1124,6 @@ init_ath_hal(void)
|
|||||||
kmmio_logmsg = _kmmio_logmsg;
|
kmmio_logmsg = _kmmio_logmsg;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printk("%s: %s (", dev_info, ath_hal_version);
|
|
||||||
sep = "";
|
sep = "";
|
||||||
for (i = 0; ath_hal_buildopts[i] != NULL; i++) {
|
for (i = 0; ath_hal_buildopts[i] != NULL; i++) {
|
||||||
printk("%s%s", sep, ath_hal_buildopts[i]);
|
printk("%s%s", sep, ath_hal_buildopts[i]);
|
||||||
@ -1141,6 +1142,5 @@ exit_ath_hal(void)
|
|||||||
kmmio_logmsg = NULL;
|
kmmio_logmsg = NULL;
|
||||||
#endif
|
#endif
|
||||||
ath_hal_sysctl_unregister();
|
ath_hal_sysctl_unregister();
|
||||||
printk("%s: driver unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(exit_ath_hal);
|
module_exit(exit_ath_hal);
|
||||||
|
@ -555,8 +555,10 @@ static struct ieee80211_rate_ops ath_rate_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#include "release.h"
|
#include "release.h"
|
||||||
|
#if 0
|
||||||
static char *version = "0.1 (" RELEASE_VERSION ")";
|
static char *version = "0.1 (" RELEASE_VERSION ")";
|
||||||
static char *dev_info = "ath_rate_amrr";
|
static char *dev_info = "ath_rate_amrr";
|
||||||
|
#endif
|
||||||
|
|
||||||
MODULE_AUTHOR("INRIA, Mathieu Lacage");
|
MODULE_AUTHOR("INRIA, Mathieu Lacage");
|
||||||
MODULE_DESCRIPTION("AMRR Rate control algorithm");
|
MODULE_DESCRIPTION("AMRR Rate control algorithm");
|
||||||
@ -570,10 +572,7 @@ MODULE_LICENSE("Dual BSD/GPL");
|
|||||||
static int __init
|
static int __init
|
||||||
init_ath_rate_amrr(void)
|
init_ath_rate_amrr(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = ieee80211_rate_register(&ath_rate_ops);
|
||||||
printk(KERN_INFO "%s: %s\n", dev_info, version);
|
|
||||||
|
|
||||||
ret = ieee80211_rate_register(&ath_rate_ops);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -588,7 +587,5 @@ exit_ath_rate_amrr(void)
|
|||||||
if (ath_sysctl_header != NULL)
|
if (ath_sysctl_header != NULL)
|
||||||
unregister_sysctl_table(ath_sysctl_header);
|
unregister_sysctl_table(ath_sysctl_header);
|
||||||
ieee80211_rate_unregister(&ath_rate_ops);
|
ieee80211_rate_unregister(&ath_rate_ops);
|
||||||
|
|
||||||
printk(KERN_INFO "%s: unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(exit_ath_rate_amrr);
|
module_exit(exit_ath_rate_amrr);
|
||||||
|
@ -133,8 +133,9 @@ enum {
|
|||||||
#define ONE_SECOND (1000 * 1000) /* 1 second, or 1000 milliseconds; eternity, in other words */
|
#define ONE_SECOND (1000 * 1000) /* 1 second, or 1000 milliseconds; eternity, in other words */
|
||||||
|
|
||||||
#include "release.h"
|
#include "release.h"
|
||||||
|
#if 0
|
||||||
static char *version = "1.2 (" RELEASE_VERSION ")";
|
static char *version = "1.2 (" RELEASE_VERSION ")";
|
||||||
|
#endif
|
||||||
static char *dev_info = "ath_rate_minstrel";
|
static char *dev_info = "ath_rate_minstrel";
|
||||||
|
|
||||||
#define STALE_FAILURE_TIMEOUT_MS 10000
|
#define STALE_FAILURE_TIMEOUT_MS 10000
|
||||||
@ -1091,14 +1092,15 @@ MODULE_LICENSE("Dual BSD/GPL");
|
|||||||
|
|
||||||
static int __init ath_rate_minstrel_init(void)
|
static int __init ath_rate_minstrel_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s: Minstrel automatic rate control "
|
/* Debugging output - disabled as noisy. */
|
||||||
"algorithm %s\n", dev_info, version);
|
#if 0
|
||||||
printk(KERN_INFO "%s: look around rate set to %d%%\n",
|
printk(KERN_INFO "%s: look around rate set to %d%%\n",
|
||||||
dev_info, ath_lookaround_rate);
|
dev_info, ath_lookaround_rate);
|
||||||
printk(KERN_INFO "%s: EWMA rolloff level set to %d%%\n",
|
printk(KERN_INFO "%s: EWMA rolloff level set to %d%%\n",
|
||||||
dev_info, ath_ewma_level);
|
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);
|
"to %d us\n", dev_info, ath_segment_size);
|
||||||
|
#endif
|
||||||
return ieee80211_rate_register(&ath_rate_ops);
|
return ieee80211_rate_register(&ath_rate_ops);
|
||||||
}
|
}
|
||||||
module_init(ath_rate_minstrel_init);
|
module_init(ath_rate_minstrel_init);
|
||||||
@ -1106,7 +1108,6 @@ module_init(ath_rate_minstrel_init);
|
|||||||
static void __exit ath_rate_minstrel_exit(void)
|
static void __exit ath_rate_minstrel_exit(void)
|
||||||
{
|
{
|
||||||
ieee80211_rate_unregister(&ath_rate_ops);
|
ieee80211_rate_unregister(&ath_rate_ops);
|
||||||
printk(KERN_INFO "%s: unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(ath_rate_minstrel_exit);
|
module_exit(ath_rate_minstrel_exit);
|
||||||
|
|
||||||
|
@ -502,8 +502,10 @@ static struct ieee80211_rate_ops ath_rate_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#include "release.h"
|
#include "release.h"
|
||||||
|
#if 0
|
||||||
static char *version = "1.0 (" RELEASE_VERSION ")";
|
static char *version = "1.0 (" RELEASE_VERSION ")";
|
||||||
static char *dev_info = "ath_rate_onoe";
|
static char *dev_info = "ath_rate_onoe";
|
||||||
|
#endif
|
||||||
|
|
||||||
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
|
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
|
||||||
MODULE_DESCRIPTION("Atsushi Onoe's rate control algorithm for Atheros devices");
|
MODULE_DESCRIPTION("Atsushi Onoe's rate control algorithm for Atheros devices");
|
||||||
@ -517,10 +519,7 @@ MODULE_LICENSE("Dual BSD/GPL");
|
|||||||
static int __init
|
static int __init
|
||||||
init_ath_rate_onoe(void)
|
init_ath_rate_onoe(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = ieee80211_rate_register(&ath_rate_ops);
|
||||||
printk(KERN_INFO "%s: %s\n", dev_info, version);
|
|
||||||
|
|
||||||
ret = ieee80211_rate_register(&ath_rate_ops);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -535,7 +534,5 @@ exit_ath_rate_onoe(void)
|
|||||||
if (ath_sysctl_header != NULL)
|
if (ath_sysctl_header != NULL)
|
||||||
unregister_sysctl_table(ath_sysctl_header);
|
unregister_sysctl_table(ath_sysctl_header);
|
||||||
ieee80211_rate_unregister(&ath_rate_ops);
|
ieee80211_rate_unregister(&ath_rate_ops);
|
||||||
|
|
||||||
printk(KERN_INFO "%s: unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(exit_ath_rate_onoe);
|
module_exit(exit_ath_rate_onoe);
|
||||||
|
@ -110,7 +110,9 @@ enum {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "release.h"
|
#include "release.h"
|
||||||
|
#if 0
|
||||||
static char *version = "1.2 (" RELEASE_VERSION ")";
|
static char *version = "1.2 (" RELEASE_VERSION ")";
|
||||||
|
#endif
|
||||||
static char *dev_info = "ath_rate_sample";
|
static char *dev_info = "ath_rate_sample";
|
||||||
|
|
||||||
|
|
||||||
@ -1136,7 +1138,6 @@ MODULE_LICENSE("Dual BSD/GPL");
|
|||||||
static int __init
|
static int __init
|
||||||
init_ath_rate_sample(void)
|
init_ath_rate_sample(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s: %s\n", dev_info, version);
|
|
||||||
return ieee80211_rate_register(&ath_rate_ops);
|
return ieee80211_rate_register(&ath_rate_ops);
|
||||||
}
|
}
|
||||||
module_init(init_ath_rate_sample);
|
module_init(init_ath_rate_sample);
|
||||||
@ -1145,6 +1146,5 @@ static void __exit
|
|||||||
exit_ath_rate_sample(void)
|
exit_ath_rate_sample(void)
|
||||||
{
|
{
|
||||||
ieee80211_rate_unregister(&ath_rate_ops);
|
ieee80211_rate_unregister(&ath_rate_ops);
|
||||||
printk(KERN_INFO "%s: unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(exit_ath_rate_sample);
|
module_exit(exit_ath_rate_sample);
|
||||||
|
@ -1152,6 +1152,8 @@ EXPORT_SYMBOL(ieee80211_dfs_test_return);
|
|||||||
void
|
void
|
||||||
ieee80211_announce(struct ieee80211com *ic)
|
ieee80211_announce(struct ieee80211com *ic)
|
||||||
{
|
{
|
||||||
|
/* Disabled - creates noise but no useful information. */
|
||||||
|
#if 0
|
||||||
struct net_device *dev = ic->ic_dev;
|
struct net_device *dev = ic->ic_dev;
|
||||||
int i, mode, rate, mword;
|
int i, mode, rate, mword;
|
||||||
struct ieee80211_rateset *rs;
|
struct ieee80211_rateset *rs;
|
||||||
@ -1184,6 +1186,7 @@ ieee80211_announce(struct ieee80211com *ic)
|
|||||||
if (ic->ic_caps & IEEE80211_C_TKIP)
|
if (ic->ic_caps & IEEE80211_C_TKIP)
|
||||||
printk(" TKIP");
|
printk(" TKIP");
|
||||||
printk("\n");
|
printk("\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ieee80211_announce);
|
EXPORT_SYMBOL(ieee80211_announce);
|
||||||
|
|
||||||
|
@ -982,8 +982,10 @@ static struct notifier_block ieee80211_event_block = {
|
|||||||
* Module glue.
|
* Module glue.
|
||||||
*/
|
*/
|
||||||
#include "release.h"
|
#include "release.h"
|
||||||
|
#if 0
|
||||||
static char *version = RELEASE_VERSION;
|
static char *version = RELEASE_VERSION;
|
||||||
static char *dev_info = "wlan";
|
static char *dev_info = "wlan";
|
||||||
|
#endif
|
||||||
|
|
||||||
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
|
MODULE_AUTHOR("Errno Consulting, Sam Leffler");
|
||||||
MODULE_DESCRIPTION("802.11 wireless LAN protocol support");
|
MODULE_DESCRIPTION("802.11 wireless LAN protocol support");
|
||||||
@ -1000,7 +1002,6 @@ static int __init
|
|||||||
init_wlan(void)
|
init_wlan(void)
|
||||||
{
|
{
|
||||||
register_netdevice_notifier(&ieee80211_event_block);
|
register_netdevice_notifier(&ieee80211_event_block);
|
||||||
printk(KERN_INFO "%s: %s\n", dev_info, version);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
module_init(init_wlan);
|
module_init(init_wlan);
|
||||||
@ -1009,6 +1010,5 @@ static void __exit
|
|||||||
exit_wlan(void)
|
exit_wlan(void)
|
||||||
{
|
{
|
||||||
unregister_netdevice_notifier(&ieee80211_event_block);
|
unregister_netdevice_notifier(&ieee80211_event_block);
|
||||||
printk(KERN_INFO "%s: driver unloaded\n", dev_info);
|
|
||||||
}
|
}
|
||||||
module_exit(exit_wlan);
|
module_exit(exit_wlan);
|
||||||
|
Loading…
Reference in New Issue
Block a user