Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a941ecb authored by Holger Schurig's avatar Holger Schurig Committed by John W. Linville
Browse files

wireless: fix two bad print_ssid conversions



This patch fixes two current compilation problems. They showed up
with CONFIG_IEEE80211_DEBUG defined.

Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8469cdef
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -399,6 +399,10 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee,


	/* If a new key was provided, set it up */
	/* If a new key was provided, set it up */
	if (erq->length > 0) {
	if (erq->length > 0) {
#ifdef CONFIG_IEEE80211_DEBUG
		DECLARE_SSID_BUF(ssid);
#endif

		len = erq->length <= 5 ? 5 : 13;
		len = erq->length <= 5 ? 5 : 13;
		memcpy(sec.keys[key], keybuf, erq->length);
		memcpy(sec.keys[key], keybuf, erq->length);
		if (len > erq->length)
		if (len > erq->length)