CN112688811A - Wireless local area network management method, device, equipment and storage medium - Google Patents

Wireless local area network management method, device, equipment and storage medium Download PDF

Info

Publication number
CN112688811A
CN112688811A CN202011529967.0A CN202011529967A CN112688811A CN 112688811 A CN112688811 A CN 112688811A CN 202011529967 A CN202011529967 A CN 202011529967A CN 112688811 A CN112688811 A CN 112688811A
Authority
CN
China
Prior art keywords
configuration
service set
set identifier
local area
wireless local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011529967.0A
Other languages
Chinese (zh)
Other versions
CN112688811B (en
Inventor
刘会潮
于星杰
祖静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202011529967.0A priority Critical patent/CN112688811B/en
Publication of CN112688811A publication Critical patent/CN112688811A/en
Application granted granted Critical
Publication of CN112688811B publication Critical patent/CN112688811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the disclosure relates to a wireless local area network management method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a wireless local area network configuration instruction, wherein the wireless local area network configuration instruction is generated and sent by a configuration management module according to the configuration operation of a user; analyzing the wireless local area network configuration instruction and acquiring a service set identifier configuration parameter carried in the wireless local area network configuration instruction; updating the wireless local area network configuration file according to the type of the wireless local area network configuration instruction and the service set identification configuration parameter to obtain an updated configuration file; and updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect. The embodiment of the disclosure realizes dynamic management of the wireless local area network on the basis of not closing the wireless local area network management process and restarting the process, saves the configuration time of the service set identifier, and improves the internet experience of the user.

Description

Wireless local area network management method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing a wireless local area network.
Background
Currently, under a Linux system, a Hostapd process is generally used to manage configuration of a wireless local area network Access Point (WiFi Access Point, WiFi AP) mode. Hostapd is a user-mode daemon process for AP and authentication server, which implements access management related to local area network/metropolitan area network standard IEEE 802.11, and serves as a backend component for WiFi control identity verification. With the advent of diverse network application scenarios, multiple Service Set Identifiers (SSIDs) are sometimes required to provide different wireless local area networks to differentiate different services.
However, in the existing solution, if the wlan needs to be managed, for example, SSID is added, modified or deleted, the Hostapd process needs to be closed first, then the wlan profile is modified, and then the Hostapd process is restarted to validate the configuration. The Hostapd starting time is long, so that the existing scheme is low in implementation efficiency; moreover, the existing scheme may affect other SSIDs that do not need to be updated, for example, after the Hostapd process is closed, the wireless local area networks corresponding to these SSIDs are unavailable, resulting in poor user experience.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide a wireless local area network management method, apparatus, device and storage medium.
In a first aspect, an embodiment of the present disclosure provides a method for managing a wireless local area network, including:
receiving a wireless local area network configuration instruction, wherein the wireless local area network configuration instruction is generated and sent by a configuration management module according to the configuration operation of a user;
analyzing the wireless local area network configuration instruction and acquiring a service set identifier configuration parameter carried in the wireless local area network configuration instruction;
updating the wireless local area network configuration file according to the type of the wireless local area network configuration instruction and the service set identifier configuration parameter to obtain an updated configuration file;
and updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect.
In a second aspect, an embodiment of the present disclosure further provides a device for managing a wireless local area network, including:
the wireless local area network configuration system comprises a configuration instruction receiving module, a configuration management module and a configuration instruction transmitting module, wherein the configuration instruction receiving module is used for receiving a wireless local area network configuration instruction, and the wireless local area network configuration instruction is generated and transmitted by the configuration management module according to the configuration operation of a user;
a configuration parameter obtaining module, configured to analyze the wlan configuration instruction and obtain a service set identifier configuration parameter carried in the wlan configuration instruction;
a configuration file updating module, configured to update the wlan configuration file according to the type of the wlan configuration instruction and the service set identifier configuration parameter, so as to obtain an updated configuration file;
and the configuration validation module is used for updating the service set identifier configuration data in the memory according to the update configuration file and executing validation operation to enable the configuration operation of the user to be validated.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including a memory and a processor, where: the memory stores a computer program, and when the computer program is executed by the processor, the electronic device is enabled to implement any wireless local area network management method provided by the embodiment of the disclosure.
In a fourth aspect, the disclosed embodiment also provides a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a computing device, the computing device is enabled to implement any of the wireless local area network management methods provided by the disclosed embodiments.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages:
in the embodiment of the disclosure, a user triggers configuration operation in a configuration management module according to the management requirement of a wireless local area network, the configuration management module generates a wireless local area network configuration instruction according to the configuration operation of the user, and transmits a service set identifier configuration parameter to a wireless local area network management process (such as a Hostapd process) in a form of a command parameter; the wireless local area network management process receives the wireless local area network configuration instruction, analyzes the instruction and executes the instruction to enable the configuration operation of the user to take effect, so that the wireless local area network is dynamically managed on the basis that the wireless local area network management process does not need to be closed and restarted, for example, Service Set Identifiers (SSIDs) are dynamically added, modified or deleted, the management efficiency of the wireless local area network is improved, and the configuration time of the service set identifiers is saved; in addition, because the management process of the wireless local area network does not need to be closed, the execution of the scheme can not influence the wireless local area network corresponding to the service set identifier which does not need to be updated, the wireless local area networks can keep usability in the management process of other wireless local area networks, and the internet experience of a user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a wlan management method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a wlan management architecture according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a wlan management device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a flowchart of a wlan management method provided in an embodiment of the present disclosure, which may be applied to how to dynamically manage a wlan when a plurality of wlans are required to provide network services. The method may be performed by a wireless local area network management apparatus, which may be implemented in software and/or hardware, and may be integrated on any electronic device having computing capabilities. Moreover, the apparatus may be a wlan management application (e.g., a Hostapd application for managing a wlan on an electronic device), or may be a functional module in the wlan management application, and the embodiment of the present disclosure is not limited in particular. After the electronic device is started, the wireless local area network management application can be continuously in a background running state so as to dynamically manage the wireless local area network on the electronic device.
As shown in fig. 1, a method for managing a wireless local area network provided by an embodiment of the present disclosure may include:
s101, receiving a wireless local area network configuration instruction, wherein the wireless local area network configuration instruction is generated and sent by a configuration management module according to configuration operation of a user.
In the embodiment of the present disclosure, the configuration management module may be implemented in a form of a visual interface independent from the wlan management application, so that a user can perform configuration operation of the wlan (or configuration operation called service set identifier SSID) conveniently. The user triggers configuration operation (for example, operation about adding, modifying or deleting SSID) in the configuration management module according to the management requirement of the wireless local area network, the configuration management module generates a wireless local area network configuration instruction according to the configuration operation of the user, and transmits the service set identification configuration parameter to the wireless local area network management application (or process) in the form of command parameter. The wireless local area network configuration instructions may include at least one of service set identification addition instructions, service set identification modification instructions, and service set identification deletion instructions.
An available communication protocol, such as a local socket protocol, is preset between the configuration management module and the wireless local area network management application, and data transmission is performed according to the communication protocol. Therefore, the wireless local area network configuration instruction is obtained by assembling the service set identifier configuration parameters determined according to the configuration operation of the user by the configuration management module according to the preset communication protocol.
S102, analyzing the wireless local area network configuration instruction and obtaining the service set identification configuration parameters carried in the wireless local area network configuration instruction.
Specifically, after receiving the wlan configuration instruction, the wlan management application parses the instruction into a specific data format corresponding to a preset communication protocol, thereby obtaining a service set identifier configuration parameter carried in the instruction. The service set identification configuration parameters may be determined according to requirements, and the embodiments of the present disclosure are not particularly limited, and may include, but are not limited to: the name of the service set identifier, the network encryption mode and the password, the maximum number of connectable clients, whether the client is hidden, whether a plurality of connected clients are isolated from each other, and the like.
S103, updating the wireless local area network configuration file according to the type of the wireless local area network configuration instruction and the service set identification configuration parameter to obtain an updated configuration file.
The type of wlan configuration instruction is related to the configuration operation of the user, such as adding, modifying or deleting SSID, etc. For each instruction type, the wlan management application may add, modify, or delete SSID-related configuration parameters in the wlan profile, resulting in an updated profile. In the installation process of the wireless local area network management application, the storage path of the wireless local area network configuration file is already appointed, so that the wireless local area network management application can search the wireless local area network configuration file according to the storage path.
And S104, updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect.
The wlan management application may read the update configuration file into the memory, update the existing service set identifier configuration data in the memory, and then perform an operation to take effect (i.e., an operation for changing the configuration operation of the user into an effective state), so that the configuration operation of the user takes effect, thereby implementing dynamic management of the wlan. The validation operation may be different according to different types of the wlan configuration instruction, for example, the validation operation may include reloading (Reload) configuration parameters of the service set identifier to be added for the service set identifier addition instruction; for the service set identifier modification instruction, the validation operation may include reloading the updated configuration parameters of the service set identifier to be modified, and the like; for the service set identifier deletion instruction, the validation operation may include reloading the configuration parameters to be deleted by the service set identifier deletion, and the like, where the reloaded configuration parameters are null data.
Further, the method provided by the embodiment of the present disclosure further includes: and sending preset feedback information to the configuration management module so that the configuration management module prompts the success or failure of the configuration operation of the user according to the preset feedback information. Two preset feedback information can be preset and respectively correspond to the conditions of success or failure of configuration operation of the user, so that the configuration management module can provide prompt information for the user, and the interaction friendliness in the wireless local area network management process is improved.
Illustratively, the preset feedback information comprises a preset return value, the wireless local area network management application receives the wireless local area network configuration instruction, analyzes and executes the wireless local area network configuration instruction, and returns the preset return value to the configuration management module if the wireless local area network management application successfully executes the wireless local area network configuration instruction; and if the configuration management module receives the preset return value and confirms that the preset return value is an error return value, the configuration management module prompts the user that the configuration operation is successful, the configuration process can be ended and quitted, and if the configuration management module receives the preset return value and confirms that the preset return value is an error return value, the configuration management module prompts the user that the configuration operation is failed, and the user can continue to execute the configuration operation until the configuration operation is successful.
In the embodiment of the disclosure, a user triggers configuration operation in a configuration management module according to the management requirement of a wireless local area network, the configuration management module generates a wireless local area network configuration instruction according to the configuration operation of the user, and transmits a service set identifier configuration parameter to a wireless local area network management process (such as a Hostapd process) in a form of a command parameter; the wireless local area network management process receives the wireless local area network configuration instruction, analyzes the instruction and executes the instruction to enable the configuration operation of the user to take effect, so that the wireless local area network is dynamically managed on the basis that the wireless local area network management process does not need to be closed and restarted, for example, service set identification is dynamically added, modified or deleted, the management efficiency of the wireless local area network is improved, and the configuration time of the service set identification is saved; in addition, because the management process of the wireless local area network does not need to be closed, the execution of the scheme can not influence the wireless local area network corresponding to the service set identifier which does not need to be updated, the wireless local area networks can keep usability in the management process of other wireless local area networks, and the internet experience of a user is improved.
Fig. 2 is a schematic diagram of a wlan management architecture provided in an embodiment of the present disclosure, which is used to exemplarily explain the embodiment of the present disclosure and should not be understood as a specific limitation to the embodiment of the present disclosure, and fig. 2 specifically illustrates an interaction between a configuration management module and a wlan management process by taking a Hostapd process as an example. The wireless local area network management process or application provides a data interface outwards to support interaction with the configuration management module.
With reference to fig. 2, on the basis of the foregoing technical solution, optionally, if the wireless local area network configuration instruction includes a service set identifier adding instruction, the service set identifier configuration parameter includes a name of a service set identifier to be added and a network attribute, where the network attribute may include but is not limited to at least one of a network encryption mode and a password, a maximum number of connectable clients, whether to be hidden from a client, whether to isolate a plurality of connected clients, and the like.
Updating the configuration file of the wireless local area network according to the type of the configuration instruction of the wireless local area network and the configuration parameters of the service set identifier to obtain an updated configuration file, wherein the updating comprises the following steps:
adding the service set identification configuration parameters into a wireless local area network configuration file to obtain an updated configuration file;
correspondingly, updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect, including:
reading the update configuration file into a memory, and updating service set identification configuration data in the memory;
according to the name of the service set identifier to be added, searching the configuration parameter of the service set identifier to be added from the service set identifier configuration data updated in the memory, and initializing the searched configuration parameter;
calling an interface function for adding a service set identifier, and registering a virtual interface for the service set identifier to be added; the virtual interface is used for transmitting data under a wireless local area network corresponding to the service set identifier to be added;
and reloading the initialized configuration parameters to enable the configuration operation of the user to take effect.
Specifically, the configuration management module transmits the configuration parameters of the service set identifier to be added to the wireless local area network management process in a command form; after receiving the instruction, the wireless local area network management process firstly resolves the instruction into a specific data format, and then writes the configuration parameters into a wireless local area network configuration file (such as Hostapd. conf) to obtain an updated configuration file; re-reading the update configuration file, updating the configuration data structure of the service set identifier in the memory, applying for the service set identifier to be added, initializing each configuration parameter, calling an interface function for adding the service set identifier, and registering a virtual interface for the service set identifier to be added; finally, the initialized configuration parameters of the service set identification to be added are reloaded, so that the configuration operation of adding the service set identification by the user is enabled to take effect, namely the wireless local area network corresponding to the service set identification to be added can be used as an effective network, network service is provided for the client, and the dynamic increase of the wireless local area network is realized.
As shown in fig. 2, optionally, if the wlan configuration instruction includes a service set identifier modification instruction, the service set identifier configuration parameter includes a name of the service set identifier to be modified and a network attribute to be modified. The network attribute to be modified may include, but is not limited to, at least one of a network encryption manner and a password, the maximum number of connectable clients, whether to be hidden from the clients, whether to isolate the plurality of connected clients from each other, and the like.
Updating the configuration file of the wireless local area network according to the type of the configuration instruction of the wireless local area network and the configuration parameters of the service set identifier to obtain an updated configuration file, wherein the updating comprises the following steps:
searching the initial network attribute of the service set identifier to be modified from the wireless local area network configuration file according to the name of the service set identifier to be modified, and updating the initial network attribute based on the network attribute to be modified to obtain an updated configuration file; for example, if the network attribute to be modified includes a network password, the update configuration file includes the password after the service set identifier to be modified is modified;
correspondingly, updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect, including:
reading the update configuration file into a memory, and updating service set identification configuration data in the memory;
and searching the network attribute updated by the service set identifier to be modified from the service set identifier configuration data updated in the memory according to the name of the service set identifier to be modified, and reloading the searched network attribute to enable the configuration operation of the user to take effect.
The wireless local area network management process reloads the updated network attribute of the service set identifier to be modified in the memory, so that the configuration operation of the user for modifying the service set identifier is enabled to take effect, that is, the wireless local area network corresponding to the service set identifier to be modified can continuously provide network service for the client based on the modified configuration parameters, and the dynamic modification of the wireless local area network is realized. For example, the client may already connect to its corresponding wireless local area network before the configuration parameters of the service set identifier are modified, and then may reconnect to its corresponding wireless local area network after the password of the service set identifier is modified by inputting the correct modified password.
As shown in fig. 2, optionally, if the wlan configuration instruction includes a service set identifier deletion instruction, the service set identifier configuration parameter includes a name of the service set identifier to be deleted.
Updating the configuration file of the wireless local area network according to the type of the configuration instruction of the wireless local area network and the configuration parameters of the service set identifier to obtain an updated configuration file, wherein the updating comprises the following steps:
according to the name of the service set identifier to be deleted, searching the configuration parameter of the service set identifier to be deleted from the wireless local area network configuration file, and deleting the searched configuration parameter to obtain an updated configuration file; the configuration parameters may include, but are not limited to, the name of the service set identifier to be deleted, a network encryption mode and a password, the maximum number of connectable clients, whether the clients are hidden, whether a plurality of connected clients are isolated from each other, and other attributes;
correspondingly, updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect, including:
reading the update configuration file into a memory, and updating service set identification configuration data in the memory;
releasing resources allocated to the service set identifier to be deleted according to the name of the service set identifier to be deleted; for example, the virtual interface of the service set identifier to be deleted is cancelled, and the CPU resource is released to be allocated to the service set identifier to be deleted;
according to the name of the service set identifier to be deleted, searching the configuration parameters of the service set identifier to be deleted from the service set identifier configuration data updated in the memory, and reloading the searched null data, so that the configuration operation of the user is effective, that is, the wireless local area network corresponding to the service set identifier to be deleted becomes unavailable, and the client cannot search the wireless local area network.
The embodiment of the disclosure realizes the operation of dynamically adding, deleting or modifying the service set identifier on the premise of not restarting the wireless local area network management process, and saves the configuration time of the service set identifier; and the availability of the wireless local area network corresponding to other service set identifications which do not need to be modified or updated is not influenced, so that the network service of the client under the wireless local area networks is not influenced.
Fig. 3 is a schematic structural diagram of a wlan management apparatus according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be integrated on any electronic device with computing capability.
As shown in fig. 3, the wireless local area network management apparatus 300 provided in the embodiment of the present disclosure may include a configuration instruction receiving module 301, a configuration parameter obtaining module 302, a configuration file updating module 303, and a configuration validation module 304, where:
a configuration instruction receiving module 301, configured to receive a wireless local area network configuration instruction, where the wireless local area network configuration instruction is generated and sent by the configuration management module according to a configuration operation of a user;
a configuration parameter obtaining module 302, configured to analyze the wlan configuration instruction and obtain a service set identifier configuration parameter carried in the wlan configuration instruction;
a configuration file updating module 303, configured to update the wlan configuration file according to the type of the wlan configuration instruction and the service set identifier configuration parameter, so as to obtain an updated configuration file;
the configuration validation module 304 is configured to update the service set identifier configuration data in the memory according to the update configuration file, and execute a validation operation to validate the configuration operation of the user.
Optionally, the wlan configuration instruction includes at least one of a service set identifier adding instruction, a service set identifier modifying instruction, and a service set identifier deleting instruction.
Optionally, if the wlan configuration instruction includes a service set identifier adding instruction, the service set identifier configuration parameter includes a name and a network attribute of a service set identifier to be added, and the configuration file updating module 303 includes:
the first updating unit is used for adding the service set identifier configuration parameters into a wireless local area network configuration file to obtain an updating configuration file;
accordingly, the configuration validate + module 304 includes:
the memory updating unit is used for reading the updating configuration file into the memory and updating the service set identifier configuration data in the memory;
the first searching unit is used for searching the configuration parameters of the service set identifier to be added from the service set identifier configuration data updated in the memory according to the name of the service set identifier to be added, and initializing the searched configuration parameters;
the interface registration unit is used for calling an interface function for adding the service set identifier and registering a virtual interface for the service set identifier to be added; the virtual interface is used for transmitting data under a wireless local area network corresponding to the service set identifier to be added;
and the first validation unit is used for reloading the initialized configuration parameters to enable the configuration operation of the user to be validated.
Optionally, if the wlan configuration instruction includes a service set identifier modification instruction, the service set identifier configuration parameter includes a name of the service set identifier to be modified and a network attribute to be modified, and the configuration file updating module 303 includes:
the second updating unit is used for searching the initial network attribute of the service set identifier to be modified from the wireless local area network configuration file according to the name of the service set identifier to be modified, and updating the initial network attribute based on the network attribute to be modified to obtain an updated configuration file;
accordingly, the configuration validation module 304 includes:
the memory updating unit is used for reading the updating configuration file into the memory and updating the service set identifier configuration data in the memory;
and the second validation unit is used for searching the updated network attribute of the service set identifier to be modified from the service set identifier configuration data updated in the memory according to the name of the service set identifier to be modified, and reloading the searched network attribute to validate the configuration operation of the user.
Optionally, if the wlan configuration instruction includes a service set identifier deletion instruction, the service set identifier configuration parameter includes a name of a service set identifier to be deleted, and the configuration file updating module 303 includes:
a third updating unit, configured to search, according to the name of the service set identifier to be deleted, the configuration parameter of the service set identifier to be deleted from the wireless local area network configuration file, and delete the searched configuration parameter, thereby obtaining an updated configuration file;
accordingly, the configuration validation module 304 includes:
the memory updating unit is used for reading the updating configuration file into the memory and updating the service set identifier configuration data in the memory;
the resource releasing unit is used for releasing the resources distributed to the service set identifier to be deleted according to the name of the service set identifier to be deleted;
and the third generating unit is used for searching the configuration parameters of the service set identifier to be deleted from the service set identifier configuration data updated in the memory according to the name of the service set identifier to be deleted, and reloading the searched null data to enable the configuration operation of the user to be effective.
Optionally, the apparatus 300 provided in the embodiment of the present disclosure further includes:
and the feedback information sending module is used for sending preset feedback information to the configuration management module so that the configuration management module prompts the success or failure of the configuration operation of the user according to the preset feedback information.
Optionally, the wlan configuration instruction is obtained by assembling, by the configuration management module, the service set identifier configuration parameters determined according to the configuration operation of the user according to a preset communication protocol.
The wireless local area network management device provided by the embodiment of the disclosure can execute any wireless local area network management method provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the disclosure that may not be described in detail in the embodiments of the apparatus of the disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which is used to exemplarily illustrate an electronic device that implements a wireless local area network management method according to an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, smart home devices, wearable electronic devices, servers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and occupation ranges of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 400 includes one or more processors 401 and memory 402.
The processor 401 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.
Memory 402 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium and executed by processor 401 to implement the wlan management methods provided by the embodiments of the present disclosure, as well as other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
The method for managing the wireless local area network provided by the embodiment of the disclosure may include: receiving a wireless local area network configuration instruction, wherein the wireless local area network configuration instruction is generated and sent by a configuration management module according to the configuration operation of a user; analyzing the wireless local area network configuration instruction and acquiring a service set identifier configuration parameter carried in the wireless local area network configuration instruction; updating the wireless local area network configuration file according to the type of the wireless local area network configuration instruction and the service set identifier configuration parameter to obtain an updated configuration file; and updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect.
It should be understood that electronic device 400 may also perform other alternative embodiments provided by the disclosed method embodiments.
In one example, the electronic device 400 may further include: an input device 403 and an output device 404, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 403 may also include, for example, a keyboard, a mouse, and the like.
The output device 404 may output various information to the outside, including the determined distance information, direction information, and the like. The output devices 404 may include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device 400 relevant to the present disclosure are shown in fig. 4, omitting components such as buses, input/output interfaces, and the like. In addition, electronic device 400 may include any other suitable components depending on the particular application.
In addition to the methods and apparatus described above, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause a computing device to implement any of the wireless local area network management methods provided by embodiments of the present disclosure.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device.
Furthermore, the disclosed embodiments may also provide a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause a computing device to implement any of the wireless local area network management methods provided by the disclosed embodiments.
The method for managing the wireless local area network provided by the embodiment of the disclosure may include: receiving a wireless local area network configuration instruction, wherein the wireless local area network configuration instruction is generated and sent by a configuration management module according to the configuration operation of a user; analyzing the wireless local area network configuration instruction and acquiring a service set identifier configuration parameter carried in the wireless local area network configuration instruction; updating the wireless local area network configuration file according to the type of the wireless local area network configuration instruction and the service set identifier configuration parameter to obtain an updated configuration file; and updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect.
It should be understood that the computer program instructions, when executed by a processor, may also cause the processor to perform other alternative embodiments provided by the disclosed method embodiments.
A computer-readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for managing a wireless local area network, comprising:
receiving a wireless local area network configuration instruction, wherein the wireless local area network configuration instruction is generated and sent by a configuration management module according to the configuration operation of a user;
analyzing the wireless local area network configuration instruction and acquiring a service set identifier configuration parameter carried in the wireless local area network configuration instruction;
updating the wireless local area network configuration file according to the type of the wireless local area network configuration instruction and the service set identifier configuration parameter to obtain an updated configuration file;
and updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect.
2. The method of claim 1, wherein the WLAN configuration instructions comprise at least one of service set identity add instructions, service set identity modify instructions, and service set identity delete instructions.
3. The method of claim 2, wherein if the wlan configuration command includes a service set identifier adding command, the service set identifier configuration parameters include a name and a network attribute of a service set identifier to be added, and the updating the wlan configuration file according to the type of the wlan configuration command and the service set identifier configuration parameters to obtain an updated configuration file comprises:
adding the service set identifier configuration parameters to the wireless local area network configuration file to obtain the update configuration file;
correspondingly, the updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect includes:
reading the update configuration file into the memory, and updating service set identification configuration data in the memory;
according to the name of the service set identifier to be added, searching the configuration parameters of the service set identifier to be added from the service set identifier configuration data updated in the memory, and initializing the searched configuration parameters;
calling an interface function for adding a service set identifier, and registering a virtual interface for the service set identifier to be added; the virtual interface is used for transmitting data under the wireless local area network corresponding to the service set identifier to be added;
and reloading the initialized configuration parameters to enable the configuration operation of the user to take effect.
4. The method of claim 2, wherein if the wlan configuration command includes a service set identifier modification command, the service set identifier configuration parameters include a name of a service set identifier to be modified and a network attribute to be modified, and the updating the wlan configuration file according to the type of the wlan configuration command and the service set identifier configuration parameters to obtain an updated configuration file includes:
according to the name of the service set identifier to be modified, searching the initial network attribute of the service set identifier to be modified from the wireless local area network configuration file, and updating the initial network attribute based on the network attribute to be modified to obtain the updated configuration file;
correspondingly, the updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect includes:
reading the update configuration file into the memory, and updating service set identification configuration data in the memory;
and searching the network attribute updated by the service set identifier to be modified from the service set identifier configuration data updated in the memory according to the name of the service set identifier to be modified, and reloading the searched network attribute to enable the configuration operation of the user to take effect.
5. The method of claim 2, wherein if the wlan configuration command includes a service set identifier deletion command, the service set identifier configuration parameter includes a name of a service set identifier to be deleted, and the updating the wlan configuration file according to the type of the wlan configuration command and the service set identifier configuration parameter to obtain an updated configuration file includes:
according to the name of the service set identifier to be deleted, searching the configuration parameter of the service set identifier to be deleted from the wireless local area network configuration file, and deleting the searched configuration parameter to obtain the updated configuration file;
correspondingly, the updating the service set identifier configuration data in the memory according to the update configuration file, and executing an effective operation to enable the configuration operation of the user to take effect includes:
reading the update configuration file into the memory, and updating service set identification configuration data in the memory;
releasing resources allocated to the service set identifier to be deleted according to the name of the service set identifier to be deleted;
and searching the configuration parameters of the service set identifier to be deleted from the service set identifier configuration data updated in the memory according to the name of the service set identifier to be deleted, and reloading the searched null data to enable the configuration operation of the user to take effect.
6. The method of claim 1, further comprising:
and sending preset feedback information to the configuration management module so that the configuration management module prompts the success or failure of the configuration operation of the user according to the preset feedback information.
7. The method of claim 1, wherein the wlan configuration command is obtained by the configuration management module assembling service set identifier configuration parameters determined according to the configuration operation of the user according to a preset communication protocol.
8. A wireless local area network management apparatus, comprising:
the wireless local area network configuration system comprises a configuration instruction receiving module, a configuration management module and a configuration instruction transmitting module, wherein the configuration instruction receiving module is used for receiving a wireless local area network configuration instruction, and the wireless local area network configuration instruction is generated and transmitted by the configuration management module according to the configuration operation of a user;
a configuration parameter obtaining module, configured to analyze the wlan configuration instruction and obtain a service set identifier configuration parameter carried in the wlan configuration instruction;
a configuration file updating module, configured to update the wlan configuration file according to the type of the wlan configuration instruction and the service set identifier configuration parameter, so as to obtain an updated configuration file;
and the configuration validation module is used for updating the service set identifier configuration data in the memory according to the update configuration file and executing validation operation to enable the configuration operation of the user to be validated.
9. An electronic device comprising a memory and a processor, wherein:
the memory has stored therein a computer program which, when executed by the processor, causes the electronic device to implement the wireless local area network management method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored, which, when executed by a computing device, causes the computing device to implement the wireless local area network management method of any one of claims 1 to 7.
CN202011529967.0A 2020-12-22 2020-12-22 Wireless local area network management method, device, equipment and storage medium Active CN112688811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011529967.0A CN112688811B (en) 2020-12-22 2020-12-22 Wireless local area network management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011529967.0A CN112688811B (en) 2020-12-22 2020-12-22 Wireless local area network management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112688811A true CN112688811A (en) 2021-04-20
CN112688811B CN112688811B (en) 2023-03-24

Family

ID=75450681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011529967.0A Active CN112688811B (en) 2020-12-22 2020-12-22 Wireless local area network management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112688811B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179183A (en) * 2021-04-29 2021-07-27 杭州迪普科技股份有限公司 Service switch state control device and method
CN114095226A (en) * 2021-11-15 2022-02-25 云知声(上海)智能科技有限公司 Method and system for dynamically setting service parameters based on CLI

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396358A (en) * 2017-07-07 2017-11-24 广州视源电子科技股份有限公司 Wireless hotspot connection control method, device and equipment and computer storage medium
US20170347388A1 (en) * 2016-05-27 2017-11-30 Wandering WiFi LLC Transparently Connecting Mobile Devices to Multiple Wireless Local Area Networks
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN111356149A (en) * 2018-12-24 2020-06-30 中兴通讯股份有限公司 Wireless network configuration method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170347388A1 (en) * 2016-05-27 2017-11-30 Wandering WiFi LLC Transparently Connecting Mobile Devices to Multiple Wireless Local Area Networks
CN107396358A (en) * 2017-07-07 2017-11-24 广州视源电子科技股份有限公司 Wireless hotspot connection control method, device and equipment and computer storage medium
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN111356149A (en) * 2018-12-24 2020-06-30 中兴通讯股份有限公司 Wireless network configuration method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179183A (en) * 2021-04-29 2021-07-27 杭州迪普科技股份有限公司 Service switch state control device and method
CN114095226A (en) * 2021-11-15 2022-02-25 云知声(上海)智能科技有限公司 Method and system for dynamically setting service parameters based on CLI

Also Published As

Publication number Publication date
CN112688811B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN109150978B (en) Method and device for debugging micro service
US20160261693A1 (en) Cloud-based data backup and operation method and system
CN109492181B (en) Page jump method, device, computer equipment and storage medium
CN112688811B (en) Wireless local area network management method, device, equipment and storage medium
US20180146072A1 (en) Creation of a binding based on a description associated with a server
CN107690175B (en) Method and equipment for managing wireless access point
US11099915B2 (en) Optimizing startup time for event-driven functions
US20130159392A1 (en) System and method for providing virtual device
CN110659100B (en) Container management method, device and equipment
CN107181802B (en) Intelligent hardware control method and device, server and storage medium
JPWO2015049825A1 (en) Terminal authentication registration system, terminal authentication registration method and program
US20240281234A1 (en) Method, apparatus, electronic device and storage medium for installing applications across systems
CN111212183A (en) Method and equipment for running hosted application
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
WO2021139261A1 (en) Application deployment method and device, and medium
US11734429B1 (en) Secure bios-enabled passthrough system
WO2021232860A1 (en) Communication method, apparatus and system
US11757976B2 (en) Unified application management for heterogeneous application delivery
CN112269664B (en) Cloud server resource management method, device and system
CN110515905B (en) Method, device and server for configuring route
CN113934554A (en) RPC cross-language communication method and device, storage medium and electronic equipment
KR20140121571A (en) System for intergrated authentication, method and apparatus for intergraged authentication thereof
CN112270000A (en) Cryptographic service providing method, apparatus and computer-readable storage medium
CN114579167A (en) Method, device and storage medium for downloading application upgrade file
US11811878B1 (en) Session manager providing bidirectional data transport

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant