summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/network/connection/wireless.pm6
-rw-r--r--lib/network/network.pm2
3 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4dea1ee..9ea4357 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- write WIRELESS_WPA_REASSOCIATE=yes for rt61pci driver
+
0.39:
- update some icons
- update translations
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 0a4f891..203dbef 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -593,6 +593,7 @@ sub build_ifcfg_settings {
WIRELESS_MODE => $self->{access}{network}{mode},
if_($self->need_wpa_supplicant,
WIRELESS_WPA_DRIVER => wpa_supplicant_get_driver($self->get_driver),
+ WIRELESS_WPA_REASSOCIATE => bool2yesno($self->need_wpa_supplicant_reassociate),
MII_NOT_SUPPORTED => 'no',
),
WIRELESS_ESSID => $self->{access}{network}{essid},
@@ -709,6 +710,11 @@ sub is_wpa_supplicant_blacklisted {
is_old_rt2x00($module);
}
+sub need_wpa_supplicant_reassociate {
+ my ($self) = @_;
+ $self->get_driver eq 'rt61pci';
+}
+
sub need_rt2x00_iwpriv {
my ($self) = @_;
is_old_rt2x00($self->get_driver) && $self->{access}{network}{encryption} eq 'wpa-psk';
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 75ba03d..5f6df53 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -182,7 +182,7 @@ sub update_broadcast_and_network {
sub write_interface_settings {
my ($intf, $file) = @_;
setVarsInSh($file, $intf, qw(DEVICE BOOTPROTO IPADDR NETMASK NETWORK BROADCAST GATEWAY ONBOOT HWADDR METRIC MII_NOT_SUPPORTED TYPE USERCTL ATM_ADDR ETHTOOL_OPTS VLAN MTU DNS1 DNS2 DOMAIN RESOLV_MODS LINK_DETECTION_DELAY),
- qw(WIRELESS_MODE WIRELESS_ESSID WIRELESS_NWID WIRELESS_FREQ WIRELESS_SENS WIRELESS_RATE WIRELESS_ENC_KEY WIRELESS_ENC_MODE WIRELESS_RTS WIRELESS_FRAG WIRELESS_IWCONFIG WIRELESS_IWSPY WIRELESS_IWPRIV WIRELESS_WPA_DRIVER),
+ qw(WIRELESS_MODE WIRELESS_ESSID WIRELESS_NWID WIRELESS_FREQ WIRELESS_SENS WIRELESS_RATE WIRELESS_ENC_KEY WIRELESS_ENC_MODE WIRELESS_RTS WIRELESS_FRAG WIRELESS_IWCONFIG WIRELESS_IWSPY WIRELESS_IWPRIV WIRELESS_WPA_DRIVER WIRELESS_WPA_REASSOCIATE),
qw(DVB_ADAPTER_ID DVB_NETWORK_DEMUX DVB_NETWORK_PID),
qw(IPV6INIT IPV6TO4INIT),
qw(MRU REMIP PPPOPTIONS HARDFLOWCTL DEFABORT RETRYTIMEOUT PAPNAME LINESPEED MODEMPORT DEBUG ESCAPECHARS INITSTRING),