Line 110:
Line 110:
WD_GetState always returns a value less than 7 and greater than 1. WD_GetState should always return state 3, any other states are illegal states. Frames can't be sent in illegal states.
WD_GetState always returns a value less than 7 and greater than 1. WD_GetState should always return state 3, any other states are illegal states. Frames can't be sent in illegal states.
WD_GetStatus returns 0 or 1, depending on different flags for each state. For state 3, this returns 0 when wireless is disabled, 1 when enabled.
WD_GetStatus returns 0 or 1, depending on different flags for each state. For state 3, this returns 0 when wireless is disabled, 1 when enabled.
−
WD_SetLinkState(1) disables wireless, while WD_SetLinkState(0) enables wireless? WD_SetLinkState input is an a pointer to a u32.
Configuration and info structs:
Configuration and info structs: