diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2011-04-07 14:31:48 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-09 10:46:06 -0700 |
commit | 4b7da0b91d6b7704fe94541c7a39a253d0d661a8 (patch) | |
tree | e645d5174052259f75d10b0cc85da23bfa35b6c4 /attrib | |
parent | 827ba0ce19d157757e115f815e4ffef303153ec7 (diff) | |
download | bluez-4b7da0b91d6b7704fe94541c7a39a253d0d661a8.tar.gz |
Add workaround to skip wrong OMTU for basic rate
This patch is required until the MTU kernel patch is integrated. Without
it the kernel returns zero for basic rate OMTU.
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gattrib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gattrib.c b/attrib/gattrib.c index 290cd967..8c15e52a 100644 --- a/attrib/gattrib.c +++ b/attrib/gattrib.c @@ -409,7 +409,7 @@ GAttrib *g_attrib_new(GIOChannel *io) if (bt_io_get(attrib->io, BT_IO_L2CAP, NULL, BT_IO_OPT_OMTU, &omtu, BT_IO_OPT_INVALID)) { - if (omtu > ATT_MAX_MTU) + if (omtu == 0 || omtu > ATT_MAX_MTU) omtu = ATT_MAX_MTU; } else omtu = ATT_DEFAULT_LE_MTU; |