[FIXED PATCH] fix for ESSID setting on FW AP cards

Pavel Roskin proski
Fri Nov 15 18:46:22 PST 2002


Hello!

Please disregard my previous patch.  It didn't pass testing.

Here's the new one.  The patch has been tested on cards both with and
without tertiary firmware.  The beacons were controlled by AirSnort on
another machine.  The ESSID in the beacons changes immediately in both
cases.  There are no error messages in the kernel log.

I repeat, the reason for the patch is because setting the Desired SSID
doesn't work with tertiary firmware at all, and this currently prevents
setting the Own SSID on such cards, at least from iwconfig.

This patch makes it possible to change ESSID for the cards with tertiary
firmware.

=================================
--- driver/modules/hostap_ioctl.c
+++ driver/modules/hostap_ioctl.c
@@ -768,7 +768,8 @@ static int prism2_ioctl_siwessid(struct 
 	memcpy(local->essid, ssid, IW_ESSID_MAX_SIZE);
 	local->essid[MAX_SSID_LEN] = '\0';
 
-	if (hostap_set_string(dev, HFA384X_RID_CNFDESIREDSSID, local->essid) ||
+	if ((!local->fw_ap &&
+	     hostap_set_string(dev, HFA384X_RID_CNFDESIREDSSID, local->essid)) ||
 	    hostap_set_string(dev, HFA384X_RID_CNFOWNSSID, local->essid) ||
 	    local->func->reset_port(dev))
 		return -EINVAL;
=================================

-- 
Regards,
Pavel Roskin





More information about the Hostap mailing list