Re: [PATCH] wireless: wext: allocate space for NULL-termination for 32byte SSIDs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Holger Schurig
Date: Tuesday, December 15, 2009 - 3:30 am

> drivers/net/wireless/libertas$ grep lbs_deb_ * | grep ssid

All those lines are gone once my cfg80211 lands.

Do you know any way to make sparse moan about them?


BTW: the libertas firmware sometimes treat an SSID as a 
zero-terminated string. There are some firmware commands that 
accept just an u8[32] bytes for the SSID, but not an ssid_len, 
e.g. in the CMD_802_11_AD_HOC_START command.

You therefore can't connect to the otherwise legitimate SSID of 
TEST\0\0\0.

-- 
http://www.holgerschurig.de
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] wireless: wext: allocate space for NULL-termin ..., Holger Schurig, (Tue Dec 15, 3:30 am)