Two pair-wise code assignment schemes are proposed for CDMA based MAC protocol. A co-channel secondary interference is detected in the existing code assignment schemes. The proposed schemes deals with the minimum code requirement, spatial reuse of codes and avoidance of secondary interference. Improves the network performance.