From f55e8cfe7e4258dce90e4224c5b0240b0a8a4771 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 29 Apr 2022 15:35:16 +0100 Subject: [PATCH] Hotfix for BSSID -> Station ID bug --- src/components/WifiAnalysis/WifiAnalysis.js | 6 +++--- src/components/WifiAnalysis/index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/WifiAnalysis/WifiAnalysis.js b/src/components/WifiAnalysis/WifiAnalysis.js index 159c02b..81030f1 100644 --- a/src/components/WifiAnalysis/WifiAnalysis.js +++ b/src/components/WifiAnalysis/WifiAnalysis.js @@ -23,7 +23,7 @@ const WifiAnalysisTable = ({ t, data, loading }) => { }; const columns = [ { key: 'radio', label: '#', _style: { width: '1%' } }, - { key: 'bssid', label: 'BSSID', _style: { width: '1%' } }, + { key: 'station', label: 'Station ID', _style: { width: '1%' } }, { key: 'vendor', label: t('wifi_analysis.vendor'), _style: { width: '15%' }, sorter: false }, { key: 'mode', label: t('wifi_analysis.mode'), _style: { width: '1%' }, sorter: false }, { key: 'ssid', label: 'SSID', _style: { width: '15%' } }, @@ -84,12 +84,12 @@ const WifiAnalysisTable = ({ t, data, loading }) => { sorter sorterValue={{ column: 'radio', asc: true }} scopedSlots={{ - bssid: (item) => ( + station: (item) => ( - {item.bssid} + {item.station} ), radio: (item) => {item.radio.radio}, diff --git a/src/components/WifiAnalysis/index.js b/src/components/WifiAnalysis/index.js index 62a2a50..a9f33c8 100644 --- a/src/components/WifiAnalysis/index.js +++ b/src/components/WifiAnalysis/index.js @@ -147,12 +147,12 @@ const WifiAnalysis = () => { if ('associations' in ssid) { for (const association of ssid.associations) { - bssidObj[association.bssid] = 0; + bssidObj[association.station] = 0; const data = { radio: radioInfo, ...extractIp(stat.data, association.bssid), - bssid: association.bssid, + station: association.station, ssid: ssid.ssid, rssi: association.rssi ? parseDbm(association.rssi) : '-', mode: ssid.mode, @@ -181,7 +181,7 @@ const WifiAnalysis = () => { for (let i = 0; i < newParsedAssociationStats.length; i += 1) { for (let y = 0; y < newParsedAssociationStats[i].length; y += 1) { newParsedAssociationStats[i][y].vendor = - vendors[newParsedAssociationStats[i][y].bssid] ?? '-'; + vendors[newParsedAssociationStats[i][y].station] ?? '-'; } }