Skip to contentSkip to conversation

acxsm: Add _{get,set}_encodeext and improve logging in _encode

PATCH Applied Carlos Martín 2 participants 2 messages Feb 7, 2006 – Feb 8, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acxsm: Add _{get,set}_encodeext and improve logging in _encode

Add _{get,set}_encodeext and improve logging in _encode

The code in _{get,set}_encode has been reordered a bit so we have better logging (function entry and exit) and _{get,set}_encodeext have been implemented as a wrapper for the ieee80211 stack functions.

ioctl.c +40 -3
index 041f165..1fdddd7 100644
@@ -1007,7 +1007,9 @@ acx_ioctl_set_encode(
 	union iwreq_data *wrqu,
 	char *extra)
 {
-	int result = ieee80211_wx_set_encode(netdev_priv(ndev), info, wrqu, extra);
+	int result;
+	FN_ENTER;
+	result = ieee80211_wx_set_encode(netdev_priv(ndev), info, wrqu, extra);
 	FN_EXIT1(result);
 	return result;
 }
@@ -1023,12 +1025,45 @@ acx_ioctl_get_encode(
 	union iwreq_data *wrqu,
 	char *extra)
 {
-	int result = ieee80211_wx_get_encode(netdev_priv(ndev), info, wrqu, extra);
+	int result;
+	FN_ENTER;
+	result = ieee80211_wx_get_encode(netdev_priv(ndev), info, wrqu, extra);
 	FN_EXIT1(result);
 	return result;
 }
 
-
+/***********************************************************************
+** acx_ioctl_set_encodeext
+*/
+static int
+acx_ioctl_set_encodeext(
+	struct net_device *ndev,
+	struct iw_request_info *info,
+	union iwreq_data *wrqu,
+	char *extra)
+{
+	int result;
+	FN_ENTER;
+	result = ieee80211_wx_set_encodeext(netdev_priv(ndev), info, wrqu, extra);
+	FN_EXIT1(result);
+	return result;
+}
+/***********************************************************************
+** acx_ioctl_get_encodeext
+*/
+static int
+acx_ioctl_get_encodeext(
+	struct net_device *ndev,
+	struct iw_request_info *info,
+	union iwreq_data *wrqu,
+	char *extra)
+{
+	int result;
+	FN_ENTER;
+	result = ieee80211_wx_get_encodeext(netdev_priv(ndev), info, wrqu, extra);
+	FN_EXIT1(result);
+	return result;
+}
 /***********************************************************************
 */
 static int
@@ -2502,6 +2537,8 @@ static const iw_handler acx_ioctl_handle
 	/* Encoding */
 	WX(SIOCSIWENCODE)	= acx_ioctl_set_encode,
 	WX(SIOCGIWENCODE)	= acx_ioctl_get_encode,
+	WX(SIOCSIWENCODEEXT)    = acx_ioctl_set_encodeext,
+	WX(SIOCGIWENCODEEXT)    = acx_ioctl_get_encodeext,
 	/* Power saving */
 	WX(SIOCSIWPOWER)	= acx_ioctl_set_power,
 	WX(SIOCGIWPOWER)	= acx_ioctl_get_power,
Signature · 10 lines
Carlos Martín Nieto    |   http://www.cmartin.tk

"Erdbeben? Sicherlich etwas, das mit Erdberen zu tun hat." -- me, paraphrased


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
#1 lore raw
Quoted 1 line · Carlos Martín

Content-Transfer-Encoding: quoted-printable

Patch was damaged. I think sending them as plain-text attachment would work better.

Quoted 5 lines

Add _{get,set}_encodeext and improve logging in _encode

The code in _{get,set}_encode has been reordered a bit so we have better logging (function entry and exit) and _{get,set}_encodeext have been implemented as a wrapper for the ieee80211 stack functions.

Applied, thanks!

--
vda

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642