summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHemant Ramdasi <hemant.ramdasi@stericsson.com>2011-09-16 18:16:51 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 16:12:39 +0200
commitf30144f4af29d69ac00ddd7daec321949030803e (patch)
tree09cfd3e4d7bb755d6e2a751dcef17287291c466e /net
parent23b4000febdb3bbcc1ccb4f120473ce2776df9e3 (diff)
Phonet: Insert correct dest addr and port for TCP/IP data on U8500
Inserts correct dest addr and port for the TCP/IP data on ST-Ericsson U8500. This is required due to lack of Pipe controller implementation in ST-Ericsson U8500 Modem Signed-off-by: Hemant Ramdasi <hemant.ramdasi@stericsson.com> Change-Id: I3c199cc94da3b81de3ab97f22b6e7087b2cd0071 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31273
Diffstat (limited to 'net')
-rw-r--r--net/phonet/pep.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/net/phonet/pep.c b/net/phonet/pep.c
index f17fd841f94..84759258d82 100644
--- a/net/phonet/pep.c
+++ b/net/phonet/pep.c
@@ -50,6 +50,15 @@
#define CREDITS_MAX 10
#define CREDITS_THR 7
+#ifdef CONFIG_ARCH_U8500
+static struct sockaddr_pn pipe_srv = {
+ .spn_family = AF_PHONET,
+ .spn_resource = 0xD9, /* pipe service */
+ .spn_dev = 0x60, /*modem dev-id*/
+ .spn_obj = 0x30, /*modem pep*/
+};
+#endif
+
#define pep_sb_size(s) (((s) + 5) & ~3) /* 2-bytes head, 32-bits aligned */
/* Get the next TLV sub-block. */
@@ -1028,8 +1037,12 @@ static int pipe_skb_send(struct sock *sk, struct sk_buff *skb)
} else
ph->message_id = PNS_PIPE_DATA;
ph->pipe_handle = pn->pipe_handle;
- err = pn_skb_send(sk, skb, NULL);
+#ifdef CONFIG_ARCH_U8500
+ err = pn_skb_send(sk, skb, &pipe_srv);
+#else
+ err = pn_skb_send(sk, skb, NULL);
+#endif
if (err && pn_flow_safe(pn->tx_fc))
atomic_inc(&pn->tx_credits);
return err;