Improving Wireless Networking from the Learning and Security Perspectives