~ubuntu-branches/ubuntu/oneiric/bluez/oneiric-proposed

« back to all changes in this revision

Viewing changes to attrib/gattrib.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-05-17 15:06:36 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517150636-pezgm7pubhv251y6
Tags: 4.93-0ubuntu1
* New upstream release. (LP: #784218)
* debian/control: drop Build-Depends on libdbus-1-dev, pulled in by
  libdbus-glib-1-dev.
* debian/control: bump Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
409
409
        if (bt_io_get(attrib->io, BT_IO_L2CAP, NULL,
410
410
                        BT_IO_OPT_OMTU, &omtu,
411
411
                        BT_IO_OPT_INVALID)) {
412
 
                if (omtu > ATT_MAX_MTU)
 
412
                if (omtu == 0 || omtu > ATT_MAX_MTU)
413
413
                        omtu = ATT_MAX_MTU;
414
414
        } else
415
415
                omtu = ATT_DEFAULT_LE_MTU;