Traffic Pattern Modeling for Cognitive Wi-Fi Networks