]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Phonet: kill the ST-Ericsson pipe controller Kconfig
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 8 Mar 2011 22:44:13 +0000 (22:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2011 19:59:33 +0000 (11:59 -0800)
This is now a run-time choice so that a single kernel can support both
old and new generation ISI modems. Support for manually enabling the
pipe flow is removed as it did not work properly, does not fit well
with the socket API, and I am not aware of any use at the moment.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/phonet.txt
include/linux/phonet.h
net/phonet/Kconfig
net/phonet/pep.c

index 3d127791cb062e51a371ef064254e1546c6111bb..81003581f47a90ef2dd581fee3924885cd80802b 100644 (file)
@@ -205,19 +205,6 @@ The pipe protocol provides two socket options at the SOL_PNPIPE level:
     socket descriptors that are already connected or being connected.
 
 
-Phonet Pipe-controller Implementation
--------------------------------------
-
-Phonet Pipe-controller is enabled by selecting the CONFIG_PHONET_PIPECTRLR
-Kconfig option.
-
-The implementation adds socket options at SOL_PNPIPE level:
-
-  PNPIPE_ENABLE accepts one integer value (int). If set to zero, the pipe
-    is disabled. If the value is non-zero, the pipe is enabled. If the pipe
-    is not (yet) connected, ENOTCONN is error is returned.
-
-
 Authors
 -------
 
index 32a0965da95301211e04b32ba2f6defb21f86960..6fb13841db45e7bddcce8618f08ea644ef6c6edb 100644 (file)
@@ -37,8 +37,6 @@
 #define PNPIPE_ENCAP           1
 #define PNPIPE_IFINDEX         2
 #define PNPIPE_HANDLE          3
-#define PNPIPE_ENABLE           4
-/* unused slot */
 
 #define PNADDR_ANY             0
 #define PNADDR_BROADCAST       0xFC
index 0d9b8a220a7871a5bed180567a50036a1520d920..6ec7d55b1769933f399af5f4673b95c2de83150c 100644 (file)
@@ -14,15 +14,3 @@ config PHONET
 
          To compile this driver as a module, choose M here: the module
          will be called phonet. If unsure, say N.
-
-config PHONET_PIPECTRLR
-       bool "Phonet Pipe Controller (EXPERIMENTAL)"
-       depends on PHONET && EXPERIMENTAL
-       default N
-       help
-         The Pipe Controller implementation in Phonet stack to support Pipe
-         data with Nokia Slim modems like WG2.5 used on ST-Ericsson U8500
-         platform.
-
-         This option is incompatible with older Nokia modems.
-         Say N here unless you really know what you are doing.
index 671effb4ea15bd0c31ce94059227b832f8217a2b..68e635f11de8958f08f46909fab96bbc0ea4d004 100644 (file)
@@ -167,15 +167,6 @@ static int pipe_handler_send_created_ind(struct sock *sk)
                                data, 4, GFP_ATOMIC);
 }
 
-#ifdef CONFIG_PHONET_PIPECTRLR
-static int pipe_handler_enable_pipe(struct sock *sk, int enable)
-{
-       u8 id = enable ? PNS_PEP_ENABLE_REQ : PNS_PEP_DISABLE_REQ;
-
-       return pipe_handler_request(sk, id, PAD, NULL, 0);
-}
-#endif
-
 static int pep_accept_conn(struct sock *sk, struct sk_buff *skb)
 {
        static const u8 data[20] = {
@@ -968,16 +959,6 @@ static int pep_setsockopt(struct sock *sk, int level, int optname,
                }
                goto out_norel;
 
-#ifdef CONFIG_PHONET_PIPECTRLR
-       case PNPIPE_ENABLE:
-               if ((1 << sk->sk_state) & ~(TCPF_SYN_RECV|TCPF_ESTABLISHED)) {
-                       err = -ENOTCONN;
-                       break;
-               }
-               err = pipe_handler_enable_pipe(sk, val);
-               break;
-#endif
-
        default:
                err = -ENOPROTOOPT;
        }
@@ -1013,12 +994,6 @@ static int pep_getsockopt(struct sock *sk, int level, int optname,
                        return -EINVAL;
                break;
 
-#ifdef CONFIG_PHONET_PIPECTRLR
-       case PNPIPE_ENABLE:
-               val = sk->sk_state == TCP_ESTABLISHED;
-               break;
-#endif
-
        default:
                return -ENOPROTOOPT;
        }