summaryrefslogtreecommitdiff
path: root/obexd
diff options
context:
space:
mode:
authorSathish Narasimman <sathish.narasimman@intel.com>2017-06-12 15:49:27 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-06-19 11:28:13 +0300
commita987ea04cface9d20191f36271c90e2f167bb3a2 (patch)
tree419858769c933d780b9e3aeb5c0a6d338fb4038b /obexd
parent825400c5836fd2a6aeafd3bf2aa2a88480d9d5a5 (diff)
downloadbluez-a987ea04cface9d20191f36271c90e2f167bb3a2.tar.gz
obexd/map: Do not send parent folder in dummy
In messages-dummy it is not necessary to add parent folder in the response to folder-lisintg. when tested with some carkit the present method is not working when navigating to different folders. so removing it.
Diffstat (limited to 'obexd')
-rw-r--r--obexd/plugins/messages-dummy.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/obexd/plugins/messages-dummy.c b/obexd/plugins/messages-dummy.c
index 765f08d42..33056e2f9 100644
--- a/obexd/plugins/messages-dummy.c
+++ b/obexd/plugins/messages-dummy.c
@@ -155,16 +155,6 @@ static void return_folder_listing(struct folder_listing_data *fld, GSList *list)
uint16_t num = 0;
uint16_t offs = 0;
- /* XXX: This isn't really documented for MAP. I need to take a look how
- * other implementations choose to deal with parent folder.
- */
- if (session->cwd[0] != 0 && fld->offset == 0) {
- num++;
- fld->callback(session, -EAGAIN, 0, "..", fld->user_data);
- } else {
- offs++;
- }
-
for (cur = list; offs < fld->offset; offs++) {
cur = cur->next;
if (cur == NULL)