Initial physical takes place at MEPS before you ship to BMT. A follow-up physical takes place at prep.
If you don't meet the standard, a waiver can be submitted at either one of those physicals. The waiver is submitted by the doctor who performed your physical. The waiver authority is the lead Air Education and Training Command flight surgeon.