Diffraction and selective adsorption in the corrugated hard wall model