Update NodeWireless entries which match both MAC and SSID found, only
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2.017001 -
|
||||||
|
|
||||||
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* Update NodeWireless entries which match both MAC and SSID found, only
|
||||||
|
|
||||||
2.017000 - 2013-09-23
|
2.017000 - 2013-09-23
|
||||||
|
|
||||||
[NEW FEATURES]
|
[NEW FEATURES]
|
||||||
|
|||||||
@@ -455,9 +455,11 @@ sub store_wireless_client_info {
|
|||||||
? int($rates->[$#$rates])
|
? int($rates->[$#$rates])
|
||||||
: undef;
|
: undef;
|
||||||
|
|
||||||
|
my $ssid = $cd11_ssid->{$idx} || 'unknown';
|
||||||
|
|
||||||
schema('netdisco')->txn_do(sub {
|
schema('netdisco')->txn_do(sub {
|
||||||
schema('netdisco')->resultset('NodeWireless')
|
schema('netdisco')->resultset('NodeWireless')
|
||||||
->search({ 'me.mac' => $mac })
|
->search({ 'me.mac' => $mac, 'me.ssid' => $ssid })
|
||||||
->update_or_create({
|
->update_or_create({
|
||||||
txrate => $txrate,
|
txrate => $txrate,
|
||||||
maxrate => $maxrate,
|
maxrate => $maxrate,
|
||||||
@@ -468,7 +470,6 @@ sub store_wireless_client_info {
|
|||||||
txbyte => $cd11_txbyte->{$idx},
|
txbyte => $cd11_txbyte->{$idx},
|
||||||
sigqual => $cd11_sigqual->{$idx},
|
sigqual => $cd11_sigqual->{$idx},
|
||||||
sigstrength => $cd11_sigstrength->{$idx},
|
sigstrength => $cd11_sigstrength->{$idx},
|
||||||
ssid => ($cd11_ssid->{$idx} || 'unknown'),
|
|
||||||
time_last => \$now,
|
time_last => \$now,
|
||||||
}, {
|
}, {
|
||||||
order_by => [qw/mac ssid/],
|
order_by => [qw/mac ssid/],
|
||||||
|
|||||||
Reference in New Issue
Block a user