fix(#395): correct BLE writable floor in effectiveMaxFrameSize (Gemini review)
Gemini adversarial review flagged the getter's clamp: the floor used the ATT_MTU minimum (23) where it should use the writable minimum (20 = 23-3), overstating the cap by 3 for tiny MTUs; and an unknown MTU defaulted to maxFrameSize (172), the wrong direction for a safety cap. Floor at 20 and default an unknown MTU conservatively. No behaviour change on radios that grant MTU >= 175 (they hit the maxFrameSize short-circuit). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>pull/448/head
parent
ee32e2e38e
commit
f4823cadb2
Loading…
Reference in new issue