Search Linux Wireless

RE: [PATCH 1/1 v3] cfg80211: wext: fix cfg80211's SIOCSIWAP function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, that's exactly what I tried to do. From what I read from the man page of iwconfig, I thought iwconfig wlanx ap <mac> should be enough to connect to an ap without specifying the essid. Maybe I didn't understand the correct usage of iwconfig.

However, one of our test cases failed because of this:
Steps to Reproduce: 
1. set up the SSID name with Open/None in AP
2. reload the driver
3. interface up
4. send the command 'iwconfig wlan0 ap <MAC address of the AP>

Expected Results:
the association is established successfully.

Thanks,
Shanyu

-----Original Message-----
From: Johannes Berg [mailto:johannes@xxxxxxxxxxxxxxxx] 
Sent: Saturday, January 30, 2010 12:44 AM
To: Zhao, Shanyu
Cc: linux-wireless@xxxxxxxxxxxxxxx; linville@xxxxxxxxxxxxx
Subject: Re: [PATCH 1/1 v3] cfg80211: wext: fix cfg80211's SIOCSIWAP function

On Sat, 2010-01-30 at 09:35 +0100, Johannes Berg wrote:

> >  		wdev->conn->params.ssid_len = connect->ssid_len;
> > +		if (connect->ssid_len) {
> > +			memcpy(wdev->ssid, connect->ssid, connect->ssid_len);
> > +			wdev->conn->params.ssid = wdev->ssid;
> > +		}
> > +		else
> > +			wdev->conn->params.ssid = NULL;
> 
> I don't think I understand this. The wdev->conn->params are initialised
> from "connect", and now you're copying the data back again? That's not
> making sense to me.

Hmm, so setting the ssid to NULL would make it impossible to connect to
any network, no?

I don't think I understand what you want to achieve. Are you, by any
chance, trying to get it to connect to an AP without ever specifying an
SSID? That can't really be supported (nor ever was by mac80211).

johannes
��.n��������+%������w��{.n�����{���zW����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux