netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Carlos Martín" <carlos@cmartin.tk>
To: acx100-devel@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Subject: [PATCH] acxsm: Add _{get,set}_encodeext and improve logging in _encode
Date: Tue, 7 Feb 2006 21:04:38 +0100	[thread overview]
Message-ID: <200602072104.39208.carlos@cmartin.tk> (raw)

    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.

diff --git a/ioctl.c b/ioctl.c
index 041f165..1fdddd7 100644
--- a/ioctl.c
+++ b/ioctl.c
@@ -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,

-- 
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&kid\x103432&bid#0486&dat\x121642

             reply	other threads:[~2006-02-07 20:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 20:04 Carlos Martín [this message]
2006-02-08  9:47 ` [PATCH] acxsm: Add _{get,set}_encodeext and improve logging in _encode Denis Vlasenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602072104.39208.carlos@cmartin.tk \
    --to=carlos@cmartin.tk \
    --cc=acx100-devel@lists.sourceforge.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).