It seems like on newer versions of mac (e.g. Monterey) fix with looping three times to get right MTU doesn't work. Also for some strange reason default TxMTU is set to 17 instead of 23. Now user can set MTU from the command line (-m ). If MTU is not set in the command line and after performing three loops MTU is still <23 we hardcode it to 185.
@ccollins476ad I know this is dirty hack, but we had no better idea to fix this. This way image upload over ble at least works (unless the boards MTU turns out to be less than 185).
It seems like on newer versions of mac (e.g. Monterey) fix with looping three times to get right MTU doesn't work. Also for some strange reason default TxMTU is set to 17 instead of 23. Now user can set MTU from the command line (-m). If MTU is not set in the command line and after performing three loops MTU is still <23 we hardcode it to 185.