iwlwifi: mvm: add bt rrc and ttc to debugfs
authorMoshe Harel <moshe.harel@intel.com>
Mon, 26 Oct 2015 09:33:49 +0000 (11:33 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 26 Nov 2015 14:38:51 +0000 (16:38 +0200)
As part of the bt_notif file add fields that are currently
not represented

Signed-off-by: Moshe Harel <moshe.harel@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

index 2322c995de5692b67401423e461dea19dc70d9f7..82a61f6c59d141a9d2bed8cd79851b0c84a1db43 100644 (file)
@@ -512,6 +512,10 @@ static ssize_t iwl_dbgfs_bt_notif_read(struct file *file, char __user *user_buf,
                pos += scnprintf(buf+pos, bufsz-pos,
                                 "antenna isolation = %d CORUN LUT index = %d\n",
                                 mvm->last_ant_isol, mvm->last_corun_lut);
+               pos += scnprintf(buf + pos, bufsz - pos, "bt_rrc = %d\n",
+                                notif->rrc_enabled);
+               pos += scnprintf(buf + pos, bufsz - pos, "bt_ttc = %d\n",
+                                notif->ttc_enabled);
        } else {
                struct iwl_bt_coex_profile_notif *notif =
                        &mvm->last_bt_notif;
@@ -530,6 +534,10 @@ static ssize_t iwl_dbgfs_bt_notif_read(struct file *file, char __user *user_buf,
                pos += scnprintf(buf+pos, bufsz-pos,
                                 "antenna isolation = %d CORUN LUT index = %d\n",
                                 mvm->last_ant_isol, mvm->last_corun_lut);
+               pos += scnprintf(buf + pos, bufsz - pos, "bt_rrc = %d\n",
+                                (notif->ttc_rrc_status >> 4) & 0xF);
+               pos += scnprintf(buf + pos, bufsz - pos, "bt_ttc = %d\n",
+                                notif->ttc_rrc_status & 0xF);
        }
 
        pos += scnprintf(buf + pos, bufsz - pos, "sync_sco = %d\n",