[Galaxy Note5 Q&A, Help & Troubleshooting] @Class:
Hi,

For some reason my Note5 won't connect to some types N networks. 2.4 Ghz or 5 Ghz doesn't seem to make a difference nor open or encryption, simply won't connect.

The following was in logcat. Not sure what status_code=18, a google around didn't reveal anything. Tried various kernels without success. Galaxy S6, Macbook connect just fine. You can force your router into N only mode to test.

10-10 21:49:45.198: D/WifiSettings(9026): connectNetwork nid:0
10-10 21:49:45.198: W/ContextImpl(3708): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1771 com.android.server.wifi.WifiStateMachine.insertLog:15974 com.android.server.wifi.WifiStateMachine.access$3900:235 com.android.server.wifi.WifiStateMachine$DefaultState.processMessage:7513 com.android.internal.util.StateMachine$SmHandler.processMsg:967
10-10 21:49:45.208: E/WiFiServiceImpl(3708): CONNECT nid=0 uid=1000
10-10 21:49:45.208: D/WifiSettings(9026): [updateAccessPoints] wifiState : 3
10-10 21:49:45.208: V/BroadcastQueue(3708): [background] Process cur broadcast BroadcastRecord{287a31dc u0 com.samsung.android.providers.context.log.action.USE_APP_FEATURE_SURVEY} DELIVERED for app ProcessRecord{2ba4954d 5745:com.samsung.android.providers.context/u0a2}
10-10 21:49:45.208: E/WifiStateMachine(3708): CONNECT_NETWORK id=0 config="Gourmet Fast" cnid=0 supstate=DisconnectedState my state DisconnectedState uid = 1000
10-10 21:49:45.208: E/WifiConfigStore(3708): saveWifiConfigBSSID Setting BSSID for "Gourmet Fast"NONE to any
10-10 21:49:45.218: E/WifiConfigStore(3708): saveWifiConfigBSSID Setting BSSID for "Gourmet Fast"NONE to any
10-10 21:49:45.218: E/WifiAutoJoinController(3708): updateConfigurationHistory found 0 networks
10-10 21:49:45.218: E/WifiConfigStore(3708): setLastSelectedConfiguration 0
10-10 21:49:45.218: E/WifiConfigStore(3708): will read network variables netId=0
10-10 21:49:45.228: I/WifiConfigStore(3708): "Gourmet Fast" is a verified password AP: false
10-10 21:49:45.228: E/WifiConfigStore(3708): Not a HS20
10-10 21:49:45.238: I/wpa_supplicant(10005): CTRL-EVENT-SSID-REENABLED id=0 ssid="476F75726D65742046617374"
10-10 21:49:45.238: I/wpa_supplicant(10005): Trying to associate with E0.11.34 (SSID='476F75726D65742046617374' freq=5180 MHz)
10-10 21:49:45.238: I/wpa_supplicant(10005): wlan0: State: DISCONNECTED -> ASSOCIATING
10-10 21:49:45.238: I/wpa_supplicant(10005): CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID=00.00.00 SSID=476F75726D65742046617374
10-10 21:49:45.238: D/SecContentProvider(3708): insert(), uri = 2
10-10 21:49:45.248: W/MDM(6261): DataUsageCollector - planConfig == null. getIsWifiConnected: false. getIsMobileConnected: false
10-10 21:49:45.288: E/WifiStateMachine(3708): ConnectModeState SSID state=re-enabled nid=0 [id=0 ssid="Gourmet Fast"]
10-10 21:49:45.288: E/WifiConfigStore(3708): SSID re-enabled for "Gourmet Fast"NONE had autoJoinStatus=0 self added false ephemeral false
10-10 21:49:45.288: D/Settings.AccessPoint(9026): loadConfig: config.allowedKeyManagement: {0}
10-10 21:49:45.288: D/SecContentProvider2(3708): query(), uri = 20 selection = getPromptCredentialsEnabled
10-10 21:49:45.298: D/WifiSettings(9026): force scroll up
10-10 21:49:45.298: W/MDM(6261): DataUsageCollector - planConfig == null. getIsWifiConnected: false. getIsMobileConnected: false
10-10 21:49:45.308: D/libEGL(3023): eglTerminate EGLDisplay = 0x7f91604648
10-10 21:49:45.308: D/libEGL(3023): eglTerminate EGLDisplay = 0x7f91604648
10-10 21:49:45.308: D/MultiWindowConverter(3708): dismissGuide() : Before attaching the guide view, mForceDismissGuide : false
10-10 21:49:45.318: D/StatusBarManagerService(3708): manageDisableList userId=0 what=0x0 pkg=Window{1cb75d74 u0 d0 com.android.settings/com.android.settings.SubSettings}
10-10 21:49:45.318: D/InputDispatcher(3708): Focus left window: 9026
10-10 21:49:45.318: D/InputDispatcher(3708): Focus entered window: 9026
10-10 21:49:45.318: D/PointerIcon(3708): setMouseIconStyle1 pointerType: 1001 iconType:101 flag:0 pid:3708 uid:1000
10-10 21:49:45.318: D/PointerIcon(3708): setMouseCustomIcon IconType is same.101
10-10 21:49:45.318: D/PointerIcon(3708): setHoveringSpenIconStyle1 pointerType: 10001 iconType:1 flag:0 pid:3708 uid:1000
10-10 21:49:45.318: D/PointerIcon(3708): setHoveringSpenCustomIcon IconType is same.1
10-10 21:49:45.318: D/WifiSettings(9026): >>> SUPPLICANT_STATE_CHANGED_ACTION SupplicantState: ASSOCIATING
10-10 21:49:45.318: D/WifiSettings(9026): >>> SUPPLICANT_STATE_CHANGED_ACTION state:ASSOCIATING
10-10 21:49:45.328: D/InputMethodManagerService(3708): windowGainedFocus mCurrentFocusedUserId - 0 and mSecureKeypadEnabled-false
10-10 21:49:45.328: E/ViewRootImpl(9026): sendUserActionEvent() mView == null
10-10 21:49:45.328: I/wpa_supplicant(10005): CTRL-EVENT-ASSOC-REJECT bssid=E0.11.34 status_code=18
10-10 21:49:45.328: I/wpa_supplicant(10005): CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="476F75726D65742046617374" auth_failures=1 duration=10
10-10 21:49:45.328: I/wpa_supplicant(10005): wlan0: Setting scan request: 10 sec 0 usec
10-10 21:49:45.328: I/wpa_supplicant(10005): wlan0: State: ASSOCIATING -> DISCONNECTED
10-10 21:49:45.328: I/wpa_supplicant(10005): CTRL-EVENT-STATE-CHANGE id=0 state=0 BSSID=00.00.00 SSID=476F75726D65742046617374
10-10 21:49:45.338: W/ContextImpl(3708): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1771 com.android.server.wifi.WifiStateMachine.insertLog:15974 com.android.server.wifi.WifiStateMachine.access$3900:235 com.android.server.wifi.WifiStateMachine$DefaultState.processMessage:7513 com.android.internal.util.StateMachine$SmHandler.processMsg:967
10-10 21:49:45.338: E/WifiStateMachine(3708): ConnectModeState SSID state=temp-disabled nid=0 [id=0 ssid="Gourmet Fast" auth_failures=1 duration=10]
10-10 21:49:45.338: E/WifiConfigStore(3708): SSID temp disabled for "Gourmet Fast"NONE had autoJoinStatus=0 self added false ephemeral false
10-10 21:49:45.338: E/WifiConfigStore(3708): message=id=0 ssid="Gourmet Fast" auth_failures=1 duration=10
10-10 21:49:45.338: D/SecContentProvider2(3708): query(), uri = 20 selection = getPromptCredentialsEnabled
10-10 21:49:45.348: V/BroadcastQueue(3708): [background] Process cur broadcast BroadcastRecord{3530e1ba u0 com.samsung.android.providers.context.log.action.USE_APP_FEATURE_SURVEY} DELIVERED for app ProcessRecord{2ba4954d 5745:com.samsung.android.providers.context/u0a2}
10-10 21:49:45.398: D/WifiSettings(9026): >>> SUPPLICANT_STATE_CHANGED_ACTION SupplicantState: DISCONNECTED
10-10 21:49:45.398: D/WifiSettings(9026): >>> SUPPLICANT_STATE_CHANGED_ACTION state:DISCONNECTED
10-10 21:49:45.498: I/SurfaceFlinger(3023): id=27 Removed Hourmet Fas (6/8)
10-10 21:49:45.498: I/SurfaceFlinger(3023): id=27 Removed Hourmet Fas (-2/8)
10-10 21:49:45.518: D/libEGL(3023): eglTerminate EGLDisplay = 0x7fe6311ff8
10-10 21:49:48.258: D/WifiService(3708): startScan by pid=5155, uid=10015
10-10 21:49:48.268: I/wpa_supplicant(10005): P2P: Current p2p state = IDLE
10-10 21:49:48.268: I/wpa_supplicant(10005): wlan0: State: DISCONNECTED -> SCANNING
10-10 21:49:48.268: I/wpa_supplicant(10005): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00.00.00 SSID=
10-10 21:49:48.308: I/wpa_supplicant(10005): Scan requested (ret=0) - scan timeout 30 seconds
10-10 21:49:48.308: D/SecContentProvider2(3708): query(), uri = 20 selection = getPromptCredentialsEnabled
10-10 21:49:48.318: D/WifiSettings(9026): >>> SUPPLICANT_STATE_CHANGED_ACTION SupplicantState: SCANNING