sm: fix connection header

When we added 2 bits for the connection attribute, we should have
deducted them from pad1. We didn't so the struct grew to 12 bytes.
sm: finish connection setup

Handle accept, reject. Generate events and return events.