summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Ramdasi <hemant.ramdasi@stericsson.com>2011-09-16 18:16:51 +0530
committerMathieu J. Poirier <mathieu.poirier@linaro.org>2011-11-10 11:12:18 -0700
commitd627724af2455ddd0c8e0c9e9014beb39c5fa99e (patch)
tree0b22df6a1c8a0c1bbce6753389d82d91cdb799df
parent7f27ac3bbfc8d82e9456281764dbbf375a1fa5b1 (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
-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;