Hi Alexander,

This patch you have applied has affected the ndiswrapper driver.

I am running Kubuntu on IBM laptop Z60t with Atheros wireless card
AR5212

Originally I think it was on Fiesty  I had problems with a kernel
upgrade that effected my wireless connectivity to hidden networks.

I download the source for wireless-tools 29 (I think this was the recommend fix)
And also the latest ndiswrapper, wpa_supplicat and Network Manager 0.6.5 
(unpatched)

Once I compiled and installed these programs my wireless was working
again

On upgrading to Gutsy suddenly I could not connect to my wireless router
using ndiswrapper.

Interestingly if I use the madwifi driver then I can connect fine to my
hidden wireless network.

I noticed that in the daemon.log the AP_SCAN command was set to 1 where 
previously it was set to 2 
I thought AP_SCAN = 2 is what should be set when connecting to a hidden 
wireless network.

I tested this out by running wpa_supplicant from the command line using
the ndiswrapper driver.

wpa_supplicant -c/etc/wpa_supplicant.conf -iwlan0 -d

I set ap_scan = 1 in the wpa_supplicant.conf file and wpa_supplicant could not
connect to the wireless router. When I set the value back to 2 it could connect.

I also tried using wpa_supplicant on the command line for the madwifi driver 
and I 
could connect to the wireless router using AP_SCAN = 1 or 2.

I downloaded the source package unpacked and applied the patches.
network-manager_0.6.5-0ubuntu16.diff.gz
network-manager_0.6.5-0ubuntu16.dsc
network-manager_0.6.5.orig.tar.gz

In the patched file nm-device-802-11-wireless.c

I changed this section of the code (approx line 2923):

        if (!strcmp (kernel_driver, "orinoco_cs"))
                ap_scan = "AP_SCAN 2";
        else if (is_adhoc || !supports_wpa)
                ap_scan = "AP_SCAN 2";
        else
                ap_scan = "AP_SCAN 1";

to:

        if (!strcmp (kernel_driver, "orinoco_cs"))
                ap_scan = "AP_SCAN 2";
        else if (is_adhoc || !supports_wpa)
                ap_scan = "AP_SCAN 2";
        else if (!nm_ap_get_broadcast (ap) && !strcmp (kernel_driver, 
"ndiswrapper"))
                ap_scan = "AP_SCAN 2";
        else
                ap_scan = "AP_SCAN 1";

I can now use the Ndiswrapper with Network Manager to connect to a
hidden wireless network.

In the original nm-device-802-11-wireless.c all non broadcast access
points had ap_scan = "AP_SCAN 2"

Looks like it may be driver specific in regards to what the correct
value for ap_scan should be on hidden networks.

-- 
can't connect to hidden network
https://bugs.launchpad.net/bugs/50214
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to