|
@@ -498,6 +498,9 @@ int ath9k_init_debug(struct ath_softc *sc)
|
|
|
{
|
|
{
|
|
|
sc->debug.debug_mask = ath9k_debug;
|
|
sc->debug.debug_mask = ath9k_debug;
|
|
|
|
|
|
|
|
|
|
+ if (!ath9k_debugfs_root)
|
|
|
|
|
+ return -ENOENT;
|
|
|
|
|
+
|
|
|
sc->debug.debugfs_phy = debugfs_create_dir(wiphy_name(sc->hw->wiphy),
|
|
sc->debug.debugfs_phy = debugfs_create_dir(wiphy_name(sc->hw->wiphy),
|
|
|
ath9k_debugfs_root);
|
|
ath9k_debugfs_root);
|
|
|
if (!sc->debug.debugfs_phy)
|
|
if (!sc->debug.debugfs_phy)
|