It has been suggested in previous studies that there could be a link between impaired lung function and a negative effect on the thinking processes, but it is not clear what the mechanism for that might be.
BBC: NEWS | Health | Smoking 'is bad for your brain'