I was told 2 months prior to surgery to quit. It's a rough ride. Try your best for the two weeks prior to surgery, being a smoker limits your lung capacity and your healing time. It is harder for a smoker to be revived after surgery, and the chance of pneumonia is much higher. You should be given a breathing monitor- a hand held plastic contraption used for asthmatics- you need to use it 10 times per hour post surgery. It will help.
I was banded 2/4/08, smoked for 10 years, quit (again) week before surgery- had one on the way to the hospital, breathing HURT after surgery