mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Fix switching Wi-Fi modes depending on bands in WiFiForm
This commit is contained in:
		
				
					committed by
					
						
						Aleksandr Gumroian
					
				
			
			
				
	
			
			
			
						parent
						
							d5bb99570c
						
					
				
				
					commit
					9dd6bbca90
				
			@@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
 | 
					 * Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * This is free software, licensed under the GNU General Public License v3.
 | 
					 * This is free software, licensed under the GNU General Public License v3.
 | 
				
			||||||
 * See /LICENSE for more information.
 | 
					 * See /LICENSE for more information.
 | 
				
			||||||
@@ -163,6 +163,10 @@ function DeviceForm({
 | 
				
			|||||||
                                [deviceIndex]: {
 | 
					                                [deviceIndex]: {
 | 
				
			||||||
                                    hwmode: { $set: value },
 | 
					                                    hwmode: { $set: value },
 | 
				
			||||||
                                    channel: { $set: "0" },
 | 
					                                    channel: { $set: "0" },
 | 
				
			||||||
 | 
					                                    htmode: {
 | 
				
			||||||
 | 
					                                        $set:
 | 
				
			||||||
 | 
					                                            value === "11a" ? "VHT80" : "HT20",
 | 
				
			||||||
 | 
					                                    },
 | 
				
			||||||
                                },
 | 
					                                },
 | 
				
			||||||
                            },
 | 
					                            },
 | 
				
			||||||
                        }))}
 | 
					                        }))}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user