As the above link says, code 31 usually indicates that you have to update the relevant driver. You can either click Update Driver on the Driver tab of wireless card in Device Manager or remove the Wireless Nic driver completely and reinstall it.
BTW, you can visit the following similar issues before going further.
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.