diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-08-01 08:48:58 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-08-01 08:48:58 +0000 |
commit | 25919e3d11456d514a085fe5e33e935d6ff68814 (patch) | |
tree | 198a36a3d883a13888c85bfbd67f51f4afd3344c | |
parent | 056abbaa3985b2cba1a4d16507c197c2103601ab (diff) | |
download | drakx-net-25919e3d11456d514a085fe5e33e935d6ff68814.tar drakx-net-25919e3d11456d514a085fe5e33e935d6ff68814.tar.gz drakx-net-25919e3d11456d514a085fe5e33e935d6ff68814.tar.bz2 drakx-net-25919e3d11456d514a085fe5e33e935d6ff68814.tar.xz drakx-net-25919e3d11456d514a085fe5e33e935d6ff68814.zip |
write WIRELESS_WPA_REASSOCIATE=yes for rt61pci driver
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/network/connection/wireless.pm | 6 | ||||
-rw-r--r-- | lib/network/network.pm | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- write WIRELESS_WPA_REASSOCIATE=yes for rt61pci driver + 0.36: - cellular providers: add Vodafone for Germany - wireless backend: fix rescaling signal levels from wpa_supplicant 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), |